blob: 8c42d1416de5bfc42e1ccbbfc5dc9c8b42b7bb61 [file] [log] [blame]
Lalit Maganti88e64de2022-11-21 18:29:57 +00001# Copyright (C) 2022 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_python.gni")
16
Lalit Maganti220f7f62022-11-24 15:30:30 +000017perfetto_py_library("trace_processor_table_generator") {
Lalit Maganti167b93f2023-01-10 13:56:13 +000018 sources = [
19 "generators/trace_processor_table/public.py",
Lalit Maganti16117cc2022-12-21 15:33:21 +000020 "generators/trace_processor_table/serialize.py",
Lalit Maganti167b93f2023-01-10 13:56:13 +000021 "generators/trace_processor_table/util.py",
22 ]
Lalit Maganti220f7f62022-11-24 15:30:30 +000023}
24
Anna Mayznerb2153902023-01-06 16:32:49 +000025perfetto_py_library("trace_processor_stdlib_docs") {
26 sources = [
Anna Mayzner1a84bf02023-08-16 09:56:21 +000027 "generators/sql_processing/docs_extractor.py",
28 "generators/sql_processing/docs_parse.py",
29 "generators/sql_processing/utils.py",
Anna Mayznerb2153902023-01-06 16:32:49 +000030 ]
31}
32
Anna Mayzner55ed7b82023-01-11 15:52:32 +000033perfetto_py_library("trace_processor_diff_tests") {
34 sources = [
35 "generators/diff_tests/runner.py",
36 "generators/diff_tests/testing.py",
37 "generators/diff_tests/utils.py",
38 ]
39}
40
Lalit Maganti88e64de2022-11-21 18:29:57 +000041perfetto_py_binary("trace_processor_py_example") {
42 sources = [ "example.py" ]
43 deps = [
44 ":trace_processor_py",
45 "../gn:pandas_py",
46 ]
47 main = "example.py"
48}
49
50perfetto_py_library("trace_processor_py") {
51 sources = [
52 "perfetto/trace_processor/__init__.py",
53 "perfetto/trace_processor/api.py",
54 "perfetto/trace_processor/http.py",
55 "perfetto/trace_processor/platform.py",
56 "perfetto/trace_processor/protos.py",
57 "perfetto/trace_processor/shell.py",
58 ]
59 data = [
60 "perfetto/trace_processor/trace_processor.descriptor",
61 "perfetto/trace_processor/metrics.descriptor",
62 "..:trace_processor_shell",
63 ]
64 deps = [
65 ":trace_uri_resolver",
66 "../gn:pandas_py",
67 "../gn:protobuf_py",
68 "../gn:tp_vendor_py",
69 ]
70}
71
72perfetto_py_library("trace_uri_resolver") {
73 sources = [
74 "perfetto/trace_uri_resolver/__init__.py",
75 "perfetto/trace_uri_resolver/path.py",
76 "perfetto/trace_uri_resolver/registry.py",
77 "perfetto/trace_uri_resolver/resolver.py",
78 "perfetto/trace_uri_resolver/util.py",
79 ]
80}
81
82perfetto_py_library("experimental_slice_breakdown_lib") {
83 sources = [
84 "perfetto/experimental/slice_breakdown/__init__.py",
85 "perfetto/experimental/slice_breakdown/breakdown.py",
86 ]
87 deps = [ ":trace_processor_py" ]
88}
89
90perfetto_py_binary("experimental_slice_breakdown_bin") {
91 sources = [ "tools/slice_breakdown.py" ]
92 main = "tools/slice_breakdown.py"
93 deps = [
94 ":experimental_slice_breakdown_lib",
95 ":trace_processor_py",
96 "../gn:pandas_py",
97 ]
98}
99
100perfetto_py_library("batch_trace_processor") {
101 sources = [
102 "perfetto/batch_trace_processor/__init__.py",
103 "perfetto/batch_trace_processor/api.py",
104 "perfetto/batch_trace_processor/platform.py",
105 ]
106 deps = [
107 ":trace_processor_py",
108 "../gn:pandas_py",
109 "../gn:tp_vendor_py",
110 ]
111}