• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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_TRACING_TEST_TRACING_MODULE_H_
18 #define SRC_TRACING_TEST_TRACING_MODULE_H_
19 
20 // Note: No non-client API header includes are allowed here.
21 
22 namespace perfetto {
23 namespace internal {
24 struct TrackEventIncrementalState;
25 }  // namespace internal
26 }  // namespace perfetto
27 
28 namespace tracing_module {
29 
30 void InitializeCategories();
31 void EmitTrackEvents();
32 void EmitTrackEvents2();
33 perfetto::internal::TrackEventIncrementalState* GetIncrementalState();
34 
35 // These functions are used to check the instruction size overhead track events.
36 void FunctionWithOneTrackEvent();
37 void FunctionWithOneTrackEventWithTypedArgument();
38 void FunctionWithOneScopedTrackEvent();
39 void FunctionWithOneTrackEventWithDebugAnnotations();
40 void FunctionWithOneTrackEventWithCustomTrack();
41 void FunctionWithOneCounterEvent();
42 
43 // Legacy events.
44 void FunctionWithOneLegacyEvent();
45 void FunctionWithOneScopedLegacyEvent();
46 
47 }  // namespace tracing_module
48 
49 #endif  // SRC_TRACING_TEST_TRACING_MODULE_H_
50