blob: c005a6f7f22d06b361f8811120d50cc8d2995b8d [file] [log] [blame]
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001/*
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
22namespace perfetto {
23namespace internal {
24struct TrackEventIncrementalState;
25} // namespace internal
26} // namespace perfetto
27
28namespace tracing_module {
29
30void InitializeCategories();
31void EmitTrackEvents();
32void EmitTrackEvents2();
33perfetto::internal::TrackEventIncrementalState* GetIncrementalState();
34
Sami Kyostila0c229842019-11-01 11:01:54 +000035// These functions are used to check the instruction size overhead track events.
Sami Kyostila1eebf5e2019-10-24 17:36:15 +010036void FunctionWithOneTrackEvent();
Sami Kyostila0c229842019-11-01 11:01:54 +000037void FunctionWithOneTrackEventWithTypedArgument();
Sami Kyostilaa3d0d212019-11-12 23:55:29 +000038void FunctionWithOneScopedTrackEvent();
Sami Kyostila29ff8442019-11-26 16:05:13 +000039void FunctionWithOneTrackEventWithDebugAnnotations();
Sami Kyostila26a04372020-01-13 12:46:48 +000040void FunctionWithOneTrackEventWithCustomTrack();
Sami Kyostila1eebf5e2019-10-24 17:36:15 +010041
42} // namespace tracing_module
43
44#endif // SRC_TRACING_TEST_TRACING_MODULE_H_