blob: 35903ea10314a1f6b2aa250d59ecec9aace5abf4 [file] [log] [blame]
Hector Dearmana5b90822019-11-18 13:00:16 +00001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef SRC_PERFETTO_CMD_PERFETTO_ATOMS_H_
18#define SRC_PERFETTO_CMD_PERFETTO_ATOMS_H_
19
20namespace perfetto {
21
22// This must match the values of the PerfettoUploadEvent enum in:
23// frameworks/base/cmds/statsd/src/atoms.proto
24enum class PerfettoStatsdAtom {
25 kUndefined = 0,
26
27 kTraceBegin = 1,
28 kBackgroundTraceBegin = 2,
29
30 kOnConnect = 3,
31 kOnTracingDisabled = 4,
32
33 kUploadDropboxBegin = 5,
34 kUploadDropboxSuccess = 6,
35 kUploadDropboxFailure = 7,
36
37 kUploadIncidentBegin = 8,
38 kUploadIncidentSuccess = 9,
39 kUploadIncidentFailure = 10,
40
41 kFinalizeTraceAndExit = 11,
42
43 kTriggerBegin = 12,
44 kTriggerSuccess = 13,
45 kTriggerFailure = 14,
46
47 kHitGuardrails = 15,
48 kOnTimeout = 16,
49 kNotUploadingEmptyTrace = 17,
50};
51
52} // namespace perfetto
53
54#endif // SRC_PERFETTO_CMD_PERFETTO_ATOMS_H_