• 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    "chunked_trace_reader.h",
24    "clock_tracker.cc",
25    "clock_tracker.h",
26    "event_tracker.cc",
27    "event_tracker.h",
28    "flow_tracker.cc",
29    "flow_tracker.h",
30    "global_args_tracker.cc",
31    "global_args_tracker.h",
32    "process_tracker.cc",
33    "process_tracker.h",
34    "slice_tracker.cc",
35    "slice_tracker.h",
36    "slice_translation_table.cc",
37    "slice_translation_table.h",
38    "system_info_tracker.cc",
39    "system_info_tracker.h",
40    "trace_parser.h",
41    "track_tracker.cc",
42    "track_tracker.h",
43  ]
44  public_deps = [
45    "../:gen_cc_config_descriptor",
46    "../../util:proto_to_args_parser",
47    "../../util:protozero_to_text",
48  ]
49  deps = [
50    "../../../../gn:default_deps",
51    "../../../../include/perfetto/trace_processor",
52    "../../../../include/perfetto/trace_processor:basic_types",
53    "../../../../protos/perfetto/common:zero",
54    "../../../../protos/perfetto/trace:zero",
55    "../../../../protos/perfetto/trace/profiling:zero",
56    "../../../base",
57    "../../storage",
58    "../../types",
59  ]
60}
61
62source_set("unittests") {
63  sources = [
64    "args_translation_table_unittest.cc",
65    "clock_tracker_unittest.cc",
66    "event_tracker_unittest.cc",
67    "flow_tracker_unittest.cc",
68    "process_tracker_unittest.cc",
69    "slice_tracker_unittest.cc",
70    "slice_translation_table_unittest.cc",
71  ]
72  testonly = true
73  deps = [
74    ":common",
75    "../../../../gn:default_deps",
76    "../../../../gn:gtest_and_gmock",
77    "../../../../protos/perfetto/common:zero",
78    "../../../../protos/perfetto/trace:zero",
79    "../../../base",
80    "../../storage",
81    "../../types",
82  ]
83}
84