• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2019 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_tp_tables.gni")
16import("../../../gn/test.gni")
17
18source_set("tables") {
19  sources = [ "table_destructors.cc" ]
20  deps = [
21    ":macros_internal",
22    "../../../gn:default_deps",
23  ]
24  public_deps = [ ":tables_python" ]
25}
26
27source_set("macros_internal") {
28  sources = [
29    "macros_internal.cc",
30    "macros_internal.h",
31  ]
32  deps = [
33    "../../../gn:default_deps",
34    "../../../include/perfetto/ext/base",
35    "../../../include/perfetto/trace_processor",
36    "../containers",
37    "../db:minimal",
38    "../db/column",
39  ]
40}
41
42perfetto_tp_tables("tables_python") {
43  sources = [
44    "android_tables.py",
45    "counter_tables.py",
46    "etm_tables.py",
47    "flow_tables.py",
48    "jit_tables.py",
49    "memory_tables.py",
50    "metadata_tables.py",
51    "perf_tables.py",
52    "profiler_tables.py",
53    "sched_tables.py",
54    "slice_tables.py",
55    "trace_proto_tables.py",
56    "track_tables.py",
57    "v8_tables.py",
58    "winscope_tables.py",
59  ]
60  generate_docs = true
61}
62
63perfetto_tp_tables("py_tables_unittest") {
64  sources = [ "py_tables_unittest.py" ]
65}
66
67source_set("unittests") {
68  testonly = true
69  sources = [ "py_tables_unittest.cc" ]
70  deps = [
71    ":py_tables_unittest",
72    ":tables",
73    "../../../gn:default_deps",
74    "../../../gn:gtest_and_gmock",
75    "../containers",
76    "../db",
77    "../db/column",
78  ]
79}
80
81if (enable_perfetto_benchmarks) {
82  source_set("benchmarks") {
83    testonly = true
84    deps = [
85      ":py_tables_benchmark",
86      "../../../gn:benchmark",
87      "../../../gn:default_deps",
88      "../../../include/perfetto/trace_processor",
89      "../containers",
90      "../db",
91      "../db/column",
92    ]
93    sources = [ "py_tables_benchmark.cc" ]
94  }
95  perfetto_tp_tables("py_tables_benchmark") {
96    sources = [ "py_tables_benchmark.py" ]
97  }
98}
99