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