aboutsummaryrefslogtreecommitdiff
path: root/src/trace_processor/prelude/table_functions/BUILD.gn
blob: 4f5ced3d3c15f61a31fd5017995e2615db646d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Copyright (C) 2022 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("../../../../gn/perfetto.gni")

assert(enable_perfetto_trace_processor_sqlite)

source_set("table_functions") {
  sources = [
    "ancestor.cc",
    "ancestor.h",
    "connected_flow.cc",
    "connected_flow.h",
    "descendant.cc",
    "descendant.h",
    "experimental_annotated_stack.cc",
    "experimental_annotated_stack.h",
    "experimental_counter_dur.cc",
    "experimental_counter_dur.h",
    "experimental_flamegraph.cc",
    "experimental_flamegraph.h",
    "experimental_flat_slice.cc",
    "experimental_flat_slice.h",
    "experimental_sched_upid.cc",
    "experimental_sched_upid.h",
    "experimental_slice_layout.cc",
    "experimental_slice_layout.h",
    "flamegraph_construction_algorithms.cc",
    "flamegraph_construction_algorithms.h",
    "table_function.cc",
    "table_function.h",
    "view.cc",
    "view.h",
  ]
  deps = [
    "../../../../gn:default_deps",
    "../../../../gn:sqlite",
    "../../../base",
    "../../containers",
    "../../db",
    "../../importers/proto:full",
    "../../importers/proto:minimal",
    "../../sqlite:sqlite_minimal",
    "../../storage",
    "../../tables",
    "../../types",
    "../../util",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [
    "ancestor_unittest.cc",
    "connected_flow_unittest.cc",
    "descendant_unittest.cc",
    "experimental_counter_dur_unittest.cc",
    "experimental_flat_slice_unittest.cc",
    "experimental_slice_layout_unittest.cc",
  ]
  deps = [
    ":table_functions",
    "../../../../gn:default_deps",
    "../../../../gn:gtest_and_gmock",
    "../../containers",
    "../../importers/common",
    "../../types",
  ]
}