• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("../../../../gn/perfetto.gni")
16
17source_set("common") {
18  sources = [
19    "args_tracker.cc",
20    "args_tracker.h",
21    "args_translation_table.cc",
22    "args_translation_table.h",
23    "async_track_set_tracker.cc",
24    "async_track_set_tracker.h",
25    "chunked_trace_reader.h",
26    "clock_converter.cc",
27    "clock_converter.h",
28    "clock_tracker.cc",
29    "clock_tracker.h",
30    "deobfuscation_mapping_table.cc",
31    "deobfuscation_mapping_table.h",
32    "event_tracker.cc",
33    "event_tracker.h",
34    "flow_tracker.cc",
35    "flow_tracker.h",
36    "global_args_tracker.cc",
37    "global_args_tracker.h",
38    "metadata_tracker.cc",
39    "metadata_tracker.h",
40    "process_tracker.cc",
41    "process_tracker.h",
42    "slice_tracker.cc",
43    "slice_tracker.h",
44    "slice_translation_table.cc",
45    "slice_translation_table.h",
46    "system_info_tracker.cc",
47    "system_info_tracker.h",
48    "trace_parser.cc",
49    "track_tracker.cc",
50    "track_tracker.h",
51  ]
52  public_deps = [
53    ":trace_parser_hdr",
54    "../../util:proto_to_args_parser",
55    "../../util:protozero_to_text",
56  ]
57  deps = [
58    ":parser_types",
59    "../../../../gn:default_deps",
60    "../../../../include/perfetto/trace_processor",
61    "../../../../include/perfetto/trace_processor:basic_types",
62    "../../../../protos/perfetto/common:zero",
63    "../../../../protos/perfetto/trace:zero",
64    "../../../../protos/perfetto/trace/profiling:zero",
65    "../../../base",
66    "../../storage",
67    "../../types",
68    "../fuchsia:fuchsia_record",
69    "../systrace:systrace_line",
70  ]
71}
72
73source_set("trace_parser_hdr") {
74  sources = [ "trace_parser.h" ]
75  deps = [ "../../../../gn:default_deps" ]
76}
77
78source_set("parser_types") {
79  sources = [ "parser_types.h" ]
80  deps = [
81    "../../../../gn:default_deps",
82    "../../../../include/perfetto/trace_processor:storage",
83    "../../containers",
84    "../proto:packet_sequence_state_generation_hdr",
85  ]
86}
87
88source_set("unittests") {
89  sources = [
90    "args_translation_table_unittest.cc",
91    "async_track_set_tracker_unittest.cc",
92    "clock_converter_unittest.cc",
93    "clock_tracker_unittest.cc",
94    "deobfuscation_mapping_table_unittest.cc",
95    "event_tracker_unittest.cc",
96    "flow_tracker_unittest.cc",
97    "process_tracker_unittest.cc",
98    "slice_tracker_unittest.cc",
99    "slice_translation_table_unittest.cc",
100  ]
101  testonly = true
102  deps = [
103    ":common",
104    "../../../../gn:default_deps",
105    "../../../../gn:gtest_and_gmock",
106    "../../../../protos/perfetto/common:zero",
107    "../../../../protos/perfetto/trace:zero",
108    "../../../base",
109    "../../storage",
110    "../../types",
111  ]
112}
113