• 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    "address_range.h",
20    "args_tracker.cc",
21    "args_tracker.h",
22    "args_translation_table.cc",
23    "args_translation_table.h",
24    "async_track_set_tracker.cc",
25    "async_track_set_tracker.h",
26    "chunked_trace_reader.h",
27    "clock_converter.cc",
28    "clock_converter.h",
29    "clock_tracker.cc",
30    "clock_tracker.h",
31    "cpu_tracker.cc",
32    "cpu_tracker.h",
33    "create_mapping_params.h",
34    "deobfuscation_mapping_table.cc",
35    "deobfuscation_mapping_table.h",
36    "event_tracker.cc",
37    "event_tracker.h",
38    "flow_tracker.cc",
39    "flow_tracker.h",
40    "global_args_tracker.cc",
41    "global_args_tracker.h",
42    "jit_cache.cc",
43    "jit_cache.h",
44    "machine_tracker.cc",
45    "machine_tracker.h",
46    "mapping_tracker.cc",
47    "mapping_tracker.h",
48    "metadata_tracker.cc",
49    "metadata_tracker.h",
50    "process_track_translation_table.cc",
51    "process_track_translation_table.h",
52    "process_tracker.cc",
53    "process_tracker.h",
54    "sched_event_state.h",
55    "sched_event_tracker.cc",
56    "sched_event_tracker.h",
57    "slice_tracker.cc",
58    "slice_tracker.h",
59    "slice_translation_table.cc",
60    "slice_translation_table.h",
61    "stack_profile_tracker.cc",
62    "stack_profile_tracker.h",
63    "system_info_tracker.cc",
64    "system_info_tracker.h",
65    "thread_state_tracker.cc",
66    "thread_state_tracker.h",
67    "trace_parser.cc",
68    "track_tracker.cc",
69    "track_tracker.h",
70    "virtual_memory_mapping.cc",
71    "virtual_memory_mapping.h",
72  ]
73  public_deps = [
74    ":trace_parser_hdr",
75    "../../util:proto_to_args_parser",
76    "../../util:protozero_to_text",
77  ]
78  deps = [
79    ":parser_types",
80    "../../../../gn:default_deps",
81    "../../../../include/perfetto/trace_processor",
82    "../../../../include/perfetto/trace_processor:basic_types",
83    "../../../../protos/perfetto/common:zero",
84    "../../../../protos/perfetto/trace:zero",
85    "../../../../protos/perfetto/trace/profiling:zero",
86    "../../../base",
87    "../../db:minimal",
88    "../../storage",
89    "../../tables:tables",
90    "../../types",
91    "../../util:build_id",
92    "../../util:profiler_util",
93    "../fuchsia:fuchsia_record",
94    "../perf:record",
95    "../systrace:systrace_line",
96  ]
97}
98
99source_set("trace_parser_hdr") {
100  sources = [ "trace_parser.h" ]
101  deps = [ "../../../../gn:default_deps" ]
102}
103
104source_set("parser_types") {
105  sources = [ "parser_types.h" ]
106  deps = [
107    "../../../../gn:default_deps",
108    "../../../../include/perfetto/trace_processor:storage",
109    "../../containers",
110    "../proto:packet_sequence_state_generation_hdr",
111  ]
112}
113
114source_set("unittests") {
115  sources = [
116    "address_range_unittest.cc",
117    "args_translation_table_unittest.cc",
118    "async_track_set_tracker_unittest.cc",
119    "clock_converter_unittest.cc",
120    "clock_tracker_unittest.cc",
121    "deobfuscation_mapping_table_unittest.cc",
122    "event_tracker_unittest.cc",
123    "flow_tracker_unittest.cc",
124    "process_track_translation_table_unittest.cc",
125    "process_tracker_unittest.cc",
126    "slice_tracker_unittest.cc",
127    "slice_translation_table_unittest.cc",
128    "thread_state_tracker_unittest.cc",
129  ]
130  testonly = true
131  deps = [
132    ":common",
133    "../../../../gn:default_deps",
134    "../../../../gn:gtest_and_gmock",
135    "../../../../protos/perfetto/common:zero",
136    "../../../../protos/perfetto/trace:zero",
137    "../../../base",
138    "../../storage",
139    "../../types",
140  ]
141}
142