Sami Kyostila | 1eebf5e | 2019-10-24 17:36:15 +0100 | [diff] [blame] | 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 | |
Sami Kyostila | 0c22984 | 2019-11-01 11:01:54 +0000 | [diff] [blame] | 35 | // These functions are used to check the instruction size overhead track events. |
Sami Kyostila | 1eebf5e | 2019-10-24 17:36:15 +0100 | [diff] [blame] | 36 | void FunctionWithOneTrackEvent(); |
Sami Kyostila | 0c22984 | 2019-11-01 11:01:54 +0000 | [diff] [blame] | 37 | void FunctionWithOneTrackEventWithTypedArgument(); |
Sami Kyostila | a3d0d21 | 2019-11-12 23:55:29 +0000 | [diff] [blame] | 38 | void FunctionWithOneScopedTrackEvent(); |
Sami Kyostila | 29ff844 | 2019-11-26 16:05:13 +0000 | [diff] [blame] | 39 | void FunctionWithOneTrackEventWithDebugAnnotations(); |
Sami Kyostila | 26a0437 | 2020-01-13 12:46:48 +0000 | [diff] [blame] | 40 | void FunctionWithOneTrackEventWithCustomTrack(); |
Sami Kyostila | 1eebf5e | 2019-10-24 17:36:15 +0100 | [diff] [blame] | 41 | |
| 42 | } // namespace tracing_module |
| 43 | |
| 44 | #endif // SRC_TRACING_TEST_TRACING_MODULE_H_ |