blob: 7a9483c1b56005bda165417b55de80f62c4bca45 [file] [log] [blame]
Lalit Maganti279ecde2019-04-01 16:57:12 +01001# 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#
Sami Kyostila3c88a1d2019-05-22 18:29:42 +010015# This file is automatically generated by tools/gen_bazel. Do not edit.
Lalit Maganti279ecde2019-04-01 16:57:12 +010016
Primiano Tucci1d409982019-09-19 10:15:18 +010017load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG")
18load(
19 "@perfetto//bazel:rules.bzl",
20 "perfetto_cc_binary",
21 "perfetto_cc_ipc_library",
22 "perfetto_cc_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010023 "perfetto_cc_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010024 "perfetto_cc_proto_library",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010025 "perfetto_cc_protocpp_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010026 "perfetto_cc_protozero_library",
Lalit Maganti65600342019-09-19 21:35:35 +010027 "perfetto_java_proto_library",
Lalit Maganti46e2bda2020-05-06 12:51:33 +010028 "perfetto_java_lite_proto_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010029 "perfetto_proto_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010030 "perfetto_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010031 "perfetto_py_binary",
Anindita Ghosh237a7762020-06-30 10:46:52 +000032 "perfetto_py_library",
Lalit Maganti65600342019-09-19 21:35:35 +010033 "perfetto_gensignature_internal_only",
Primiano Tucci1d409982019-09-19 10:15:18 +010034)
Lalit Maganti279ecde2019-04-01 16:57:12 +010035
Primiano Tucci1d409982019-09-19 10:15:18 +010036package(default_visibility = ["//visibility:private"])
Lalit Maganti279ecde2019-04-01 16:57:12 +010037
Lalit Magantibb037f72019-09-24 16:22:45 +010038licenses(["notice"])
Lalit Maganti65600342019-09-19 21:35:35 +010039
40exports_files(["NOTICE"])
Lalit Magantia48710d2019-09-24 13:10:11 +010041
Primiano Tucci1d409982019-09-19 10:15:18 +010042# ##############################################################################
43# Internal targets
44# ##############################################################################
Lalit Maganti279ecde2019-04-01 16:57:12 +010045
Primiano Tucci1d409982019-09-19 10:15:18 +010046# GN target: //src/ipc/protoc_plugin:ipc_plugin
47perfetto_cc_binary(
48 name = "ipc_plugin",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010049 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010050 "src/ipc/protoc_plugin/ipc_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010051 ],
52 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020053 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +010054 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +010055)
56
57# GN target: //src/ipc:perfetto_ipc
58perfetto_cc_library(
59 name = "perfetto_ipc",
60 srcs = [
Primiano Tuccic4c063b2020-01-27 09:34:46 +000061 ":src_ipc_client",
62 ":src_ipc_common",
63 ":src_ipc_host",
Primiano Tucci1d409982019-09-19 10:15:18 +010064 ],
65 hdrs = [
66 ":include_perfetto_base_base",
67 ":include_perfetto_ext_base_base",
68 ":include_perfetto_ext_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +000069 ":include_perfetto_protozero_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +010070 ],
71 deps = [
Primiano Tuccib3e08d02019-11-19 11:10:11 +000072 ":protos_perfetto_ipc_wire_protocol_cpp",
Primiano Tucci916f4e52020-10-16 20:40:33 +020073 ":src_base_base",
74 ":src_base_unix_socket",
Primiano Tuccie8020f92019-11-26 13:24:01 +000075 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +000076 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +010077)
78
Primiano Tucci57dd66b2019-10-15 23:09:04 +010079# GN target: //src/protozero/protoc_plugin:cppgen_plugin
80perfetto_cc_binary(
81 name = "cppgen_plugin",
82 srcs = [
83 "src/protozero/protoc_plugin/cppgen_plugin.cc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010084 ],
85 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020086 ":src_base_base",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010087 ] + PERFETTO_CONFIG.deps.protoc_lib,
88)
89
Primiano Tucci1d409982019-09-19 10:15:18 +010090# GN target: //src/protozero/protoc_plugin:protozero_plugin
91perfetto_cc_binary(
92 name = "protozero_plugin",
93 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010094 "src/protozero/protoc_plugin/protozero_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010095 ],
96 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020097 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +010098 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +010099)
100
Primiano Tucci916f4e52020-10-16 20:40:33 +0200101# GN target: //src/protozero:protozero
Primiano Tucci1d409982019-09-19 10:15:18 +0100102perfetto_cc_library(
Primiano Tucci916f4e52020-10-16 20:40:33 +0200103 name = "protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100104 srcs = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200105 "src/protozero/field.cc",
106 "src/protozero/message.cc",
107 "src/protozero/message_arena.cc",
108 "src/protozero/message_handle.cc",
109 "src/protozero/packed_repeated_fields.cc",
110 "src/protozero/proto_decoder.cc",
111 "src/protozero/scattered_heap_buffer.cc",
112 "src/protozero/scattered_stream_null_delegate.cc",
113 "src/protozero/scattered_stream_writer.cc",
114 "src/protozero/static_buffer.cc",
115 "src/protozero/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100116 ],
117 hdrs = [
118 ":include_perfetto_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100119 ":include_perfetto_protozero_protozero",
120 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200121 deps = [
122 ":src_base_base",
123 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000124 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100125)
126
Lalit Maganti01deefa2019-12-19 14:20:12 +0000127# GN target: //test:client_api_example
128perfetto_cc_binary(
129 name = "client_api_example",
130 srcs = [
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000131 ":include_perfetto_base_base",
132 ":include_perfetto_protozero_protozero",
133 ":include_perfetto_tracing_core_forward_decls",
134 ":include_perfetto_tracing_tracing",
Primiano Tucci34bc5592021-02-19 17:53:36 +0100135 "test/client_api_example.cc",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000136 ],
137 deps = [
138 ":libperfetto_client_experimental",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000139 ":protos_perfetto_common_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000140 ":protos_perfetto_common_zero",
141 ":protos_perfetto_config_android_zero",
142 ":protos_perfetto_config_ftrace_zero",
143 ":protos_perfetto_config_gpu_zero",
144 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000145 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000146 ":protos_perfetto_config_power_zero",
147 ":protos_perfetto_config_process_stats_zero",
148 ":protos_perfetto_config_profiling_zero",
149 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000150 ":protos_perfetto_config_track_event_cpp",
151 ":protos_perfetto_config_track_event_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000152 ":protos_perfetto_config_zero",
153 ":protos_perfetto_trace_android_zero",
154 ":protos_perfetto_trace_chrome_zero",
155 ":protos_perfetto_trace_filesystem_zero",
156 ":protos_perfetto_trace_ftrace_zero",
157 ":protos_perfetto_trace_gpu_zero",
158 ":protos_perfetto_trace_interned_data_zero",
159 ":protos_perfetto_trace_minimal_zero",
160 ":protos_perfetto_trace_non_minimal_zero",
161 ":protos_perfetto_trace_perfetto_zero",
162 ":protos_perfetto_trace_power_zero",
163 ":protos_perfetto_trace_profiling_zero",
164 ":protos_perfetto_trace_ps_zero",
165 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100166 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100167 ":protos_perfetto_trace_track_event_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000168 ":protos_perfetto_trace_track_event_zero",
169 ],
170)
171
Lalit Magantiff9b3262021-07-01 22:24:01 +0100172# GN target: //tools/proto_filter:proto_filter
173perfetto_cc_binary(
174 name = "proto_filter",
175 srcs = [
176 ":src_protozero_filtering_bytecode_common",
177 ":src_protozero_filtering_bytecode_generator",
178 ":src_protozero_filtering_bytecode_parser",
179 ":src_protozero_filtering_filter_util",
180 ":src_protozero_filtering_message_filter",
181 "tools/proto_filter/proto_filter.cc",
182 ],
183 deps = [
184 ":protozero",
185 ":src_base_base",
186 ] + PERFETTO_CONFIG.deps.protobuf_full,
187)
188
Lalit Magantidade39c2021-07-08 19:30:49 +0100189# GN target: //tools/proto_merger:proto_merger
190perfetto_cc_binary(
191 name = "proto_merger",
192 srcs = [
Lalit Magantif7ba1532021-07-21 21:40:32 +0100193 "tools/proto_merger/allowlist.cc",
Lalit Magantidade39c2021-07-08 19:30:49 +0100194 "tools/proto_merger/allowlist.h",
195 "tools/proto_merger/main.cc",
196 "tools/proto_merger/proto_file.cc",
197 "tools/proto_merger/proto_file.h",
Lalit Maganticb07e442021-07-21 21:43:32 +0100198 "tools/proto_merger/proto_file_serializer.cc",
199 "tools/proto_merger/proto_file_serializer.h",
Lalit Magantidade39c2021-07-08 19:30:49 +0100200 "tools/proto_merger/proto_merger.cc",
201 "tools/proto_merger/proto_merger.h",
202 ],
203 deps = [
204 ":src_base_base",
205 ] + PERFETTO_CONFIG.deps.protobuf_full,
206)
207
Primiano Tucci1d409982019-09-19 10:15:18 +0100208# GN target: //:libperfetto
209perfetto_cc_library(
210 name = "libperfetto",
211 srcs = [
212 ":src_android_internal_headers",
213 ":src_android_internal_lazy_library_loader",
Lalit Magantiea7631b2021-01-13 12:33:55 +0000214 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +0000215 ":src_android_stats_perfetto_atoms",
Ryan Savitskidc218882020-11-16 18:02:02 +0000216 ":src_kallsyms_kallsyms",
Primiano Tuccif18ab812021-05-14 23:01:19 +0100217 ":src_protozero_filtering_bytecode_common",
218 ":src_protozero_filtering_bytecode_parser",
219 ":src_protozero_filtering_message_filter",
Primiano Tucci1d409982019-09-19 10:15:18 +0100220 ":src_traced_probes_android_log_android_log",
Rafal Slawik8053a682020-04-08 17:26:40 +0100221 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100222 ":src_traced_probes_data_source",
223 ":src_traced_probes_filesystem_filesystem",
Primiano Tucci65a4fb12020-12-21 18:35:15 +0100224 ":src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100225 ":src_traced_probes_ftrace_ftrace",
Ryan Savitskiec35afb2021-01-29 18:39:36 +0000226 ":src_traced_probes_ftrace_ftrace_procfs",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100227 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100228 ":src_traced_probes_metatrace_metatrace",
229 ":src_traced_probes_packages_list_packages_list",
Florian Mayer29e17182020-12-23 10:59:02 +0000230 ":src_traced_probes_packages_list_packages_list_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100231 ":src_traced_probes_power_power",
232 ":src_traced_probes_probes",
233 ":src_traced_probes_probes_src",
234 ":src_traced_probes_ps_ps",
235 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100236 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100237 ":src_traced_service_service",
238 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000239 ":src_tracing_consumer_api_deprecated_consumer_api_deprecated",
240 ":src_tracing_core_core",
241 ":src_tracing_core_service",
242 ":src_tracing_ipc_common",
243 ":src_tracing_ipc_consumer_consumer",
244 ":src_tracing_ipc_producer_producer",
245 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100246 ],
247 hdrs = [
248 ":include_perfetto_base_base",
249 ":include_perfetto_ext_base_base",
250 ":include_perfetto_ext_ipc_ipc",
251 ":include_perfetto_ext_traced_sys_stats_counters",
252 ":include_perfetto_ext_traced_traced",
253 ":include_perfetto_ext_tracing_core_core",
254 ":include_perfetto_ext_tracing_ipc_ipc",
255 ":include_perfetto_protozero_protozero",
256 ":include_perfetto_public_public",
257 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000258 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100259 ":include_perfetto_tracing_tracing",
260 ],
261 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200262 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100263 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100264 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100265 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100266 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100267 ":protos_perfetto_config_cpp",
268 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100269 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100270 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100271 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100272 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100273 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000274 ":protos_perfetto_config_interceptors_cpp",
275 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100276 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100277 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100278 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100279 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100280 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100281 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100282 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100283 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000284 ":protos_perfetto_config_track_event_cpp",
285 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100286 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000287 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100288 ":protos_perfetto_ipc_ipc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100289 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100290 ":protos_perfetto_trace_chrome_zero",
291 ":protos_perfetto_trace_filesystem_zero",
292 ":protos_perfetto_trace_ftrace_zero",
293 ":protos_perfetto_trace_gpu_zero",
294 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100295 ":protos_perfetto_trace_minimal_zero",
296 ":protos_perfetto_trace_non_minimal_zero",
297 ":protos_perfetto_trace_perfetto_zero",
298 ":protos_perfetto_trace_power_zero",
299 ":protos_perfetto_trace_profiling_zero",
300 ":protos_perfetto_trace_ps_zero",
301 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100302 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100303 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100304 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200305 ":protozero",
306 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000307 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000308 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100309)
310
311# GN target: //include/perfetto/base:base
312filegroup(
313 name = "include_perfetto_base_base",
314 srcs = [
315 "include/perfetto/base/build_config.h",
316 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100317 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000318 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100319 "include/perfetto/base/logging.h",
Primiano Tuccif9460fa2020-12-09 01:28:33 +0100320 "include/perfetto/base/platform_handle.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000321 "include/perfetto/base/proc_utils.h",
Primiano Tuccidf440312020-10-30 16:43:58 +0100322 "include/perfetto/base/status.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100323 "include/perfetto/base/task_runner.h",
Alexander Timinba53cc72021-02-05 15:46:57 +0000324 "include/perfetto/base/template_util.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000325 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100326 "include/perfetto/base/time.h",
327 ],
328)
329
330# GN target: //include/perfetto/ext/base:base
331filegroup(
332 name = "include_perfetto_ext_base_base",
333 srcs = [
334 "include/perfetto/ext/base/circular_queue.h",
335 "include/perfetto/ext/base/container_annotations.h",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100336 "include/perfetto/ext/base/ctrl_c_handler.h",
Primiano Tucciabbc9fd2020-10-08 22:09:07 +0200337 "include/perfetto/ext/base/endian.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100338 "include/perfetto/ext/base/event_fd.h",
339 "include/perfetto/ext/base/file_utils.h",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100340 "include/perfetto/ext/base/getopt.h",
341 "include/perfetto/ext/base/getopt_compat.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100342 "include/perfetto/ext/base/hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100343 "include/perfetto/ext/base/metatrace.h",
344 "include/perfetto/ext/base/metatrace_events.h",
345 "include/perfetto/ext/base/no_destructor.h",
346 "include/perfetto/ext/base/optional.h",
347 "include/perfetto/ext/base/paged_memory.h",
Primiano Tuccidac91702021-04-30 15:47:51 +0100348 "include/perfetto/ext/base/periodic_task.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100349 "include/perfetto/ext/base/pipe.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100350 "include/perfetto/ext/base/scoped_file.h",
351 "include/perfetto/ext/base/small_set.h",
352 "include/perfetto/ext/base/string_splitter.h",
353 "include/perfetto/ext/base/string_utils.h",
354 "include/perfetto/ext/base/string_view.h",
355 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000356 "include/perfetto/ext/base/subprocess.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100357 "include/perfetto/ext/base/temp_file.h",
358 "include/perfetto/ext/base/thread_annotations.h",
359 "include/perfetto/ext/base/thread_checker.h",
360 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100361 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100362 "include/perfetto/ext/base/unix_socket.h",
363 "include/perfetto/ext/base/unix_task_runner.h",
364 "include/perfetto/ext/base/utils.h",
365 "include/perfetto/ext/base/uuid.h",
Primiano Tucciec590132020-11-16 14:16:44 +0100366 "include/perfetto/ext/base/version.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100367 "include/perfetto/ext/base/waitable_event.h",
368 "include/perfetto/ext/base/watchdog.h",
369 "include/perfetto/ext/base/watchdog_noop.h",
370 "include/perfetto/ext/base/watchdog_posix.h",
371 "include/perfetto/ext/base/weak_ptr.h",
372 ],
373)
374
375# GN target: //include/perfetto/ext/ipc:ipc
376filegroup(
377 name = "include_perfetto_ext_ipc_ipc",
378 srcs = [
379 "include/perfetto/ext/ipc/async_result.h",
380 "include/perfetto/ext/ipc/basic_types.h",
381 "include/perfetto/ext/ipc/client.h",
382 "include/perfetto/ext/ipc/client_info.h",
383 "include/perfetto/ext/ipc/codegen_helpers.h",
384 "include/perfetto/ext/ipc/deferred.h",
385 "include/perfetto/ext/ipc/host.h",
386 "include/perfetto/ext/ipc/service.h",
387 "include/perfetto/ext/ipc/service_descriptor.h",
388 "include/perfetto/ext/ipc/service_proxy.h",
389 ],
390)
391
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100392# GN target: //include/perfetto/ext/trace_processor/importers/memory_tracker:memory_tracker
393filegroup(
394 name = "include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
395 srcs = [
396 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph.h",
397 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h",
398 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_allocator_node_id.h",
399 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_graph_edge.h",
400 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_memory_graph_node.h",
401 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_process_memory_node.h",
402 ],
403)
404
Eric Seckler7fb1d232019-10-23 14:42:43 +0100405# GN target: //include/perfetto/ext/trace_processor:export_json
406filegroup(
407 name = "include_perfetto_ext_trace_processor_export_json",
408 srcs = [
409 "include/perfetto/ext/trace_processor/export_json.h",
410 ],
411)
412
Primiano Tucci1d409982019-09-19 10:15:18 +0100413# GN target: //include/perfetto/ext/traced:sys_stats_counters
414filegroup(
415 name = "include_perfetto_ext_traced_sys_stats_counters",
416 srcs = [
417 "include/perfetto/ext/traced/sys_stats_counters.h",
418 ],
419)
420
421# GN target: //include/perfetto/ext/traced:traced
422filegroup(
423 name = "include_perfetto_ext_traced_traced",
424 srcs = [
425 "include/perfetto/ext/traced/data_source_types.h",
426 "include/perfetto/ext/traced/traced.h",
427 ],
428)
429
430# GN target: //include/perfetto/ext/tracing/core:core
431filegroup(
432 name = "include_perfetto_ext_tracing_core_core",
433 srcs = [
434 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100435 "include/perfetto/ext/tracing/core/commit_data_request.h",
436 "include/perfetto/ext/tracing/core/consumer.h",
437 "include/perfetto/ext/tracing/core/observable_events.h",
438 "include/perfetto/ext/tracing/core/producer.h",
439 "include/perfetto/ext/tracing/core/shared_memory.h",
440 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
441 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
442 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100443 "include/perfetto/ext/tracing/core/trace_packet.h",
444 "include/perfetto/ext/tracing/core/trace_stats.h",
445 "include/perfetto/ext/tracing/core/trace_writer.h",
446 "include/perfetto/ext/tracing/core/tracing_service.h",
447 ],
448)
449
450# GN target: //include/perfetto/ext/tracing/ipc:ipc
451filegroup(
452 name = "include_perfetto_ext_tracing_ipc_ipc",
453 srcs = [
454 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
455 "include/perfetto/ext/tracing/ipc/default_socket.h",
456 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
457 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
458 ],
459)
460
Florian Mayerbd88ff82019-12-18 16:36:37 +0000461# GN target: //include/perfetto/profiling:pprof_builder
Lalit Magantia4244e42019-09-20 12:03:32 +0100462filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000463 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100464 srcs = [
465 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100466 ],
467)
468
Primiano Tucci1d409982019-09-19 10:15:18 +0100469# GN target: //include/perfetto/protozero:protozero
470filegroup(
471 name = "include_perfetto_protozero_protozero",
472 srcs = [
473 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000474 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000475 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100476 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000477 "include/perfetto/protozero/field_writer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100478 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200479 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100480 "include/perfetto/protozero/message_handle.h",
481 "include/perfetto/protozero/packed_repeated_fields.h",
482 "include/perfetto/protozero/proto_decoder.h",
483 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200484 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100485 "include/perfetto/protozero/scattered_heap_buffer.h",
486 "include/perfetto/protozero/scattered_stream_null_delegate.h",
487 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000488 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100489 ],
490)
491
492# GN target: //include/perfetto/public:public
493filegroup(
494 name = "include_perfetto_public_public",
495 srcs = [
496 "include/perfetto/public/consumer_api.h",
497 ],
498)
499
Eric Secklera7870e62019-11-01 10:11:58 +0000500# GN target: //include/perfetto/trace_processor:basic_types
501filegroup(
502 name = "include_perfetto_trace_processor_basic_types",
503 srcs = [
504 "include/perfetto/trace_processor/basic_types.h",
505 "include/perfetto/trace_processor/status.h",
506 ],
507)
508
509# GN target: //include/perfetto/trace_processor:storage
510filegroup(
511 name = "include_perfetto_trace_processor_storage",
512 srcs = [
513 "include/perfetto/trace_processor/trace_processor_storage.h",
514 ],
515)
516
Primiano Tucci1d409982019-09-19 10:15:18 +0100517# GN target: //include/perfetto/trace_processor:trace_processor
518filegroup(
519 name = "include_perfetto_trace_processor_trace_processor",
520 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100521 "include/perfetto/trace_processor/iterator.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100522 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100523 "include/perfetto/trace_processor/trace_processor.h",
524 ],
525)
526
527# GN target: //include/perfetto/tracing/core:core
528filegroup(
529 name = "include_perfetto_tracing_core_core",
530 srcs = [
531 "include/perfetto/tracing/core/chrome_config.h",
532 "include/perfetto/tracing/core/data_source_config.h",
533 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100534 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000535 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100536 "include/perfetto/tracing/core/tracing_service_state.h",
537 ],
538)
539
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000540# GN target: //include/perfetto/tracing/core:forward_decls
541filegroup(
542 name = "include_perfetto_tracing_core_forward_decls",
543 srcs = [
544 "include/perfetto/tracing/core/forward_decls.h",
545 ],
546)
547
Primiano Tucci1d409982019-09-19 10:15:18 +0100548# GN target: //include/perfetto/tracing:tracing
549filegroup(
550 name = "include_perfetto_tracing_tracing",
551 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100552 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100553 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000554 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100555 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000556 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000557 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000558 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100559 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000560 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000561 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100562 "include/perfetto/tracing/internal/data_source_internal.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000563 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000564 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000565 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000566 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100567 "include/perfetto/tracing/internal/tracing_muxer.h",
568 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700569 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100570 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000571 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100572 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000573 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100574 "include/perfetto/tracing/locked_handle.h",
575 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000576 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100577 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000578 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000579 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000580 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100581 "include/perfetto/tracing/tracing.h",
582 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100583 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000584 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700585 "include/perfetto/tracing/track_event.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100586 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000587 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000588 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000589 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100590 ],
591)
592
593# GN target: //src/android_internal:headers
594filegroup(
595 name = "src_android_internal_headers",
596 srcs = [
597 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100598 "src/android_internal/health_hal.h",
599 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000600 "src/android_internal/power_stats.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000601 "src/android_internal/statsd_logging.h",
Collin Fijalkovichef96fb72021-01-06 16:14:33 -0800602 "src/android_internal/tracing_service_proxy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100603 ],
604)
605
606# GN target: //src/android_internal:lazy_library_loader
607filegroup(
608 name = "src_android_internal_lazy_library_loader",
609 srcs = [
610 "src/android_internal/lazy_library_loader.cc",
611 "src/android_internal/lazy_library_loader.h",
612 ],
613)
614
Lalit Magantif2d81b72020-12-11 01:53:29 +0000615# GN target: //src/android_stats:android_stats
616filegroup(
617 name = "src_android_stats_android_stats",
618 srcs = [
619 "src/android_stats/statsd_logging_helper.cc",
620 "src/android_stats/statsd_logging_helper.h",
621 ],
622)
623
Lalit Magantid37172d2020-12-10 19:30:05 +0000624# GN target: //src/android_stats:perfetto_atoms
625filegroup(
626 name = "src_android_stats_perfetto_atoms",
627 srcs = [
628 "src/android_stats/perfetto_atoms.h",
629 ],
630)
631
Primiano Tucci1d409982019-09-19 10:15:18 +0100632# GN target: //src/base:base
Primiano Tucci916f4e52020-10-16 20:40:33 +0200633perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100634 name = "src_base_base",
635 srcs = [
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100636 "src/base/ctrl_c_handler.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100637 "src/base/event_fd.cc",
638 "src/base/file_utils.cc",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100639 "src/base/getopt_compat.cc",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000640 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100641 "src/base/metatrace.cc",
642 "src/base/paged_memory.cc",
Primiano Tuccidac91702021-04-30 15:47:51 +0100643 "src/base/periodic_task.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100644 "src/base/pipe.cc",
Primiano Tuccidf440312020-10-30 16:43:58 +0100645 "src/base/status.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100646 "src/base/string_splitter.cc",
647 "src/base/string_utils.cc",
648 "src/base/string_view.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100649 "src/base/subprocess.cc",
Primiano Tucci8163b2c2020-12-21 15:26:04 +0100650 "src/base/subprocess_posix.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100651 "src/base/subprocess_windows.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100652 "src/base/temp_file.cc",
653 "src/base/thread_checker.cc",
654 "src/base/thread_task_runner.cc",
655 "src/base/time.cc",
656 "src/base/unix_task_runner.cc",
Primiano Tuccia81d2772020-10-07 00:12:41 +0200657 "src/base/utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100658 "src/base/uuid.cc",
Primiano Tucciec590132020-11-16 14:16:44 +0100659 "src/base/version.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100660 "src/base/virtual_destructors.cc",
661 "src/base/waitable_event.cc",
662 "src/base/watchdog_posix.cc",
663 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200664 hdrs = [
665 ":include_perfetto_base_base",
666 ":include_perfetto_ext_base_base",
667 ],
Primiano Tucciec590132020-11-16 14:16:44 +0100668 deps = [
669 ] + PERFETTO_CONFIG.deps.version_header,
Primiano Tucci916f4e52020-10-16 20:40:33 +0200670 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100671)
672
673# GN target: //src/base:unix_socket
Primiano Tucci916f4e52020-10-16 20:40:33 +0200674perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100675 name = "src_base_unix_socket",
676 srcs = [
677 "src/base/unix_socket.cc",
678 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200679 hdrs = [
680 ":include_perfetto_base_base",
681 ":include_perfetto_ext_base_base",
682 ],
683 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100684)
685
Primiano Tucciec590132020-11-16 14:16:44 +0100686genrule(
687 name = "src_base_version_gen_h",
688 srcs = [
689 "CHANGELOG",
690 ],
691 outs = [
692 "perfetto_version.gen.h",
693 ],
Joshua Gilpatrick042931b2020-12-04 08:55:59 -0800694 cmd = "$(location gen_version_header_py) --cpp_out=$@ --changelog=$(location CHANGELOG)",
Primiano Tucciec590132020-11-16 14:16:44 +0100695 exec_tools = [
696 ":gen_version_header_py",
697 ],
698)
699
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000700# GN target: //src/ipc:client
Primiano Tucci1d409982019-09-19 10:15:18 +0100701filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000702 name = "src_ipc_client",
703 srcs = [
704 "src/ipc/client_impl.cc",
705 "src/ipc/client_impl.h",
706 "src/ipc/service_proxy.cc",
707 ],
708)
709
710# GN target: //src/ipc:common
711filegroup(
712 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100713 srcs = [
714 "src/ipc/buffered_frame_deserializer.cc",
715 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100716 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000717 "src/ipc/virtual_destructors.cc",
718 ],
719)
720
721# GN target: //src/ipc:host
722filegroup(
723 name = "src_ipc_host",
724 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100725 "src/ipc/host_impl.cc",
726 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100727 ],
728)
729
Ryan Savitskidc218882020-11-16 18:02:02 +0000730# GN target: //src/kallsyms:kallsyms
731filegroup(
732 name = "src_kallsyms_kallsyms",
733 srcs = [
734 "src/kallsyms/kernel_symbol_map.cc",
735 "src/kallsyms/kernel_symbol_map.h",
736 "src/kallsyms/lazy_kernel_symbolizer.cc",
737 "src/kallsyms/lazy_kernel_symbolizer.h",
738 ],
739)
740
Lalit Maganti2939c082021-03-11 17:25:44 +0000741perfetto_cc_proto_descriptor(
742 name = "src_perfetto_cmd_gen_cc_config_descriptor",
743 deps = [
744 ":protos_perfetto_config_perfetto_config_descriptor",
745 ],
746 outs = [
747 "src/perfetto_cmd/perfetto_config.descriptor.h",
748 ],
749)
750
Primiano Tucci1d409982019-09-19 10:15:18 +0100751# GN target: //src/perfetto_cmd:perfetto_cmd
752filegroup(
753 name = "src_perfetto_cmd_perfetto_cmd",
754 srcs = [
755 "src/perfetto_cmd/config.cc",
756 "src/perfetto_cmd/config.h",
757 "src/perfetto_cmd/packet_writer.cc",
758 "src/perfetto_cmd/packet_writer.h",
759 "src/perfetto_cmd/pbtxt_to_pb.cc",
760 "src/perfetto_cmd/pbtxt_to_pb.h",
761 "src/perfetto_cmd/perfetto_cmd.cc",
762 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100763 "src/perfetto_cmd/rate_limiter.cc",
764 "src/perfetto_cmd/rate_limiter.h",
765 ],
766)
767
768# GN target: //src/perfetto_cmd:trigger_producer
769filegroup(
770 name = "src_perfetto_cmd_trigger_producer",
771 srcs = [
772 "src/perfetto_cmd/trigger_producer.cc",
773 "src/perfetto_cmd/trigger_producer.h",
774 ],
775)
776
Florian Mayerbd88ff82019-12-18 16:36:37 +0000777# GN target: //src/profiling/symbolizer:symbolize_database
778filegroup(
779 name = "src_profiling_symbolizer_symbolize_database",
780 srcs = [
781 "src/profiling/symbolizer/symbolize_database.cc",
782 "src/profiling/symbolizer/symbolize_database.h",
783 ],
784)
785
786# GN target: //src/profiling/symbolizer:symbolizer
787filegroup(
788 name = "src_profiling_symbolizer_symbolizer",
789 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000790 "src/profiling/symbolizer/breakpad_parser.cc",
791 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000792 "src/profiling/symbolizer/breakpad_symbolizer.cc",
793 "src/profiling/symbolizer/breakpad_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800794 "src/profiling/symbolizer/filesystem.h",
795 "src/profiling/symbolizer/filesystem_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800796 "src/profiling/symbolizer/filesystem_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000797 "src/profiling/symbolizer/local_symbolizer.cc",
798 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800799 "src/profiling/symbolizer/scoped_read_mmap.h",
800 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800801 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800802 "src/profiling/symbolizer/subprocess.h",
803 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800804 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000805 "src/profiling/symbolizer/symbolizer.cc",
806 "src/profiling/symbolizer/symbolizer.h",
807 ],
808)
809
Florian Mayer3be55fb2019-11-22 13:08:47 +0000810# GN target: //src/profiling:deobfuscator
811filegroup(
812 name = "src_profiling_deobfuscator",
813 srcs = [
814 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000815 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000816 ],
817)
818
Primiano Tuccif18ab812021-05-14 23:01:19 +0100819# GN target: //src/protozero/filtering:bytecode_common
820filegroup(
821 name = "src_protozero_filtering_bytecode_common",
822 srcs = [
823 "src/protozero/filtering/filter_bytecode_common.h",
824 ],
825)
826
Lalit Magantiff9b3262021-07-01 22:24:01 +0100827# GN target: //src/protozero/filtering:bytecode_generator
828filegroup(
829 name = "src_protozero_filtering_bytecode_generator",
830 srcs = [
831 "src/protozero/filtering/filter_bytecode_generator.cc",
832 "src/protozero/filtering/filter_bytecode_generator.h",
833 ],
834)
835
Primiano Tuccif18ab812021-05-14 23:01:19 +0100836# GN target: //src/protozero/filtering:bytecode_parser
837filegroup(
838 name = "src_protozero_filtering_bytecode_parser",
839 srcs = [
840 "src/protozero/filtering/filter_bytecode_parser.cc",
841 "src/protozero/filtering/filter_bytecode_parser.h",
842 ],
843)
844
Lalit Magantiff9b3262021-07-01 22:24:01 +0100845# GN target: //src/protozero/filtering:filter_util
846filegroup(
847 name = "src_protozero_filtering_filter_util",
848 srcs = [
849 "src/protozero/filtering/filter_util.cc",
850 "src/protozero/filtering/filter_util.h",
851 ],
852)
853
Primiano Tuccif18ab812021-05-14 23:01:19 +0100854# GN target: //src/protozero/filtering:message_filter
855filegroup(
856 name = "src_protozero_filtering_message_filter",
857 srcs = [
858 "src/protozero/filtering/message_filter.cc",
859 "src/protozero/filtering/message_filter.h",
860 "src/protozero/filtering/message_tokenizer.h",
861 ],
862)
863
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100864# GN target: //src/protozero:proto_ring_buffer
865filegroup(
866 name = "src_protozero_proto_ring_buffer",
867 srcs = [
868 "src/protozero/proto_ring_buffer.cc",
869 "src/protozero/proto_ring_buffer.h",
870 ],
871)
872
Lalit Maganti97d7d472020-04-07 18:49:17 +0100873# GN target: //src/trace_processor/analysis:analysis
874filegroup(
875 name = "src_trace_processor_analysis_analysis",
876 srcs = [
877 "src/trace_processor/analysis/describe_slice.cc",
878 "src/trace_processor/analysis/describe_slice.h",
879 ],
880)
881
Lalit Maganti2aa88582019-12-17 17:06:49 +0000882# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +0100883perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +0000884 name = "src_trace_processor_containers_containers",
885 srcs = [
886 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000887 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +0100888 "src/trace_processor/containers/nullable_vector.cc",
889 "src/trace_processor/containers/row_map.cc",
890 "src/trace_processor/containers/string_pool.cc",
891 ],
892 hdrs = [
893 ":include_perfetto_base_base",
894 ":include_perfetto_protozero_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +0100895 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000896 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000897 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +0100898 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000899 "src/trace_processor/containers/row_map.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000900 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000901 ],
Ryan0331ac02021-04-26 15:41:47 +0100902 deps = [
903 ":src_base_base",
904 ],
905 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +0000906)
907
Lalit Maganti1534bb72021-04-23 14:11:26 +0100908# GN target: //src/trace_processor/db:db
Primiano Tucci1d409982019-09-19 10:15:18 +0100909filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100910 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +0100911 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100912 "src/trace_processor/db/column.cc",
913 "src/trace_processor/db/column.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +0000914 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100915 "src/trace_processor/db/table.cc",
916 "src/trace_processor/db/table.h",
917 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +0000918 "src/trace_processor/db/typed_column_internal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100919 ],
920)
921
Lalit Maganti1534bb72021-04-23 14:11:26 +0100922# GN target: //src/trace_processor/importers/common:common
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100923filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100924 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100925 srcs = [
926 "src/trace_processor/importers/common/args_tracker.cc",
927 "src/trace_processor/importers/common/args_tracker.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +0100928 "src/trace_processor/importers/common/chunked_trace_reader.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100929 "src/trace_processor/importers/common/clock_tracker.cc",
930 "src/trace_processor/importers/common/clock_tracker.h",
931 "src/trace_processor/importers/common/event_tracker.cc",
932 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300933 "src/trace_processor/importers/common/flow_tracker.cc",
934 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100935 "src/trace_processor/importers/common/global_args_tracker.cc",
936 "src/trace_processor/importers/common/global_args_tracker.h",
937 "src/trace_processor/importers/common/process_tracker.cc",
938 "src/trace_processor/importers/common/process_tracker.h",
939 "src/trace_processor/importers/common/slice_tracker.cc",
940 "src/trace_processor/importers/common/slice_tracker.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100941 "src/trace_processor/importers/common/system_info_tracker.cc",
942 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantid1a7b032021-04-23 14:46:57 +0100943 "src/trace_processor/importers/common/trace_parser.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100944 "src/trace_processor/importers/common/track_tracker.cc",
945 "src/trace_processor/importers/common/track_tracker.h",
946 ],
947)
948
Lalit Maganti1534bb72021-04-23 14:11:26 +0100949# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
950filegroup(
951 name = "src_trace_processor_importers_memory_tracker_graph_processor",
952 srcs = [
953 "src/trace_processor/importers/memory_tracker/graph.cc",
954 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
955 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
956 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
957 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
958 ],
959)
960
Lalit Maganti117272f2020-09-11 14:01:18 +0100961perfetto_cc_proto_descriptor(
Andrew Shulaevba0a5d12021-01-07 08:44:50 +0000962 name = "src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
963 deps = [
964 ":protos_third_party_chromium_chrome_track_event_descriptor",
965 ],
966 outs = [
967 "src/trace_processor/importers/chrome_track_event.descriptor.h",
968 ],
969)
970
971perfetto_cc_proto_descriptor(
Hector Dearmana1d75242020-10-02 09:47:24 +0100972 name = "src_trace_processor_importers_gen_cc_config_descriptor",
973 deps = [
974 ":protos_perfetto_config_descriptor",
975 ],
976 outs = [
977 "src/trace_processor/importers/config.descriptor.h",
978 ],
979)
980
981perfetto_cc_proto_descriptor(
Andrew Shulaeve72d1a32021-01-13 12:59:55 +0000982 name = "src_trace_processor_importers_gen_cc_track_event_descriptor",
983 deps = [
984 ":protos_perfetto_trace_track_event_track_event_descriptor",
985 ],
986 outs = [
987 "src/trace_processor/importers/track_event.descriptor.h",
988 ],
989)
990
991perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +0100992 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
993 deps = [
994 ":protos_perfetto_metrics_chrome_descriptor",
995 ],
996 outs = [
997 "src/trace_processor/metrics/chrome/all_chrome_metrics.descriptor.h",
998 ],
999)
1000
1001perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001002 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1003 deps = [
1004 ":protos_perfetto_metrics_descriptor",
1005 ],
1006 outs = [
1007 "src/trace_processor/metrics/metrics.descriptor.h",
1008 ],
1009)
1010
Primiano Tucci1d409982019-09-19 10:15:18 +01001011genrule(
1012 name = "src_trace_processor_metrics_gen_merged_sql_metrics",
1013 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001014 "src/trace_processor/metrics/android/android_batt.sql",
1015 "src/trace_processor/metrics/android/android_cpu.sql",
Primiano Tucci1d409982019-09-19 10:15:18 +01001016 "src/trace_processor/metrics/android/android_cpu_agg.sql",
Oksana Zhuravlovaa0751512020-05-28 10:21:53 -07001017 "src/trace_processor/metrics/android/android_cpu_raw_metrics_per_core.sql",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07001018 "src/trace_processor/metrics/android/android_dma_heap.sql",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08001019 "src/trace_processor/metrics/android/android_fastrpc.sql",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07001020 "src/trace_processor/metrics/android/android_gpu.sql",
Midas Chien9b804b12020-12-12 00:46:58 +08001021 "src/trace_processor/metrics/android/android_hwcomposer.sql",
Stan Iliev1d531822020-01-17 11:12:18 -05001022 "src/trace_processor/metrics/android/android_hwui_metric.sql",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00001023 "src/trace_processor/metrics/android/android_hwui_threads.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +01001024 "src/trace_processor/metrics/android/android_ion.sql",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00001025 "src/trace_processor/metrics/android/android_jank.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001026 "src/trace_processor/metrics/android/android_lmk.sql",
Rafal Slawik88ffa442019-11-27 14:42:06 +00001027 "src/trace_processor/metrics/android/android_lmk_reason.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001028 "src/trace_processor/metrics/android/android_mem.sql",
1029 "src/trace_processor/metrics/android/android_mem_unagg.sql",
1030 "src/trace_processor/metrics/android/android_package_list.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +01001031 "src/trace_processor/metrics/android/android_powrails.sql",
Mikhail Khokhlov46496812020-06-10 15:29:23 +01001032 "src/trace_processor/metrics/android/android_proxy_power.sql",
Primiano Tucci1d409982019-09-19 10:15:18 +01001033 "src/trace_processor/metrics/android/android_startup.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +01001034 "src/trace_processor/metrics/android/android_startup_launches.sql",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01001035 "src/trace_processor/metrics/android/android_surfaceflinger.sql",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00001036 "src/trace_processor/metrics/android/android_sysui_cuj.sql",
Marcin Oczeretko6ff23a52021-06-18 17:34:22 +01001037 "src/trace_processor/metrics/android/android_sysui_cuj_jank_query.sql",
Ioannis Ilkos07270452020-03-06 17:50:17 +00001038 "src/trace_processor/metrics/android/android_task_names.sql",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01001039 "src/trace_processor/metrics/android/android_thread_time_in_state.sql",
Lalit Maganti98002fb2021-06-18 20:31:15 +01001040 "src/trace_processor/metrics/android/android_trace_quality.sql",
Wiwit Rifa'i12de1f52021-04-08 22:59:39 +08001041 "src/trace_processor/metrics/android/composer_execution.sql",
Midas Chien9b804b12020-12-12 00:46:58 +08001042 "src/trace_processor/metrics/android/composition_layers.sql",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01001043 "src/trace_processor/metrics/android/cpu_info.sql",
Edgar Arriaga32975d22020-03-03 10:31:44 -08001044 "src/trace_processor/metrics/android/display_metrics.sql",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01001045 "src/trace_processor/metrics/android/frame_missed.sql",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08001046 "src/trace_processor/metrics/android/g2d.sql",
1047 "src/trace_processor/metrics/android/g2d_duration.sql",
Yiwei Zhang48a955a2020-09-10 09:39:45 -07001048 "src/trace_processor/metrics/android/global_counter_span_view.sql",
Wiwit Rifa'ie4a01842021-06-16 15:47:35 +08001049 "src/trace_processor/metrics/android/gpu_counter_span_view.sql",
Lalit Magantic5f436f2020-04-22 22:02:57 +01001050 "src/trace_processor/metrics/android/hsc_startups.sql",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00001051 "src/trace_processor/metrics/android/java_heap_histogram.sql",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00001052 "src/trace_processor/metrics/android/java_heap_stats.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001053 "src/trace_processor/metrics/android/mem_stats_priority_breakdown.sql",
Dan Elphick29c71962020-10-02 14:28:30 +01001054 "src/trace_processor/metrics/android/power_drain_in_watts.sql",
Mikhail Khokhlov4f658692020-06-29 16:33:50 +01001055 "src/trace_processor/metrics/android/power_profile_data.sql",
Simon MacMullen687a9292020-05-11 15:09:21 +01001056 "src/trace_processor/metrics/android/process_counter_span_view.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001057 "src/trace_processor/metrics/android/process_mem.sql",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00001058 "src/trace_processor/metrics/android/process_metadata.sql",
Rafal Slawikda2b4212019-11-26 11:44:02 +00001059 "src/trace_processor/metrics/android/process_oom_score.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +01001060 "src/trace_processor/metrics/android/process_unagg_mem_view.sql",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01001061 "src/trace_processor/metrics/android/profiler_smaps.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001062 "src/trace_processor/metrics/android/span_view_stats.sql",
Wiwit Rifa'i2a1e3dd2021-05-31 11:19:18 +08001063 "src/trace_processor/metrics/android/thread_counter_span_view.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001064 "src/trace_processor/metrics/android/unsymbolized_frames.sql",
Dan Elphick08057822020-11-13 12:58:53 +00001065 "src/trace_processor/metrics/chrome/actual_power_by_category.sql",
Dan Elphick29c71962020-10-02 14:28:30 +01001066 "src/trace_processor/metrics/chrome/actual_power_by_rail_mode.sql",
Dan Elphick5fd8a4c2020-11-13 17:20:07 +00001067 "src/trace_processor/metrics/chrome/chrome_event_metadata.sql",
Sami Kyostilab5610ab2020-04-28 19:10:43 +01001068 "src/trace_processor/metrics/chrome/chrome_processes.sql",
Lalit Magantif4fd8482021-07-29 14:46:59 +00001069 "src/trace_processor/metrics/chrome/chrome_thread_slice_with_cpu_time.sql",
Dan Elphick08057822020-11-13 12:58:53 +00001070 "src/trace_processor/metrics/chrome/cpu_time_by_category.sql",
Dan Elphick29c71962020-10-02 14:28:30 +01001071 "src/trace_processor/metrics/chrome/cpu_time_by_rail_mode.sql",
Dan Elphick08057822020-11-13 12:58:53 +00001072 "src/trace_processor/metrics/chrome/estimated_power_by_category.sql",
Dan Elphick29c71962020-10-02 14:28:30 +01001073 "src/trace_processor/metrics/chrome/estimated_power_by_rail_mode.sql",
1074 "src/trace_processor/metrics/chrome/rail_modes.sql",
Stephen Nuskof3c5fcb2020-07-08 14:53:33 +01001075 "src/trace_processor/metrics/chrome/scroll_flow_event.sql",
Stephen Nusko81feb972020-07-17 18:44:56 +01001076 "src/trace_processor/metrics/chrome/scroll_flow_event_queuing_delay.sql",
Stephen Nuskofb1992c2020-07-07 13:18:11 +01001077 "src/trace_processor/metrics/chrome/scroll_jank.sql",
Stephen Nuskoc7960ed2020-07-17 14:34:35 +01001078 "src/trace_processor/metrics/chrome/scroll_jank_cause.sql",
1079 "src/trace_processor/metrics/chrome/scroll_jank_cause_blocking_task.sql",
1080 "src/trace_processor/metrics/chrome/scroll_jank_cause_blocking_touch_move.sql",
Stephen Nusko2561e542020-10-26 09:05:08 -04001081 "src/trace_processor/metrics/chrome/scroll_jank_cause_get_bitmap.sql",
Stephen Nusko83929782020-07-29 12:31:32 +01001082 "src/trace_processor/metrics/chrome/scroll_jank_cause_queuing_delay.sql",
Deepanjan Royece03502020-08-05 15:47:16 -04001083 "src/trace_processor/metrics/chrome/test_chrome_metric.sql",
Stephen Nuskof848d462021-04-06 13:28:04 +01001084 "src/trace_processor/metrics/experimental/blink_gc_metric.sql",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00001085 "src/trace_processor/metrics/experimental/frame_times.sql",
Eric Seckler3955ba52021-04-07 12:12:43 +01001086 "src/trace_processor/metrics/experimental/media_metric.sql",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00001087 "src/trace_processor/metrics/experimental/reported_by_page.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001088 "src/trace_processor/metrics/trace_metadata.sql",
Ryan Savitski0948e1c2021-04-01 16:23:45 +01001089 "src/trace_processor/metrics/trace_stats.sql",
Oksana Zhuravlovafe596752020-06-15 16:27:16 -07001090 "src/trace_processor/metrics/webview/webview_power_usage.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001091 ],
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001092 outs = [
1093 "src/trace_processor/metrics/sql_metrics.h",
1094 ],
Lalit Magantie667b0f2019-05-02 13:49:35 +01001095 cmd = "$(location gen_merged_sql_metrics_py) --cpp_out=$@ $(SRCS)",
Lalit Maganti9d9e56b2020-08-13 17:38:15 +01001096 exec_tools = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001097 ":gen_merged_sql_metrics_py",
1098 ],
1099)
1100
1101# GN target: //src/trace_processor/metrics:lib
1102filegroup(
1103 name = "src_trace_processor_metrics_lib",
1104 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001105 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001106 "src/trace_processor/metrics/metrics.h",
1107 ],
1108)
1109
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001110# GN target: //src/trace_processor/rpc:httpd
1111filegroup(
1112 name = "src_trace_processor_rpc_httpd",
1113 srcs = [
1114 "src/trace_processor/rpc/httpd.cc",
1115 "src/trace_processor/rpc/httpd.h",
1116 ],
1117)
1118
1119# GN target: //src/trace_processor/rpc:rpc
1120filegroup(
1121 name = "src_trace_processor_rpc_rpc",
1122 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001123 "src/trace_processor/rpc/query_result_serializer.cc",
1124 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001125 "src/trace_processor/rpc/rpc.cc",
1126 "src/trace_processor/rpc/rpc.h",
1127 ],
1128)
1129
Primiano Tucci1d409982019-09-19 10:15:18 +01001130# GN target: //src/trace_processor/sqlite:sqlite
1131filegroup(
1132 name = "src_trace_processor_sqlite_sqlite",
1133 srcs = [
1134 "src/trace_processor/sqlite/db_sqlite_table.cc",
1135 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001136 "src/trace_processor/sqlite/query_cache.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001137 "src/trace_processor/sqlite/query_constraints.cc",
1138 "src/trace_processor/sqlite/query_constraints.h",
1139 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001140 "src/trace_processor/sqlite/span_join_operator_table.cc",
1141 "src/trace_processor/sqlite/span_join_operator_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001142 "src/trace_processor/sqlite/sql_stats_table.cc",
1143 "src/trace_processor/sqlite/sql_stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001144 "src/trace_processor/sqlite/sqlite3_str_split.cc",
1145 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001146 "src/trace_processor/sqlite/sqlite_raw_table.cc",
1147 "src/trace_processor/sqlite/sqlite_raw_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001148 "src/trace_processor/sqlite/sqlite_table.cc",
1149 "src/trace_processor/sqlite/sqlite_table.h",
1150 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001151 "src/trace_processor/sqlite/stats_table.cc",
1152 "src/trace_processor/sqlite/stats_table.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001153 "src/trace_processor/sqlite/window_operator_table.cc",
1154 "src/trace_processor/sqlite/window_operator_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001155 ],
1156)
1157
Lalit Maganti7010b332020-02-07 10:51:15 +00001158# GN target: //src/trace_processor/storage:storage
1159filegroup(
1160 name = "src_trace_processor_storage_storage",
1161 srcs = [
1162 "src/trace_processor/storage/metadata.h",
1163 "src/trace_processor/storage/stats.h",
1164 "src/trace_processor/storage/trace_storage.cc",
1165 "src/trace_processor/storage/trace_storage.h",
1166 ],
1167)
1168
Primiano Tucci1d409982019-09-19 10:15:18 +01001169# GN target: //src/trace_processor/tables:tables
1170filegroup(
1171 name = "src_trace_processor_tables_tables",
1172 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +00001173 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +00001174 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001175 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001176 "src/trace_processor/tables/macros.h",
1177 "src/trace_processor/tables/macros_internal.h",
Witold Fijalkowskicdaed0e2020-10-02 09:47:21 +02001178 "src/trace_processor/tables/memory_tables.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +00001179 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001180 "src/trace_processor/tables/profiler_tables.h",
1181 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01001182 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001183 "src/trace_processor/tables/track_tables.h",
1184 ],
1185)
1186
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001187# GN target: //src/trace_processor/types:types
1188filegroup(
1189 name = "src_trace_processor_types_types",
1190 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01001191 "src/trace_processor/types/destructible.cc",
1192 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001193 "src/trace_processor/types/gfp_flags.cc",
1194 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12001195 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01001196 "src/trace_processor/types/task_state.cc",
1197 "src/trace_processor/types/task_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01001198 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001199 "src/trace_processor/types/variadic.cc",
1200 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001201 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001202 ],
1203)
1204
Lalit Magantie7107402020-04-15 13:41:12 +01001205# GN target: //src/trace_processor/util:descriptors
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001206filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001207 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001208 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01001209 "src/trace_processor/util/descriptors.cc",
1210 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001211 ],
1212)
1213
Lalit Maganti69216ec2021-05-21 14:10:42 +01001214# GN target: //src/trace_processor/util:gzip
1215filegroup(
1216 name = "src_trace_processor_util_gzip",
1217 srcs = [
1218 "src/trace_processor/util/gzip_utils.cc",
1219 "src/trace_processor/util/gzip_utils.h",
1220 ],
1221)
1222
Alexander Timin97d87852021-05-17 18:01:33 +00001223# GN target: //src/trace_processor/util:interned_message_view
1224filegroup(
1225 name = "src_trace_processor_util_interned_message_view",
1226 srcs = [
1227 "src/trace_processor/util/interned_message_view.h",
1228 ],
1229)
1230
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001231# GN target: //src/trace_processor/util:proto_to_args_parser
1232filegroup(
1233 name = "src_trace_processor_util_proto_to_args_parser",
1234 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00001235 "src/trace_processor/util/debug_annotation_parser.cc",
1236 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001237 "src/trace_processor/util/proto_to_args_parser.cc",
1238 "src/trace_processor/util/proto_to_args_parser.h",
1239 ],
1240)
1241
Deepanjan Roy1e048012020-09-23 12:49:04 -04001242# GN target: //src/trace_processor/util:protozero_to_text
1243filegroup(
1244 name = "src_trace_processor_util_protozero_to_text",
1245 srcs = [
1246 "src/trace_processor/util/protozero_to_text.cc",
1247 "src/trace_processor/util/protozero_to_text.h",
1248 ],
1249)
1250
Alexander Timin97d87852021-05-17 18:01:33 +00001251# GN target: //src/trace_processor/util:trace_blob_view
1252filegroup(
1253 name = "src_trace_processor_util_trace_blob_view",
1254 srcs = [
1255 "src/trace_processor/util/trace_blob_view.h",
1256 ],
1257)
1258
Lalit Magantie7107402020-04-15 13:41:12 +01001259# GN target: //src/trace_processor/util:util
1260filegroup(
1261 name = "src_trace_processor_util_util",
1262 srcs = [
1263 "src/trace_processor/util/status_macros.h",
1264 ],
1265)
1266
Eric Secklera7870e62019-11-01 10:11:58 +00001267# GN target: //src/trace_processor:export_json
1268filegroup(
1269 name = "src_trace_processor_export_json",
1270 srcs = [
1271 "src/trace_processor/export_json.cc",
1272 "src/trace_processor/export_json.h",
1273 ],
1274)
1275
Lalit Maganti655adae2020-04-14 21:01:25 +01001276# GN target: //src/trace_processor:ftrace_descriptors
1277filegroup(
1278 name = "src_trace_processor_ftrace_descriptors",
1279 srcs = [
1280 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1281 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1282 ],
1283)
1284
Primiano Tucci1d409982019-09-19 10:15:18 +01001285# GN target: //src/trace_processor:lib
1286filegroup(
1287 name = "src_trace_processor_lib",
1288 srcs = [
Stephen Nuskodd7f6dc2020-11-26 17:04:08 -05001289 "src/trace_processor/dynamic/ancestor_generator.cc",
1290 "src/trace_processor/dynamic/ancestor_generator.h",
Andrii824107d2020-09-29 10:13:36 +03001291 "src/trace_processor/dynamic/connected_flow_generator.cc",
1292 "src/trace_processor/dynamic/connected_flow_generator.h",
Stephen Nusko2b8d8092020-07-02 13:24:30 +01001293 "src/trace_processor/dynamic/descendant_slice_generator.cc",
1294 "src/trace_processor/dynamic/descendant_slice_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001295 "src/trace_processor/dynamic/describe_slice_generator.cc",
1296 "src/trace_processor/dynamic/describe_slice_generator.h",
Ryanddeb3b12021-04-12 15:55:17 +01001297 "src/trace_processor/dynamic/experimental_annotated_stack_generator.cc",
1298 "src/trace_processor/dynamic/experimental_annotated_stack_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001299 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
1300 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
1301 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
1302 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
Lalit Maganti40fbe8e2021-06-10 16:21:25 +01001303 "src/trace_processor/dynamic/experimental_flat_slice_generator.cc",
1304 "src/trace_processor/dynamic/experimental_flat_slice_generator.h",
Lalit Magantic59b1bc2020-07-28 16:36:58 +01001305 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
1306 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
Hector Dearman5b523762020-04-16 10:36:32 +01001307 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
1308 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
Lalit Maganti2fc5db22020-08-13 15:02:47 +01001309 "src/trace_processor/dynamic/thread_state_generator.cc",
1310 "src/trace_processor/dynamic/thread_state_generator.h",
Primiano Tucci4e01f632020-06-11 17:03:05 +01001311 "src/trace_processor/iterator_impl.cc",
1312 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001313 "src/trace_processor/read_trace.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001314 "src/trace_processor/trace_processor.cc",
1315 "src/trace_processor/trace_processor_impl.cc",
1316 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001317 ],
1318)
1319
Lalit Maganti427b8332020-05-27 16:09:45 +01001320# GN target: //src/trace_processor:metatrace
1321filegroup(
1322 name = "src_trace_processor_metatrace",
1323 srcs = [
1324 "src/trace_processor/tp_metatrace.cc",
1325 "src/trace_processor/tp_metatrace.h",
1326 ],
1327)
1328
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001329# GN target: //src/trace_processor:storage_full
Eric Secklera7870e62019-11-01 10:11:58 +00001330filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001331 name = "src_trace_processor_storage_full",
1332 srcs = [
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001333 "src/trace_processor/importers/additional_modules.cc",
1334 "src/trace_processor/importers/additional_modules.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001335 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1336 "src/trace_processor/importers/ftrace/binder_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001337 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1338 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1339 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1340 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1341 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1342 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
Lalit Maganti697894f2019-12-23 14:32:13 +00001343 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1344 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001345 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1346 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001347 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1348 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1349 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1350 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1351 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1352 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001353 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1354 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001355 "src/trace_processor/importers/json/json_trace_parser.cc",
1356 "src/trace_processor/importers/json/json_trace_parser.h",
1357 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1358 "src/trace_processor/importers/json/json_trace_tokenizer.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001359 "src/trace_processor/importers/json/json_tracker.cc",
1360 "src/trace_processor/importers/json/json_tracker.h",
Mikhail Khokhlov9996d5d2019-12-17 14:43:17 +00001361 "src/trace_processor/importers/proto/android_probes_module.cc",
1362 "src/trace_processor/importers/proto/android_probes_module.h",
1363 "src/trace_processor/importers/proto/android_probes_parser.cc",
1364 "src/trace_processor/importers/proto/android_probes_parser.h",
Florian Mayer19ce3952020-04-08 15:27:32 +02001365 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1366 "src/trace_processor/importers/proto/android_probes_tracker.h",
Adithya Srinivasan526a34e2020-11-06 13:40:58 -08001367 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1368 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001369 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1370 "src/trace_processor/importers/proto/gpu_event_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001371 "src/trace_processor/importers/proto/graphics_event_module.cc",
1372 "src/trace_processor/importers/proto/graphics_event_module.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001373 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1374 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
Mikhail Khokhlov6146a582019-12-17 17:33:47 +00001375 "src/trace_processor/importers/proto/heap_graph_module.cc",
1376 "src/trace_processor/importers/proto/heap_graph_module.h",
1377 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1378 "src/trace_processor/importers/proto/heap_graph_tracker.h",
Mikhail Khokhlov04f6eb72019-12-17 14:33:11 +00001379 "src/trace_processor/importers/proto/system_probes_module.cc",
1380 "src/trace_processor/importers/proto/system_probes_module.h",
1381 "src/trace_processor/importers/proto/system_probes_parser.cc",
1382 "src/trace_processor/importers/proto/system_probes_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001383 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1384 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001385 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1386 "src/trace_processor/importers/syscalls/syscalls_aarch32.h",
1387 "src/trace_processor/importers/syscalls/syscalls_aarch64.h",
1388 "src/trace_processor/importers/syscalls/syscalls_armeabi.h",
1389 "src/trace_processor/importers/syscalls/syscalls_x86.h",
1390 "src/trace_processor/importers/syscalls/syscalls_x86_64.h",
Lalit Maganti2f0b41d2020-02-27 13:35:39 +00001391 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1392 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1393 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1394 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001395 "src/trace_processor/importers/systrace/systrace_parser.cc",
1396 "src/trace_processor/importers/systrace/systrace_parser.h",
1397 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1398 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001399 ],
1400)
1401
1402# GN target: //src/trace_processor:storage_minimal
1403filegroup(
1404 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00001405 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001406 "src/trace_processor/forwarding_trace_parser.cc",
1407 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001408 "src/trace_processor/importers/default_modules.cc",
1409 "src/trace_processor/importers/default_modules.h",
Mikhail Khokhlovdd1db002019-12-09 16:34:07 +00001410 "src/trace_processor/importers/ftrace/ftrace_module.cc",
Eric Seckleracfe35b2019-10-18 15:50:17 +01001411 "src/trace_processor/importers/ftrace/ftrace_module.h",
Eric Seckler67e15a92020-01-03 13:20:46 +00001412 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
Eric Secklerd8b52082019-10-17 15:58:38 +01001413 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
Lalit Maganti0bfeb972020-03-14 03:57:30 +00001414 "src/trace_processor/importers/json/json_utils.cc",
1415 "src/trace_processor/importers/json/json_utils.h",
Primiano Tucci50446cb2020-02-14 10:40:23 +00001416 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1417 "src/trace_processor/importers/ninja/ninja_log_parser.h",
Lalit Magantif7a1a732020-10-12 15:42:34 +01001418 "src/trace_processor/importers/proto/async_track_set_tracker.cc",
1419 "src/trace_processor/importers/proto/async_track_set_tracker.h",
Oystein Eftevaag8e39ed82021-03-30 13:52:58 -07001420 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1421 "src/trace_processor/importers/proto/chrome_string_lookup.h",
ssid7f0c8592021-03-01 13:35:25 -08001422 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1423 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1424 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1425 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Tuchila Octavian8c795cd2021-08-25 09:48:35 +01001426 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.cc",
1427 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001428 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1429 "src/trace_processor/importers/proto/heap_profile_tracker.h",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01001430 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1431 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1432 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1433 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
Lalit Maganti8532fc92021-03-30 15:48:15 +01001434 "src/trace_processor/importers/proto/metadata_module.cc",
1435 "src/trace_processor/importers/proto/metadata_module.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001436 "src/trace_processor/importers/proto/metadata_tracker.cc",
1437 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001438 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001439 "src/trace_processor/importers/proto/packet_sequence_state.h",
Ryan Savitskic6c7e842021-03-10 14:26:59 +00001440 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1441 "src/trace_processor/importers/proto/perf_sample_tracker.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001442 "src/trace_processor/importers/proto/profile_module.cc",
1443 "src/trace_processor/importers/proto/profile_module.h",
1444 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1445 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001446 "src/trace_processor/importers/proto/profiler_util.cc",
1447 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001448 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001449 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001450 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001451 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1452 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001453 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1454 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001455 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1456 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001457 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1458 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001459 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001460 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001461 "src/trace_processor/importers/proto/track_event_parser.cc",
1462 "src/trace_processor/importers/proto/track_event_parser.h",
1463 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1464 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganti62b741f2020-12-10 18:24:00 +00001465 "src/trace_processor/importers/proto/track_event_tracker.cc",
1466 "src/trace_processor/importers/proto/track_event_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001467 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001468 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001469 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001470 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001471 "src/trace_processor/trace_processor_storage.cc",
1472 "src/trace_processor/trace_processor_storage_impl.cc",
1473 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001474 "src/trace_processor/trace_sorter.cc",
1475 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001476 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001477 ],
1478)
1479
1480# GN target: //src/traced/probes/android_log:android_log
1481filegroup(
1482 name = "src_traced_probes_android_log_android_log",
1483 srcs = [
1484 "src/traced/probes/android_log/android_log_data_source.cc",
1485 "src/traced/probes/android_log/android_log_data_source.h",
1486 ],
1487)
1488
Rafal Slawik8053a682020-04-08 17:26:40 +01001489# GN target: //src/traced/probes/common:common
1490filegroup(
1491 name = "src_traced_probes_common_common",
1492 srcs = [
1493 "src/traced/probes/common/cpu_freq_info.cc",
1494 "src/traced/probes/common/cpu_freq_info.h",
1495 ],
1496)
1497
Primiano Tucci1d409982019-09-19 10:15:18 +01001498# GN target: //src/traced/probes/filesystem:filesystem
1499filegroup(
1500 name = "src_traced_probes_filesystem_filesystem",
1501 srcs = [
1502 "src/traced/probes/filesystem/file_scanner.cc",
1503 "src/traced/probes/filesystem/file_scanner.h",
1504 "src/traced/probes/filesystem/fs_mount.cc",
1505 "src/traced/probes/filesystem/fs_mount.h",
1506 "src/traced/probes/filesystem/inode_file_data_source.cc",
1507 "src/traced/probes/filesystem/inode_file_data_source.h",
1508 "src/traced/probes/filesystem/lru_inode_cache.cc",
1509 "src/traced/probes/filesystem/lru_inode_cache.h",
1510 "src/traced/probes/filesystem/prefix_finder.cc",
1511 "src/traced/probes/filesystem/prefix_finder.h",
1512 "src/traced/probes/filesystem/range_tree.cc",
1513 "src/traced/probes/filesystem/range_tree.h",
1514 ],
1515)
1516
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001517# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Primiano Tucci1d409982019-09-19 10:15:18 +01001518filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001519 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01001520 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001521 "src/traced/probes/ftrace/format_parser/format_parser.cc",
1522 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001523 ],
1524)
1525
1526# GN target: //src/traced/probes/ftrace:ftrace
1527filegroup(
1528 name = "src_traced_probes_ftrace_ftrace",
1529 srcs = [
1530 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1531 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1532 "src/traced/probes/ftrace/atrace_wrapper.cc",
1533 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001534 "src/traced/probes/ftrace/compact_sched.cc",
1535 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001536 "src/traced/probes/ftrace/cpu_reader.cc",
1537 "src/traced/probes/ftrace/cpu_reader.h",
1538 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1539 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001540 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1541 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001542 "src/traced/probes/ftrace/event_info.cc",
1543 "src/traced/probes/ftrace/event_info.h",
1544 "src/traced/probes/ftrace/event_info_constants.cc",
1545 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001546 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1547 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1548 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1549 "src/traced/probes/ftrace/ftrace_config_utils.h",
1550 "src/traced/probes/ftrace/ftrace_controller.cc",
1551 "src/traced/probes/ftrace/ftrace_controller.h",
1552 "src/traced/probes/ftrace/ftrace_data_source.cc",
1553 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001554 "src/traced/probes/ftrace/ftrace_metadata.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001555 "src/traced/probes/ftrace/ftrace_stats.cc",
1556 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00001557 "src/traced/probes/ftrace/printk_formats_parser.cc",
1558 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001559 "src/traced/probes/ftrace/proto_translation_table.cc",
1560 "src/traced/probes/ftrace/proto_translation_table.h",
1561 ],
1562)
1563
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001564# GN target: //src/traced/probes/ftrace:ftrace_procfs
1565filegroup(
1566 name = "src_traced_probes_ftrace_ftrace_procfs",
1567 srcs = [
1568 "src/traced/probes/ftrace/ftrace_procfs.cc",
1569 "src/traced/probes/ftrace/ftrace_procfs.h",
1570 ],
1571)
1572
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001573# GN target: //src/traced/probes/initial_display_state:initial_display_state
1574filegroup(
1575 name = "src_traced_probes_initial_display_state_initial_display_state",
1576 srcs = [
1577 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1578 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1579 ],
1580)
1581
Primiano Tucci1d409982019-09-19 10:15:18 +01001582# GN target: //src/traced/probes/metatrace:metatrace
1583filegroup(
1584 name = "src_traced_probes_metatrace_metatrace",
1585 srcs = [
1586 "src/traced/probes/metatrace/metatrace_data_source.cc",
1587 "src/traced/probes/metatrace/metatrace_data_source.h",
1588 ],
1589)
1590
1591# GN target: //src/traced/probes/packages_list:packages_list
1592filegroup(
1593 name = "src_traced_probes_packages_list_packages_list",
1594 srcs = [
1595 "src/traced/probes/packages_list/packages_list_data_source.cc",
1596 "src/traced/probes/packages_list/packages_list_data_source.h",
1597 ],
1598)
1599
Florian Mayer29e17182020-12-23 10:59:02 +00001600# GN target: //src/traced/probes/packages_list:packages_list_parser
1601filegroup(
1602 name = "src_traced_probes_packages_list_packages_list_parser",
1603 srcs = [
1604 "src/traced/probes/packages_list/packages_list_parser.cc",
1605 "src/traced/probes/packages_list/packages_list_parser.h",
1606 ],
1607)
1608
Primiano Tucci1d409982019-09-19 10:15:18 +01001609# GN target: //src/traced/probes/power:power
1610filegroup(
1611 name = "src_traced_probes_power_power",
1612 srcs = [
1613 "src/traced/probes/power/android_power_data_source.cc",
1614 "src/traced/probes/power/android_power_data_source.h",
1615 ],
1616)
1617
1618# GN target: //src/traced/probes/ps:ps
1619filegroup(
1620 name = "src_traced_probes_ps_ps",
1621 srcs = [
1622 "src/traced/probes/ps/process_stats_data_source.cc",
1623 "src/traced/probes/ps/process_stats_data_source.h",
1624 ],
1625)
1626
1627# GN target: //src/traced/probes/sys_stats:sys_stats
1628filegroup(
1629 name = "src_traced_probes_sys_stats_sys_stats",
1630 srcs = [
1631 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1632 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1633 ],
1634)
1635
Rafal Slawikb013a112020-04-03 16:12:02 +01001636# GN target: //src/traced/probes/system_info:system_info
1637filegroup(
1638 name = "src_traced_probes_system_info_system_info",
1639 srcs = [
1640 "src/traced/probes/system_info/system_info_data_source.cc",
1641 "src/traced/probes/system_info/system_info_data_source.h",
1642 ],
1643)
1644
Primiano Tucci1d409982019-09-19 10:15:18 +01001645# GN target: //src/traced/probes:data_source
1646filegroup(
1647 name = "src_traced_probes_data_source",
1648 srcs = [
1649 "src/traced/probes/probes_data_source.cc",
1650 "src/traced/probes/probes_data_source.h",
1651 ],
1652)
1653
1654# GN target: //src/traced/probes:probes
1655filegroup(
1656 name = "src_traced_probes_probes",
1657 srcs = [
1658 "src/traced/probes/probes.cc",
1659 ],
1660)
1661
1662# GN target: //src/traced/probes:probes_src
1663filegroup(
1664 name = "src_traced_probes_probes_src",
1665 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05001666 "src/traced/probes/kmem_activity_trigger.cc",
1667 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001668 "src/traced/probes/probes_producer.cc",
1669 "src/traced/probes/probes_producer.h",
1670 ],
1671)
1672
1673# GN target: //src/traced/service:service
1674filegroup(
1675 name = "src_traced_service_service",
1676 srcs = [
1677 "src/traced/service/builtin_producer.cc",
1678 "src/traced/service/builtin_producer.h",
1679 "src/traced/service/service.cc",
1680 ],
1681)
1682
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001683# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
1684filegroup(
1685 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1686 srcs = [
1687 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1688 ],
1689)
1690
1691# GN target: //src/tracing/core:core
1692filegroup(
1693 name = "src_tracing_core_core",
1694 srcs = [
1695 "src/tracing/core/id_allocator.cc",
1696 "src/tracing/core/id_allocator.h",
1697 "src/tracing/core/null_trace_writer.cc",
1698 "src/tracing/core/null_trace_writer.h",
1699 "src/tracing/core/patch_list.h",
1700 "src/tracing/core/shared_memory_abi.cc",
1701 "src/tracing/core/shared_memory_arbiter_impl.cc",
1702 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001703 "src/tracing/core/trace_packet.cc",
1704 "src/tracing/core/trace_writer_impl.cc",
1705 "src/tracing/core/trace_writer_impl.h",
1706 "src/tracing/core/virtual_destructors.cc",
1707 ],
1708)
1709
1710# GN target: //src/tracing/core:service
1711filegroup(
1712 name = "src_tracing_core_service",
1713 srcs = [
1714 "src/tracing/core/metatrace_writer.cc",
1715 "src/tracing/core/metatrace_writer.h",
1716 "src/tracing/core/packet_stream_validator.cc",
1717 "src/tracing/core/packet_stream_validator.h",
1718 "src/tracing/core/trace_buffer.cc",
1719 "src/tracing/core/trace_buffer.h",
1720 "src/tracing/core/tracing_service_impl.cc",
1721 "src/tracing/core/tracing_service_impl.h",
1722 ],
1723)
1724
1725# GN target: //src/tracing/ipc/consumer:consumer
1726filegroup(
1727 name = "src_tracing_ipc_consumer_consumer",
1728 srcs = [
1729 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1730 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1731 ],
1732)
1733
1734# GN target: //src/tracing/ipc/producer:producer
1735filegroup(
1736 name = "src_tracing_ipc_producer_producer",
1737 srcs = [
1738 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1739 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1740 ],
1741)
1742
1743# GN target: //src/tracing/ipc/service:service
1744filegroup(
1745 name = "src_tracing_ipc_service_service",
1746 srcs = [
1747 "src/tracing/ipc/service/consumer_ipc_service.cc",
1748 "src/tracing/ipc/service/consumer_ipc_service.h",
1749 "src/tracing/ipc/service/producer_ipc_service.cc",
1750 "src/tracing/ipc/service/producer_ipc_service.h",
1751 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1752 "src/tracing/ipc/service/service_ipc_host_impl.h",
1753 ],
1754)
1755
1756# GN target: //src/tracing/ipc:common
1757filegroup(
1758 name = "src_tracing_ipc_common",
1759 srcs = [
1760 "src/tracing/ipc/default_socket.cc",
Eric Seckler14a22db2020-02-03 13:47:08 +00001761 "src/tracing/ipc/memfd.cc",
1762 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001763 "src/tracing/ipc/posix_shared_memory.cc",
1764 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001765 "src/tracing/ipc/shared_memory_windows.cc",
1766 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001767 ],
1768)
1769
Primiano Tucci3feec552020-02-04 11:14:42 +00001770# GN target: //src/tracing:client_api_without_backends
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001771filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001772 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001773 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001774 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001775 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001776 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001777 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001778 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00001779 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001780 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00001781 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00001782 "src/tracing/internal/tracing_muxer_fake.cc",
1783 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001784 "src/tracing/internal/tracing_muxer_impl.cc",
1785 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001786 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00001787 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001788 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00001789 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001790 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01001791 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001792 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001793 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001794 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001795 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001796 "src/tracing/virtual_destructors.cc",
1797 ],
1798)
1799
Primiano Tucci1d409982019-09-19 10:15:18 +01001800# GN target: //src/tracing:common
1801filegroup(
1802 name = "src_tracing_common",
1803 srcs = [
1804 "src/tracing/trace_writer_base.cc",
1805 ],
1806)
1807
Primiano Tucci55b4d912020-01-28 11:17:51 +00001808# GN target: //src/tracing:in_process_backend
1809filegroup(
1810 name = "src_tracing_in_process_backend",
1811 srcs = [
1812 "src/tracing/internal/in_process_tracing_backend.cc",
1813 ],
1814)
1815
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001816# GN target: //src/tracing:platform_impl
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001817filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001818 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001819 srcs = [
1820 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001821 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001822 ],
1823)
1824
Primiano Tucci3feec552020-02-04 11:14:42 +00001825# GN target: //src/tracing:system_backend
Primiano Tucci55b4d912020-01-28 11:17:51 +00001826filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001827 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001828 srcs = [
1829 "src/tracing/internal/system_tracing_backend.cc",
1830 ],
1831)
1832
Lalit Maganti65600342019-09-19 21:35:35 +01001833# GN target: //tools/trace_to_text:common
1834filegroup(
1835 name = "tools_trace_to_text_common",
1836 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00001837 "tools/trace_to_text/deobfuscate_profile.cc",
1838 "tools/trace_to_text/deobfuscate_profile.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001839 "tools/trace_to_text/main.cc",
1840 "tools/trace_to_text/symbolize_profile.cc",
1841 "tools/trace_to_text/symbolize_profile.h",
Ioannis Ilkos96d16f82020-10-08 14:41:19 +01001842 "tools/trace_to_text/trace_to_hprof.cc",
1843 "tools/trace_to_text/trace_to_hprof.h",
Eric Secklera60a6b42019-10-07 10:35:48 +01001844 "tools/trace_to_text/trace_to_json.cc",
1845 "tools/trace_to_text/trace_to_json.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001846 "tools/trace_to_text/trace_to_profile.cc",
1847 "tools/trace_to_text/trace_to_profile.h",
1848 "tools/trace_to_text/trace_to_systrace.cc",
1849 "tools/trace_to_text/trace_to_systrace.h",
1850 "tools/trace_to_text/trace_to_text.h",
1851 ],
1852)
1853
1854# GN target: //tools/trace_to_text:full
1855filegroup(
1856 name = "tools_trace_to_text_full",
1857 srcs = [
1858 "tools/trace_to_text/proto_full_utils.cc",
1859 "tools/trace_to_text/proto_full_utils.h",
1860 "tools/trace_to_text/trace_to_text.cc",
1861 ],
1862)
1863
Lalit Maganti9c2318c2021-05-20 16:21:41 +01001864perfetto_cc_proto_descriptor(
1865 name = "tools_trace_to_text_gen_cc_trace_descriptor",
1866 deps = [
1867 ":protos_perfetto_trace_descriptor",
1868 ],
1869 outs = [
1870 "tools/trace_to_text/trace.descriptor.h",
1871 ],
1872)
1873
Primiano Tucci1d409982019-09-19 10:15:18 +01001874# GN target: //tools/trace_to_text:pprofbuilder
1875filegroup(
1876 name = "tools_trace_to_text_pprofbuilder",
1877 srcs = [
1878 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001879 ],
1880)
1881
Primiano Tucci1d409982019-09-19 10:15:18 +01001882# GN target: //tools/trace_to_text:utils
1883filegroup(
1884 name = "tools_trace_to_text_utils",
1885 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001886 "tools/trace_to_text/utils.cc",
1887 "tools/trace_to_text/utils.h",
1888 ],
1889)
1890
Primiano Tucci1d409982019-09-19 10:15:18 +01001891# ##############################################################################
1892# Proto libraries
1893# ##############################################################################
1894
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001895# GN target: //protos/perfetto/common:cpp
1896perfetto_cc_protocpp_library(
1897 name = "protos_perfetto_common_cpp",
1898 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001899 ":protos_perfetto_common_protos",
1900 ],
1901)
1902
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001903# GN target: //protos/perfetto/common:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001904perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001905 name = "protos_perfetto_common_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001906 deps = [
1907 ":protos_perfetto_common_protos",
1908 ],
1909)
1910
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001911# GN target: //protos/perfetto/common:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001912perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001913 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001914 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08001915 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001916 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01001917 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001918 "protos/perfetto/common/commit_data_request.proto",
1919 "protos/perfetto/common/data_source_descriptor.proto",
1920 "protos/perfetto/common/descriptor.proto",
1921 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00001922 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001923 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00001924 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001925 "protos/perfetto/common/sys_stats_counters.proto",
1926 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00001927 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001928 "protos/perfetto/common/tracing_service_state.proto",
1929 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001930 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001931 visibility = [
1932 PERFETTO_CONFIG.proto_library_visibility,
1933 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001934)
1935
1936# GN target: //protos/perfetto/common:zero
1937perfetto_cc_protozero_library(
1938 name = "protos_perfetto_common_zero",
1939 deps = [
1940 ":protos_perfetto_common_protos",
1941 ],
1942)
1943
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001944# GN target: //protos/perfetto/config/android:cpp
1945perfetto_cc_protocpp_library(
1946 name = "protos_perfetto_config_android_cpp",
1947 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001948 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001949 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001950 ],
1951)
1952
Primiano Tucci1d409982019-09-19 10:15:18 +01001953# GN target: //protos/perfetto/config/android:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001954perfetto_cc_proto_library(
1955 name = "protos_perfetto_config_android_lite",
1956 deps = [
1957 ":protos_perfetto_config_android_protos",
1958 ],
1959)
1960
1961# GN target: //protos/perfetto/config/android:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001962perfetto_proto_library(
1963 name = "protos_perfetto_config_android_protos",
1964 srcs = [
1965 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01001966 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001967 "protos/perfetto/config/android/packages_list_config.proto",
1968 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001969 visibility = [
1970 PERFETTO_CONFIG.proto_library_visibility,
1971 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001972 deps = [
1973 ":protos_perfetto_common_protos",
1974 ],
1975)
1976
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001977# GN target: //protos/perfetto/config/android:zero
1978perfetto_cc_protozero_library(
1979 name = "protos_perfetto_config_android_zero",
1980 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01001981 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001982 ":protos_perfetto_config_android_protos",
1983 ],
1984)
1985
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001986# GN target: //protos/perfetto/config:cpp
1987perfetto_cc_protocpp_library(
1988 name = "protos_perfetto_config_cpp",
1989 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01001990 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001991 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001992 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001993 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001994 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001995 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001996 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001997 ":protos_perfetto_config_process_stats_cpp",
1998 ":protos_perfetto_config_profiling_cpp",
1999 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002000 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002001 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002002 ],
2003)
2004
Hector Dearmana1d75242020-10-02 09:47:24 +01002005# GN target: //protos/perfetto/config:descriptor
2006perfetto_proto_descriptor(
2007 name = "protos_perfetto_config_descriptor",
2008 deps = [
2009 ":protos_perfetto_config_protos",
2010 ],
2011 outs = [
2012 "protos_perfetto_config_descriptor.bin",
2013 ],
2014)
2015
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002016# GN target: //protos/perfetto/config/ftrace:cpp
2017perfetto_cc_protocpp_library(
2018 name = "protos_perfetto_config_ftrace_cpp",
2019 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002020 ":protos_perfetto_config_ftrace_protos",
2021 ],
2022)
2023
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002024# GN target: //protos/perfetto/config/ftrace:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002025perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002026 name = "protos_perfetto_config_ftrace_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002027 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002028 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002029 ],
2030)
2031
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002032# GN target: //protos/perfetto/config/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002033perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002034 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002035 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002036 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002037 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002038 visibility = [
2039 PERFETTO_CONFIG.proto_library_visibility,
2040 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002041)
2042
2043# GN target: //protos/perfetto/config/ftrace:zero
2044perfetto_cc_protozero_library(
2045 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002046 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002047 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002048 ],
2049)
2050
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002051# GN target: //protos/perfetto/config/gpu:cpp
2052perfetto_cc_protocpp_library(
2053 name = "protos_perfetto_config_gpu_cpp",
2054 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002055 ":protos_perfetto_config_gpu_protos",
2056 ],
2057)
2058
Primiano Tucci1d409982019-09-19 10:15:18 +01002059# GN target: //protos/perfetto/config/gpu:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002060perfetto_cc_proto_library(
2061 name = "protos_perfetto_config_gpu_lite",
2062 deps = [
2063 ":protos_perfetto_config_gpu_protos",
2064 ],
2065)
2066
2067# GN target: //protos/perfetto/config/gpu:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002068perfetto_proto_library(
2069 name = "protos_perfetto_config_gpu_protos",
2070 srcs = [
2071 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05002072 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002073 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002074 visibility = [
2075 PERFETTO_CONFIG.proto_library_visibility,
2076 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002077)
2078
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002079# GN target: //protos/perfetto/config/gpu:zero
2080perfetto_cc_protozero_library(
2081 name = "protos_perfetto_config_gpu_zero",
2082 deps = [
2083 ":protos_perfetto_config_gpu_protos",
2084 ],
2085)
2086
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002087# GN target: //protos/perfetto/config/inode_file:cpp
2088perfetto_cc_protocpp_library(
2089 name = "protos_perfetto_config_inode_file_cpp",
2090 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002091 ":protos_perfetto_config_inode_file_protos",
2092 ],
2093)
2094
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002095# GN target: //protos/perfetto/config/inode_file:lite
2096perfetto_cc_proto_library(
2097 name = "protos_perfetto_config_inode_file_lite",
2098 deps = [
2099 ":protos_perfetto_config_inode_file_protos",
2100 ],
2101)
2102
2103# GN target: //protos/perfetto/config/inode_file:zero
2104perfetto_proto_library(
2105 name = "protos_perfetto_config_inode_file_protos",
2106 srcs = [
2107 "protos/perfetto/config/inode_file/inode_file_config.proto",
2108 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002109 visibility = [
2110 PERFETTO_CONFIG.proto_library_visibility,
2111 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002112)
2113
2114# GN target: //protos/perfetto/config/inode_file:zero
2115perfetto_cc_protozero_library(
2116 name = "protos_perfetto_config_inode_file_zero",
2117 deps = [
2118 ":protos_perfetto_config_inode_file_protos",
2119 ],
2120)
2121
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002122# GN target: //protos/perfetto/config/interceptors:cpp
2123perfetto_cc_protocpp_library(
2124 name = "protos_perfetto_config_interceptors_cpp",
2125 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002126 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002127 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002128 ],
2129)
2130
2131# GN target: //protos/perfetto/config/interceptors:lite
2132perfetto_cc_proto_library(
2133 name = "protos_perfetto_config_interceptors_lite",
2134 deps = [
2135 ":protos_perfetto_config_interceptors_protos",
2136 ],
2137)
2138
2139# GN target: //protos/perfetto/config/interceptors:zero
2140perfetto_proto_library(
2141 name = "protos_perfetto_config_interceptors_protos",
2142 srcs = [
2143 "protos/perfetto/config/interceptors/console_config.proto",
2144 ],
2145 visibility = [
2146 PERFETTO_CONFIG.proto_library_visibility,
2147 ],
2148 deps = [
2149 ":protos_perfetto_common_protos",
2150 ],
2151)
2152
2153# GN target: //protos/perfetto/config/interceptors:zero
2154perfetto_cc_protozero_library(
2155 name = "protos_perfetto_config_interceptors_zero",
2156 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002157 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002158 ":protos_perfetto_config_interceptors_protos",
2159 ],
2160)
2161
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002162# GN target: //protos/perfetto/config:lite
2163perfetto_cc_proto_library(
2164 name = "protos_perfetto_config_lite",
2165 deps = [
2166 ":protos_perfetto_config_protos",
2167 ],
2168)
2169
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002170# GN target: //protos/perfetto/config:merged_config
2171perfetto_cc_proto_library(
2172 name = "protos_perfetto_config_merged_config",
2173 deps = [
2174 ":protos_perfetto_config_merged_config_protos",
2175 ],
2176)
2177
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002178# GN target: //protos/perfetto/config:merged_config
2179perfetto_proto_library(
2180 name = "protos_perfetto_config_merged_config_protos",
2181 srcs = [
2182 "protos/perfetto/config/perfetto_config.proto",
2183 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002184 visibility = PERFETTO_CONFIG.public_visibility,
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002185)
2186
Lalit Maganti2939c082021-03-11 17:25:44 +00002187# GN target: //protos/perfetto/config:perfetto_config_descriptor
2188perfetto_proto_descriptor(
2189 name = "protos_perfetto_config_perfetto_config_descriptor",
2190 deps = [
2191 ":protos_perfetto_config_perfetto_config_protos",
2192 ],
2193 outs = [
2194 "protos_perfetto_config_perfetto_config_descriptor.bin",
2195 ],
2196)
2197
2198# GN target: //protos/perfetto/config:perfetto_config_descriptor
2199perfetto_proto_library(
2200 name = "protos_perfetto_config_perfetto_config_protos",
2201 srcs = [
2202 "protos/perfetto/config/perfetto_config.proto",
2203 ],
2204 visibility = [
2205 PERFETTO_CONFIG.proto_library_visibility,
2206 ],
2207)
2208
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002209# GN target: //protos/perfetto/config/power:cpp
2210perfetto_cc_protocpp_library(
2211 name = "protos_perfetto_config_power_cpp",
2212 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002213 ":protos_perfetto_config_power_protos",
2214 ],
2215)
2216
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002217# GN target: //protos/perfetto/config/power:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002218perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002219 name = "protos_perfetto_config_power_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002220 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002221 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002222 ],
2223)
2224
2225# GN target: //protos/perfetto/config/power:zero
2226perfetto_proto_library(
2227 name = "protos_perfetto_config_power_protos",
2228 srcs = [
2229 "protos/perfetto/config/power/android_power_config.proto",
2230 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002231 visibility = [
2232 PERFETTO_CONFIG.proto_library_visibility,
2233 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002234)
2235
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002236# GN target: //protos/perfetto/config/power:zero
2237perfetto_cc_protozero_library(
2238 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002239 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002240 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002241 ],
2242)
2243
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002244# GN target: //protos/perfetto/config/process_stats:cpp
2245perfetto_cc_protocpp_library(
2246 name = "protos_perfetto_config_process_stats_cpp",
2247 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002248 ":protos_perfetto_config_process_stats_protos",
2249 ],
2250)
2251
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002252# GN target: //protos/perfetto/config/process_stats:lite
2253perfetto_cc_proto_library(
2254 name = "protos_perfetto_config_process_stats_lite",
2255 deps = [
2256 ":protos_perfetto_config_process_stats_protos",
2257 ],
2258)
2259
2260# GN target: //protos/perfetto/config/process_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002261perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002262 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002263 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002264 "protos/perfetto/config/process_stats/process_stats_config.proto",
2265 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002266 visibility = [
2267 PERFETTO_CONFIG.proto_library_visibility,
2268 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002269)
2270
2271# GN target: //protos/perfetto/config/process_stats:zero
2272perfetto_cc_protozero_library(
2273 name = "protos_perfetto_config_process_stats_zero",
2274 deps = [
2275 ":protos_perfetto_config_process_stats_protos",
2276 ],
2277)
2278
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002279# GN target: //protos/perfetto/config/profiling:cpp
2280perfetto_cc_protocpp_library(
2281 name = "protos_perfetto_config_profiling_cpp",
2282 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002283 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002284 ":protos_perfetto_config_profiling_protos",
2285 ],
2286)
2287
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002288# GN target: //protos/perfetto/config/profiling:lite
2289perfetto_cc_proto_library(
2290 name = "protos_perfetto_config_profiling_lite",
2291 deps = [
2292 ":protos_perfetto_config_profiling_protos",
2293 ],
2294)
2295
2296# GN target: //protos/perfetto/config/profiling:zero
2297perfetto_proto_library(
2298 name = "protos_perfetto_config_profiling_protos",
2299 srcs = [
2300 "protos/perfetto/config/profiling/heapprofd_config.proto",
2301 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00002302 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002303 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002304 visibility = [
2305 PERFETTO_CONFIG.proto_library_visibility,
2306 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002307 deps = [
2308 ":protos_perfetto_common_protos",
2309 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002310)
2311
2312# GN target: //protos/perfetto/config/profiling:zero
2313perfetto_cc_protozero_library(
2314 name = "protos_perfetto_config_profiling_zero",
2315 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002316 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002317 ":protos_perfetto_config_profiling_protos",
2318 ],
2319)
2320
2321# GN target: //protos/perfetto/config:zero
2322perfetto_proto_library(
2323 name = "protos_perfetto_config_protos",
2324 srcs = [
2325 "protos/perfetto/config/chrome/chrome_config.proto",
2326 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002327 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02002328 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002329 "protos/perfetto/config/test_config.proto",
2330 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002331 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002332 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002333 deps = [
2334 ":protos_perfetto_common_protos",
2335 ":protos_perfetto_config_android_protos",
2336 ":protos_perfetto_config_ftrace_protos",
2337 ":protos_perfetto_config_gpu_protos",
2338 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002339 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002340 ":protos_perfetto_config_power_protos",
2341 ":protos_perfetto_config_process_stats_protos",
2342 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002343 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002344 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002345 ],
2346)
2347
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002348# GN target: //protos/perfetto/config/sys_stats:cpp
2349perfetto_cc_protocpp_library(
2350 name = "protos_perfetto_config_sys_stats_cpp",
2351 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002352 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002353 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002354 ],
2355)
2356
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002357# GN target: //protos/perfetto/config/sys_stats:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002358perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002359 name = "protos_perfetto_config_sys_stats_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002360 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002361 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002362 ],
2363)
2364
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002365# GN target: //protos/perfetto/config/sys_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002366perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002367 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002368 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002369 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002370 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002371 visibility = [
2372 PERFETTO_CONFIG.proto_library_visibility,
2373 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002374 deps = [
2375 ":protos_perfetto_common_protos",
2376 ],
2377)
2378
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002379# GN target: //protos/perfetto/config/sys_stats:zero
2380perfetto_cc_protozero_library(
2381 name = "protos_perfetto_config_sys_stats_zero",
2382 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002383 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002384 ":protos_perfetto_config_sys_stats_protos",
2385 ],
2386)
2387
Sami Kyostila38cd0412020-02-12 17:09:52 +00002388# GN target: //protos/perfetto/config/track_event:cpp
2389perfetto_cc_protocpp_library(
2390 name = "protos_perfetto_config_track_event_cpp",
2391 deps = [
2392 ":protos_perfetto_config_track_event_protos",
2393 ],
2394)
2395
2396# GN target: //protos/perfetto/config/track_event:lite
2397perfetto_cc_proto_library(
2398 name = "protos_perfetto_config_track_event_lite",
2399 deps = [
2400 ":protos_perfetto_config_track_event_protos",
2401 ],
2402)
2403
2404# GN target: //protos/perfetto/config/track_event:zero
2405perfetto_proto_library(
2406 name = "protos_perfetto_config_track_event_protos",
2407 srcs = [
2408 "protos/perfetto/config/track_event/track_event_config.proto",
2409 ],
2410 visibility = [
2411 PERFETTO_CONFIG.proto_library_visibility,
2412 ],
2413)
2414
2415# GN target: //protos/perfetto/config/track_event:zero
2416perfetto_cc_protozero_library(
2417 name = "protos_perfetto_config_track_event_zero",
2418 deps = [
2419 ":protos_perfetto_config_track_event_protos",
2420 ],
2421)
2422
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002423# GN target: //protos/perfetto/config:zero
2424perfetto_cc_protozero_library(
2425 name = "protos_perfetto_config_zero",
2426 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002427 ":protos_perfetto_common_zero",
2428 ":protos_perfetto_config_android_zero",
2429 ":protos_perfetto_config_ftrace_zero",
2430 ":protos_perfetto_config_gpu_zero",
2431 ":protos_perfetto_config_inode_file_zero",
2432 ":protos_perfetto_config_interceptors_zero",
2433 ":protos_perfetto_config_power_zero",
2434 ":protos_perfetto_config_process_stats_zero",
2435 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002436 ":protos_perfetto_config_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002437 ":protos_perfetto_config_sys_stats_zero",
2438 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002439 ],
2440)
2441
Primiano Tuccie8020f92019-11-26 13:24:01 +00002442# GN target: //protos/perfetto/ipc:cpp
2443perfetto_cc_protocpp_library(
2444 name = "protos_perfetto_ipc_cpp",
2445 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002446 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002447 ":protos_perfetto_config_android_cpp",
2448 ":protos_perfetto_config_cpp",
2449 ":protos_perfetto_config_ftrace_cpp",
2450 ":protos_perfetto_config_gpu_cpp",
2451 ":protos_perfetto_config_inode_file_cpp",
2452 ":protos_perfetto_config_interceptors_cpp",
2453 ":protos_perfetto_config_power_cpp",
2454 ":protos_perfetto_config_process_stats_cpp",
2455 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002456 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002457 ":protos_perfetto_config_track_event_cpp",
2458 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002459 ],
2460)
2461
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002462# GN target: //protos/perfetto/ipc:ipc
2463perfetto_cc_ipc_library(
2464 name = "protos_perfetto_ipc_ipc",
2465 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00002466 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002467 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002468 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002469 ":protos_perfetto_config_ftrace_cpp",
2470 ":protos_perfetto_config_gpu_cpp",
2471 ":protos_perfetto_config_inode_file_cpp",
2472 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002473 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002474 ":protos_perfetto_config_process_stats_cpp",
2475 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002476 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002477 ":protos_perfetto_config_track_event_cpp",
2478 ":protos_perfetto_ipc_cpp",
2479 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002480 ],
2481)
2482
Primiano Tuccie8020f92019-11-26 13:24:01 +00002483# GN target: //protos/perfetto/ipc:ipc
Primiano Tucci1d409982019-09-19 10:15:18 +01002484perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002485 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002486 srcs = [
2487 "protos/perfetto/ipc/consumer_port.proto",
2488 "protos/perfetto/ipc/producer_port.proto",
2489 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002490 visibility = [
2491 PERFETTO_CONFIG.proto_library_visibility,
2492 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002493 deps = [
2494 ":protos_perfetto_common_protos",
2495 ":protos_perfetto_config_android_protos",
2496 ":protos_perfetto_config_ftrace_protos",
2497 ":protos_perfetto_config_gpu_protos",
2498 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002499 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002500 ":protos_perfetto_config_power_protos",
2501 ":protos_perfetto_config_process_stats_protos",
2502 ":protos_perfetto_config_profiling_protos",
2503 ":protos_perfetto_config_protos",
2504 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002505 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002506 ],
2507)
2508
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002509# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2510perfetto_cc_protocpp_library(
2511 name = "protos_perfetto_ipc_wire_protocol_cpp",
2512 deps = [
2513 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002514 ],
2515)
2516
Primiano Tuccie8020f92019-11-26 13:24:01 +00002517# GN target: //protos/perfetto/ipc:wire_protocol_cpp
Primiano Tucci1d409982019-09-19 10:15:18 +01002518perfetto_proto_library(
2519 name = "protos_perfetto_ipc_wire_protocol_protos",
2520 srcs = [
2521 "protos/perfetto/ipc/wire_protocol.proto",
2522 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002523 visibility = [
2524 PERFETTO_CONFIG.proto_library_visibility,
2525 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002526)
2527
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002528# GN target: //protos/perfetto/metrics/android:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002529perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002530 name = "protos_perfetto_metrics_android_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002531 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002532 ":protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002533 ],
2534)
2535
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002536# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002537perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002538 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002539 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002540 "protos/perfetto/metrics/android/batt_metric.proto",
2541 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002542 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07002543 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08002544 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08002545 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002546 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08002547 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002548 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002549 "protos/perfetto/metrics/android/ion_metric.proto",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00002550 "protos/perfetto/metrics/android/jank_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002551 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002552 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002553 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002554 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002555 "protos/perfetto/metrics/android/mem_metric.proto",
2556 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
2557 "protos/perfetto/metrics/android/package_list.proto",
2558 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002559 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01002560 "protos/perfetto/metrics/android/profiler_smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002561 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002562 "protos/perfetto/metrics/android/surfaceflinger.proto",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00002563 "protos/perfetto/metrics/android/sysui_cuj_metrics.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002564 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002565 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01002566 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002567 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002568 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002569 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002570)
2571
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002572# GN target: //protos/perfetto/metrics/chrome:descriptor
2573perfetto_proto_descriptor(
2574 name = "protos_perfetto_metrics_chrome_descriptor",
2575 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002576 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002577 ],
2578 outs = [
2579 "protos_perfetto_metrics_chrome_descriptor.bin",
2580 ],
2581)
2582
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002583# GN target: //protos/perfetto/metrics/chrome:source_set
2584perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002585 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002586 srcs = [
2587 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01002588 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00002589 "protos/perfetto/metrics/chrome/frame_times.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01002590 "protos/perfetto/metrics/chrome/media_metric.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00002591 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01002592 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002593 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
2594 ],
2595 visibility = [
2596 PERFETTO_CONFIG.proto_library_visibility,
2597 ],
2598 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002599 ":protos_perfetto_metrics_android_protos",
2600 ":protos_perfetto_metrics_custom_options_protos",
2601 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002602 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2603)
2604
2605# GN target: //protos/perfetto/metrics:custom_options_source_set
2606perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002607 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002608 srcs = [
2609 "protos/perfetto/metrics/custom_options.proto",
2610 ],
2611 visibility = [
2612 PERFETTO_CONFIG.proto_library_visibility,
2613 ],
2614 deps = [
2615 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2616)
2617
Lalit Maganti117272f2020-09-11 14:01:18 +01002618# GN target: //protos/perfetto/metrics:descriptor
2619perfetto_proto_descriptor(
2620 name = "protos_perfetto_metrics_descriptor",
2621 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002622 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002623 ],
2624 outs = [
2625 "protos_perfetto_metrics_descriptor.bin",
2626 ],
2627)
2628
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002629# GN target: //protos/perfetto/metrics:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002630perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002631 name = "protos_perfetto_metrics_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002632 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002633 ":protos_perfetto_metrics_protos",
2634 ],
2635)
2636
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002637# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002638perfetto_proto_library(
2639 name = "protos_perfetto_metrics_protos",
2640 srcs = [
2641 "protos/perfetto/metrics/metrics.proto",
2642 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002643 visibility = PERFETTO_CONFIG.public_visibility,
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002644 deps = [
2645 ":protos_perfetto_metrics_android_protos",
2646 ],
2647)
2648
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002649# GN target: //protos/perfetto/trace/android:lite
2650perfetto_cc_proto_library(
2651 name = "protos_perfetto_trace_android_lite",
2652 deps = [
2653 ":protos_perfetto_trace_android_protos",
2654 ],
2655)
2656
2657# GN target: //protos/perfetto/trace/android:zero
2658perfetto_proto_library(
2659 name = "protos_perfetto_trace_android_protos",
2660 srcs = [
2661 "protos/perfetto/trace/android/android_log.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08002662 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002663 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002664 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002665 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002666 "protos/perfetto/trace/android/packages_list.proto",
2667 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002668 visibility = [
2669 PERFETTO_CONFIG.proto_library_visibility,
2670 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002671 deps = [
2672 ":protos_perfetto_common_protos",
2673 ],
2674)
2675
2676# GN target: //protos/perfetto/trace/android:zero
2677perfetto_cc_protozero_library(
2678 name = "protos_perfetto_trace_android_zero",
2679 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002680 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002681 ":protos_perfetto_trace_android_protos",
2682 ],
2683)
2684
2685# GN target: //protos/perfetto/trace/chrome:lite
2686perfetto_cc_proto_library(
2687 name = "protos_perfetto_trace_chrome_lite",
2688 deps = [
2689 ":protos_perfetto_trace_chrome_protos",
2690 ],
2691)
2692
2693# GN target: //protos/perfetto/trace/chrome:zero
2694perfetto_proto_library(
2695 name = "protos_perfetto_trace_chrome_protos",
2696 srcs = [
2697 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2698 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2699 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2700 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002701 visibility = [
2702 PERFETTO_CONFIG.proto_library_visibility,
2703 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002704)
2705
2706# GN target: //protos/perfetto/trace/chrome:zero
2707perfetto_cc_protozero_library(
2708 name = "protos_perfetto_trace_chrome_zero",
2709 deps = [
2710 ":protos_perfetto_trace_chrome_protos",
2711 ],
2712)
2713
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002714# GN target: //protos/perfetto/trace:descriptor
2715perfetto_proto_descriptor(
2716 name = "protos_perfetto_trace_descriptor",
2717 deps = [
2718 ":protos_perfetto_trace_protos",
2719 ],
2720 outs = [
2721 "protos_perfetto_trace_descriptor.bin",
2722 ],
2723)
2724
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002725# GN target: //protos/perfetto/trace/filesystem:lite
2726perfetto_cc_proto_library(
2727 name = "protos_perfetto_trace_filesystem_lite",
2728 deps = [
2729 ":protos_perfetto_trace_filesystem_protos",
2730 ],
2731)
2732
2733# GN target: //protos/perfetto/trace/filesystem:zero
2734perfetto_proto_library(
2735 name = "protos_perfetto_trace_filesystem_protos",
2736 srcs = [
2737 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2738 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002739 visibility = [
2740 PERFETTO_CONFIG.proto_library_visibility,
2741 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002742)
2743
2744# GN target: //protos/perfetto/trace/filesystem:zero
2745perfetto_cc_protozero_library(
2746 name = "protos_perfetto_trace_filesystem_zero",
2747 deps = [
2748 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002749 ],
2750)
2751
2752# GN target: //protos/perfetto/trace/ftrace:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002753perfetto_cc_proto_library(
2754 name = "protos_perfetto_trace_ftrace_lite",
2755 deps = [
2756 ":protos_perfetto_trace_ftrace_protos",
2757 ],
2758)
2759
2760# GN target: //protos/perfetto/trace/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002761perfetto_proto_library(
2762 name = "protos_perfetto_trace_ftrace_protos",
2763 srcs = [
2764 "protos/perfetto/trace/ftrace/binder.proto",
2765 "protos/perfetto/trace/ftrace/block.proto",
2766 "protos/perfetto/trace/ftrace/cgroup.proto",
2767 "protos/perfetto/trace/ftrace/clk.proto",
2768 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002769 "protos/perfetto/trace/ftrace/cpuhp.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07002770 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002771 "protos/perfetto/trace/ftrace/dpu.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002772 "protos/perfetto/trace/ftrace/ext4.proto",
2773 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01002774 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002775 "protos/perfetto/trace/ftrace/fence.proto",
2776 "protos/perfetto/trace/ftrace/filemap.proto",
2777 "protos/perfetto/trace/ftrace/ftrace.proto",
2778 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2779 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2780 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002781 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002782 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002783 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002784 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002785 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002786 "protos/perfetto/trace/ftrace/ipi.proto",
2787 "protos/perfetto/trace/ftrace/irq.proto",
2788 "protos/perfetto/trace/ftrace/kmem.proto",
2789 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00002790 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002791 "protos/perfetto/trace/ftrace/mdss.proto",
2792 "protos/perfetto/trace/ftrace/mm_event.proto",
2793 "protos/perfetto/trace/ftrace/oom.proto",
2794 "protos/perfetto/trace/ftrace/power.proto",
2795 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2796 "protos/perfetto/trace/ftrace/regulator.proto",
2797 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002798 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002799 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002800 "protos/perfetto/trace/ftrace/signal.proto",
2801 "protos/perfetto/trace/ftrace/sync.proto",
2802 "protos/perfetto/trace/ftrace/systrace.proto",
2803 "protos/perfetto/trace/ftrace/task.proto",
2804 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002805 "protos/perfetto/trace/ftrace/thermal.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002806 "protos/perfetto/trace/ftrace/vmscan.proto",
2807 "protos/perfetto/trace/ftrace/workqueue.proto",
2808 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002809 visibility = [
2810 PERFETTO_CONFIG.proto_library_visibility,
2811 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002812)
2813
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002814# GN target: //protos/perfetto/trace/ftrace:zero
2815perfetto_cc_protozero_library(
2816 name = "protos_perfetto_trace_ftrace_zero",
2817 deps = [
2818 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002819 ],
2820)
2821
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002822# GN target: //protos/perfetto/trace/gpu:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002823perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002824 name = "protos_perfetto_trace_gpu_lite",
2825 deps = [
2826 ":protos_perfetto_trace_gpu_protos",
2827 ],
2828)
2829
2830# GN target: //protos/perfetto/trace/gpu:zero
2831perfetto_proto_library(
2832 name = "protos_perfetto_trace_gpu_protos",
2833 srcs = [
2834 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07002835 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002836 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08002837 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002838 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
2839 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002840 visibility = [
2841 PERFETTO_CONFIG.proto_library_visibility,
2842 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002843 deps = [
2844 ":protos_perfetto_common_protos",
2845 ],
2846)
2847
2848# GN target: //protos/perfetto/trace/gpu:zero
2849perfetto_cc_protozero_library(
2850 name = "protos_perfetto_trace_gpu_zero",
2851 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002852 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002853 ":protos_perfetto_trace_gpu_protos",
2854 ],
2855)
2856
2857# GN target: //protos/perfetto/trace/interned_data:lite
2858perfetto_cc_proto_library(
2859 name = "protos_perfetto_trace_interned_data_lite",
2860 deps = [
2861 ":protos_perfetto_trace_interned_data_protos",
2862 ],
2863)
2864
2865# GN target: //protos/perfetto/trace/interned_data:zero
2866perfetto_proto_library(
2867 name = "protos_perfetto_trace_interned_data_protos",
2868 srcs = [
2869 "protos/perfetto/trace/interned_data/interned_data.proto",
2870 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002871 visibility = [
2872 PERFETTO_CONFIG.proto_library_visibility,
2873 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002874 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07002875 ":protos_perfetto_common_protos",
2876 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002877 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002878 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002879 ],
2880)
2881
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002882# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002883perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002884 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002885 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002886 ":protos_perfetto_common_zero",
2887 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002888 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002889 ":protos_perfetto_trace_profiling_zero",
2890 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002891 ],
2892)
2893
2894# GN target: //protos/perfetto/trace:merged_trace
2895perfetto_cc_proto_library(
2896 name = "protos_perfetto_trace_merged_trace",
2897 deps = [
2898 ":protos_perfetto_trace_merged_trace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002899 ],
2900)
2901
Lalit Magantic3187f82019-09-20 14:51:11 +01002902# GN target: //protos/perfetto/trace:merged_trace
2903perfetto_proto_library(
2904 name = "protos_perfetto_trace_merged_trace_protos",
2905 srcs = [
2906 "protos/perfetto/trace/perfetto_trace.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002907 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002908 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002909)
2910
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002911# GN target: //protos/perfetto/trace:minimal_lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002912perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002913 name = "protos_perfetto_trace_minimal_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002914 deps = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002915 ":protos_perfetto_trace_minimal_protos",
2916 ],
2917)
2918
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002919# GN target: //protos/perfetto/trace:minimal_zero
2920perfetto_proto_library(
2921 name = "protos_perfetto_trace_minimal_protos",
2922 srcs = [
2923 "protos/perfetto/trace/clock_snapshot.proto",
2924 "protos/perfetto/trace/system_info.proto",
2925 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002926 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002927 visibility = [
2928 PERFETTO_CONFIG.proto_library_visibility,
2929 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002930 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002931 ":protos_perfetto_common_protos",
2932 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002933 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002934 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002935 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002936 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002937 ":protos_perfetto_config_power_protos",
2938 ":protos_perfetto_config_process_stats_protos",
2939 ":protos_perfetto_config_profiling_protos",
2940 ":protos_perfetto_config_protos",
2941 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002942 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002943 ],
2944)
2945
2946# GN target: //protos/perfetto/trace:minimal_zero
2947perfetto_cc_protozero_library(
2948 name = "protos_perfetto_trace_minimal_zero",
2949 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002950 ":protos_perfetto_common_zero",
2951 ":protos_perfetto_config_android_zero",
2952 ":protos_perfetto_config_ftrace_zero",
2953 ":protos_perfetto_config_gpu_zero",
2954 ":protos_perfetto_config_inode_file_zero",
2955 ":protos_perfetto_config_interceptors_zero",
2956 ":protos_perfetto_config_power_zero",
2957 ":protos_perfetto_config_process_stats_zero",
2958 ":protos_perfetto_config_profiling_zero",
2959 ":protos_perfetto_config_sys_stats_zero",
2960 ":protos_perfetto_config_track_event_zero",
2961 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002962 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002963 ],
2964)
2965
2966# GN target: //protos/perfetto/trace:non_minimal_lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002967perfetto_cc_proto_library(
2968 name = "protos_perfetto_trace_non_minimal_lite",
2969 deps = [
2970 ":protos_perfetto_trace_non_minimal_protos",
2971 ],
2972)
2973
2974# GN target: //protos/perfetto/trace:non_minimal_zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002975perfetto_proto_library(
2976 name = "protos_perfetto_trace_non_minimal_protos",
2977 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01002978 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02002979 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002980 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00002981 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002982 "protos/perfetto/trace/trace.proto",
2983 "protos/perfetto/trace/trace_packet.proto",
2984 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01002985 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002986 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002987 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002988 deps = [
2989 ":protos_perfetto_common_protos",
2990 ":protos_perfetto_config_android_protos",
2991 ":protos_perfetto_config_ftrace_protos",
2992 ":protos_perfetto_config_gpu_protos",
2993 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002994 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002995 ":protos_perfetto_config_power_protos",
2996 ":protos_perfetto_config_process_stats_protos",
2997 ":protos_perfetto_config_profiling_protos",
2998 ":protos_perfetto_config_protos",
2999 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003000 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003001 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003002 ":protos_perfetto_trace_chrome_protos",
3003 ":protos_perfetto_trace_filesystem_protos",
3004 ":protos_perfetto_trace_ftrace_protos",
3005 ":protos_perfetto_trace_gpu_protos",
3006 ":protos_perfetto_trace_interned_data_protos",
3007 ":protos_perfetto_trace_minimal_protos",
3008 ":protos_perfetto_trace_perfetto_protos",
3009 ":protos_perfetto_trace_power_protos",
3010 ":protos_perfetto_trace_profiling_protos",
3011 ":protos_perfetto_trace_ps_protos",
3012 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003013 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003014 ":protos_perfetto_trace_track_event_protos",
3015 ],
3016)
3017
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003018# GN target: //protos/perfetto/trace:non_minimal_zero
3019perfetto_cc_protozero_library(
3020 name = "protos_perfetto_trace_non_minimal_zero",
3021 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003022 ":protos_perfetto_common_zero",
3023 ":protos_perfetto_config_android_zero",
3024 ":protos_perfetto_config_ftrace_zero",
3025 ":protos_perfetto_config_gpu_zero",
3026 ":protos_perfetto_config_inode_file_zero",
3027 ":protos_perfetto_config_interceptors_zero",
3028 ":protos_perfetto_config_power_zero",
3029 ":protos_perfetto_config_process_stats_zero",
3030 ":protos_perfetto_config_profiling_zero",
3031 ":protos_perfetto_config_sys_stats_zero",
3032 ":protos_perfetto_config_track_event_zero",
3033 ":protos_perfetto_config_zero",
3034 ":protos_perfetto_trace_android_zero",
3035 ":protos_perfetto_trace_chrome_zero",
3036 ":protos_perfetto_trace_filesystem_zero",
3037 ":protos_perfetto_trace_ftrace_zero",
3038 ":protos_perfetto_trace_gpu_zero",
3039 ":protos_perfetto_trace_interned_data_zero",
3040 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003041 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003042 ":protos_perfetto_trace_perfetto_zero",
3043 ":protos_perfetto_trace_power_zero",
3044 ":protos_perfetto_trace_profiling_zero",
3045 ":protos_perfetto_trace_ps_zero",
3046 ":protos_perfetto_trace_sys_stats_zero",
3047 ":protos_perfetto_trace_system_info_zero",
3048 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003049 ],
3050)
3051
3052# GN target: //protos/perfetto/trace/perfetto:lite
3053perfetto_cc_proto_library(
3054 name = "protos_perfetto_trace_perfetto_lite",
3055 deps = [
3056 ":protos_perfetto_trace_perfetto_protos",
3057 ],
3058)
3059
3060# GN target: //protos/perfetto/trace/perfetto:zero
3061perfetto_proto_library(
3062 name = "protos_perfetto_trace_perfetto_protos",
3063 srcs = [
3064 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01003065 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003066 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003067 visibility = [
3068 PERFETTO_CONFIG.proto_library_visibility,
3069 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003070)
3071
3072# GN target: //protos/perfetto/trace/perfetto:zero
3073perfetto_cc_protozero_library(
3074 name = "protos_perfetto_trace_perfetto_zero",
3075 deps = [
3076 ":protos_perfetto_trace_perfetto_protos",
3077 ],
3078)
3079
3080# GN target: //protos/perfetto/trace/power:lite
3081perfetto_cc_proto_library(
3082 name = "protos_perfetto_trace_power_lite",
3083 deps = [
3084 ":protos_perfetto_trace_power_protos",
3085 ],
3086)
3087
3088# GN target: //protos/perfetto/trace/power:zero
3089perfetto_proto_library(
3090 name = "protos_perfetto_trace_power_protos",
3091 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003092 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003093 "protos/perfetto/trace/power/battery_counters.proto",
3094 "protos/perfetto/trace/power/power_rails.proto",
3095 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003096 visibility = [
3097 PERFETTO_CONFIG.proto_library_visibility,
3098 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003099 deps = [
3100 ":protos_perfetto_common_protos",
3101 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003102)
3103
3104# GN target: //protos/perfetto/trace/power:zero
3105perfetto_cc_protozero_library(
3106 name = "protos_perfetto_trace_power_zero",
3107 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003108 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003109 ":protos_perfetto_trace_power_protos",
3110 ],
3111)
3112
3113# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3114perfetto_proto_library(
3115 name = "protos_perfetto_trace_processor_metrics_impl_protos",
3116 srcs = [
3117 "protos/perfetto/trace_processor/metrics_impl.proto",
3118 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003119 visibility = [
3120 PERFETTO_CONFIG.proto_library_visibility,
3121 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003122)
3123
3124# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3125perfetto_cc_protozero_library(
3126 name = "protos_perfetto_trace_processor_metrics_impl_zero",
3127 deps = [
3128 ":protos_perfetto_trace_processor_metrics_impl_protos",
3129 ],
3130)
3131
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003132# GN target: //protos/perfetto/trace_processor:zero
3133perfetto_proto_library(
3134 name = "protos_perfetto_trace_processor_protos",
3135 srcs = [
3136 "protos/perfetto/trace_processor/trace_processor.proto",
3137 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003138 visibility = [
3139 PERFETTO_CONFIG.proto_library_visibility,
3140 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04003141 deps = [
3142 ":protos_perfetto_common_protos",
3143 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003144)
3145
3146# GN target: //protos/perfetto/trace_processor:zero
3147perfetto_cc_protozero_library(
3148 name = "protos_perfetto_trace_processor_zero",
3149 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003150 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003151 ":protos_perfetto_trace_processor_protos",
3152 ],
3153)
3154
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003155# GN target: //protos/perfetto/trace/profiling:lite
3156perfetto_cc_proto_library(
3157 name = "protos_perfetto_trace_profiling_lite",
3158 deps = [
3159 ":protos_perfetto_trace_profiling_protos",
3160 ],
3161)
3162
3163# GN target: //protos/perfetto/trace/profiling:zero
3164perfetto_proto_library(
3165 name = "protos_perfetto_trace_profiling_protos",
3166 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01003167 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003168 "protos/perfetto/trace/profiling/heap_graph.proto",
3169 "protos/perfetto/trace/profiling/profile_common.proto",
3170 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02003171 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003172 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003173 visibility = [
3174 PERFETTO_CONFIG.proto_library_visibility,
3175 ],
Ryan Savitski45517322021-03-09 16:38:19 +00003176 deps = [
3177 ":protos_perfetto_common_protos",
3178 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003179)
3180
3181# GN target: //protos/perfetto/trace/profiling:zero
3182perfetto_cc_protozero_library(
3183 name = "protos_perfetto_trace_profiling_zero",
3184 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003185 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003186 ":protos_perfetto_trace_profiling_protos",
3187 ],
3188)
3189
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003190# GN target: //protos/perfetto/trace:descriptor
3191perfetto_proto_library(
3192 name = "protos_perfetto_trace_protos",
3193 srcs = [
3194 "protos/perfetto/trace/trace.proto",
3195 ],
3196 visibility = [
3197 PERFETTO_CONFIG.proto_library_visibility,
3198 ],
3199 deps = [
3200 ":protos_perfetto_common_protos",
3201 ":protos_perfetto_config_android_protos",
3202 ":protos_perfetto_config_ftrace_protos",
3203 ":protos_perfetto_config_gpu_protos",
3204 ":protos_perfetto_config_inode_file_protos",
3205 ":protos_perfetto_config_interceptors_protos",
3206 ":protos_perfetto_config_power_protos",
3207 ":protos_perfetto_config_process_stats_protos",
3208 ":protos_perfetto_config_profiling_protos",
3209 ":protos_perfetto_config_protos",
3210 ":protos_perfetto_config_sys_stats_protos",
3211 ":protos_perfetto_config_track_event_protos",
3212 ":protos_perfetto_trace_android_protos",
3213 ":protos_perfetto_trace_chrome_protos",
3214 ":protos_perfetto_trace_filesystem_protos",
3215 ":protos_perfetto_trace_ftrace_protos",
3216 ":protos_perfetto_trace_gpu_protos",
3217 ":protos_perfetto_trace_interned_data_protos",
3218 ":protos_perfetto_trace_minimal_protos",
3219 ":protos_perfetto_trace_non_minimal_protos",
3220 ":protos_perfetto_trace_perfetto_protos",
3221 ":protos_perfetto_trace_power_protos",
3222 ":protos_perfetto_trace_profiling_protos",
3223 ":protos_perfetto_trace_ps_protos",
3224 ":protos_perfetto_trace_sys_stats_protos",
3225 ":protos_perfetto_trace_system_info_protos",
3226 ":protos_perfetto_trace_track_event_protos",
3227 ],
3228)
3229
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003230# GN target: //protos/perfetto/trace/ps:lite
3231perfetto_cc_proto_library(
3232 name = "protos_perfetto_trace_ps_lite",
3233 deps = [
3234 ":protos_perfetto_trace_ps_protos",
3235 ],
3236)
3237
3238# GN target: //protos/perfetto/trace/ps:zero
3239perfetto_proto_library(
3240 name = "protos_perfetto_trace_ps_protos",
3241 srcs = [
3242 "protos/perfetto/trace/ps/process_stats.proto",
3243 "protos/perfetto/trace/ps/process_tree.proto",
3244 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003245 visibility = [
3246 PERFETTO_CONFIG.proto_library_visibility,
3247 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003248)
3249
3250# GN target: //protos/perfetto/trace/ps:zero
3251perfetto_cc_protozero_library(
3252 name = "protos_perfetto_trace_ps_zero",
3253 deps = [
3254 ":protos_perfetto_trace_ps_protos",
3255 ],
3256)
3257
3258# GN target: //protos/perfetto/trace/sys_stats:lite
3259perfetto_cc_proto_library(
3260 name = "protos_perfetto_trace_sys_stats_lite",
3261 deps = [
3262 ":protos_perfetto_trace_sys_stats_protos",
3263 ],
3264)
3265
3266# GN target: //protos/perfetto/trace/sys_stats:zero
3267perfetto_proto_library(
3268 name = "protos_perfetto_trace_sys_stats_protos",
3269 srcs = [
3270 "protos/perfetto/trace/sys_stats/sys_stats.proto",
3271 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003272 visibility = [
3273 PERFETTO_CONFIG.proto_library_visibility,
3274 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003275 deps = [
3276 ":protos_perfetto_common_protos",
3277 ],
3278)
3279
3280# GN target: //protos/perfetto/trace/sys_stats:zero
3281perfetto_cc_protozero_library(
3282 name = "protos_perfetto_trace_sys_stats_zero",
3283 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003284 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003285 ":protos_perfetto_trace_sys_stats_protos",
3286 ],
3287)
3288
Rafal Slawikb013a112020-04-03 16:12:02 +01003289# GN target: //protos/perfetto/trace/system_info:lite
3290perfetto_cc_proto_library(
3291 name = "protos_perfetto_trace_system_info_lite",
3292 deps = [
3293 ":protos_perfetto_trace_system_info_protos",
3294 ],
3295)
3296
3297# GN target: //protos/perfetto/trace/system_info:zero
3298perfetto_proto_library(
3299 name = "protos_perfetto_trace_system_info_protos",
3300 srcs = [
3301 "protos/perfetto/trace/system_info/cpu_info.proto",
3302 ],
3303 visibility = [
3304 PERFETTO_CONFIG.proto_library_visibility,
3305 ],
3306)
3307
3308# GN target: //protos/perfetto/trace/system_info:zero
3309perfetto_cc_protozero_library(
3310 name = "protos_perfetto_trace_system_info_zero",
3311 deps = [
3312 ":protos_perfetto_trace_system_info_protos",
3313 ],
3314)
3315
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003316# GN target: //protos/perfetto/trace/track_event:cpp
3317perfetto_cc_protocpp_library(
3318 name = "protos_perfetto_trace_track_event_cpp",
3319 deps = [
3320 ":protos_perfetto_trace_track_event_protos",
3321 ],
3322)
3323
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003324# GN target: //protos/perfetto/trace/track_event:lite
3325perfetto_cc_proto_library(
3326 name = "protos_perfetto_trace_track_event_lite",
3327 deps = [
3328 ":protos_perfetto_trace_track_event_protos",
3329 ],
3330)
3331
3332# GN target: //protos/perfetto/trace/track_event:zero
3333perfetto_proto_library(
3334 name = "protos_perfetto_trace_track_event_protos",
3335 srcs = [
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08003336 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00003337 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08003338 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04003339 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08003340 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003341 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00003342 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003343 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07003344 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07003345 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003346 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01003347 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003348 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003349 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07003350 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00003351 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003352 "protos/perfetto/trace/track_event/debug_annotation.proto",
3353 "protos/perfetto/trace/track_event/log_message.proto",
3354 "protos/perfetto/trace/track_event/process_descriptor.proto",
3355 "protos/perfetto/trace/track_event/source_location.proto",
3356 "protos/perfetto/trace/track_event/task_execution.proto",
3357 "protos/perfetto/trace/track_event/thread_descriptor.proto",
3358 "protos/perfetto/trace/track_event/track_descriptor.proto",
3359 "protos/perfetto/trace/track_event/track_event.proto",
3360 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003361 visibility = [
3362 PERFETTO_CONFIG.proto_library_visibility,
3363 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003364)
3365
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003366# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3367perfetto_proto_descriptor(
3368 name = "protos_perfetto_trace_track_event_track_event_descriptor",
3369 deps = [
3370 ":protos_perfetto_trace_track_event_track_event_protos",
3371 ],
3372 outs = [
3373 "protos_perfetto_trace_track_event_track_event_descriptor.bin",
3374 ],
3375)
3376
3377# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3378perfetto_proto_library(
3379 name = "protos_perfetto_trace_track_event_track_event_protos",
3380 srcs = [
3381 "protos/perfetto/trace/track_event/track_event.proto",
3382 ],
3383 visibility = [
3384 PERFETTO_CONFIG.proto_library_visibility,
3385 ],
3386 deps = [
3387 ":protos_perfetto_trace_track_event_protos",
3388 ],
3389)
3390
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003391# GN target: //protos/perfetto/trace/track_event:zero
3392perfetto_cc_protozero_library(
3393 name = "protos_perfetto_trace_track_event_zero",
3394 deps = [
3395 ":protos_perfetto_trace_track_event_protos",
3396 ],
3397)
3398
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003399# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3400perfetto_proto_descriptor(
3401 name = "protos_third_party_chromium_chrome_track_event_descriptor",
3402 deps = [
3403 ":protos_third_party_chromium_chrome_track_event_protos",
3404 ],
3405 outs = [
3406 "protos_third_party_chromium_chrome_track_event_descriptor.bin",
3407 ],
3408)
3409
3410# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3411perfetto_proto_library(
3412 name = "protos_third_party_chromium_chrome_track_event_protos",
3413 srcs = [
3414 "protos/third_party/chromium/chrome_track_event.proto",
3415 ],
3416 visibility = [
3417 PERFETTO_CONFIG.proto_library_visibility,
3418 ],
3419 deps = [
3420 ":protos_perfetto_trace_track_event_protos",
3421 ],
3422)
3423
ssid3d81d4d2021-06-21 16:08:02 -07003424# GN target: //protos/third_party/chromium:lite
3425perfetto_cc_proto_library(
3426 name = "protos_third_party_chromium_lite",
3427 deps = [
3428 ":protos_third_party_chromium_protos",
3429 ],
3430)
3431
3432# GN target: //protos/third_party/chromium:lite
3433perfetto_proto_library(
3434 name = "protos_third_party_chromium_protos",
3435 srcs = [
3436 "protos/third_party/chromium/chrome_track_event.proto",
3437 ],
3438 visibility = PERFETTO_CONFIG.public_visibility,
3439 deps = [
3440 ":protos_perfetto_trace_track_event_protos",
3441 ],
3442)
3443
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003444# GN target: //protos/third_party/pprof:zero
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003445perfetto_proto_library(
3446 name = "protos_third_party_pprof_protos",
3447 srcs = [
3448 "protos/third_party/pprof/profile.proto",
3449 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003450 visibility = [
3451 PERFETTO_CONFIG.proto_library_visibility,
3452 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003453)
3454
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003455# GN target: //protos/third_party/pprof:zero
3456perfetto_cc_protozero_library(
3457 name = "protos_third_party_pprof_zero",
3458 deps = [
3459 ":protos_third_party_pprof_protos",
3460 ],
3461)
3462
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003463# GN target: //src/perfetto_cmd:protos
Hector Dearman040f9582019-12-03 18:06:33 +00003464perfetto_cc_protocpp_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003465 name = "src_perfetto_cmd_protos",
3466 deps = [
3467 ":src_perfetto_cmd_protos_protos",
3468 ],
3469)
3470
3471# GN target: //src/perfetto_cmd:protos
3472perfetto_proto_library(
3473 name = "src_perfetto_cmd_protos_protos",
3474 srcs = [
3475 "src/perfetto_cmd/perfetto_cmd_state.proto",
3476 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003477 visibility = [
3478 PERFETTO_CONFIG.proto_library_visibility,
3479 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003480)
3481
Primiano Tucci1d409982019-09-19 10:15:18 +01003482# ##############################################################################
3483# Public targets
3484# ##############################################################################
3485
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003486# GN target: //:libperfetto_client_experimental
3487perfetto_cc_library(
3488 name = "libperfetto_client_experimental",
3489 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00003490 ":src_android_stats_android_stats",
3491 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01003492 ":src_protozero_filtering_bytecode_common",
3493 ":src_protozero_filtering_bytecode_parser",
3494 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00003495 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003496 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003497 ":src_tracing_core_core",
3498 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00003499 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003500 ":src_tracing_ipc_common",
3501 ":src_tracing_ipc_consumer_consumer",
3502 ":src_tracing_ipc_producer_producer",
3503 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01003504 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00003505 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003506 ],
3507 hdrs = [
3508 ":include_perfetto_base_base",
3509 ":include_perfetto_ext_base_base",
3510 ":include_perfetto_ext_ipc_ipc",
3511 ":include_perfetto_ext_tracing_core_core",
3512 ":include_perfetto_ext_tracing_ipc_ipc",
3513 ":include_perfetto_protozero_protozero",
3514 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003515 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003516 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00003517 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003518 ],
3519 visibility = [
3520 "//visibility:public",
3521 ],
3522 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003523 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003524 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003525 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003526 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003527 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003528 ":protos_perfetto_config_cpp",
3529 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003530 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003531 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003532 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003533 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003534 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003535 ":protos_perfetto_config_interceptors_cpp",
3536 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003537 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003538 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003539 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003540 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003541 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003542 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003543 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003544 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003545 ":protos_perfetto_config_track_event_cpp",
3546 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003547 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003548 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003549 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003550 ":protos_perfetto_trace_android_zero",
3551 ":protos_perfetto_trace_chrome_zero",
3552 ":protos_perfetto_trace_filesystem_zero",
3553 ":protos_perfetto_trace_ftrace_zero",
3554 ":protos_perfetto_trace_gpu_zero",
3555 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003556 ":protos_perfetto_trace_minimal_zero",
3557 ":protos_perfetto_trace_non_minimal_zero",
3558 ":protos_perfetto_trace_perfetto_zero",
3559 ":protos_perfetto_trace_power_zero",
3560 ":protos_perfetto_trace_profiling_zero",
3561 ":protos_perfetto_trace_ps_zero",
3562 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003563 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003564 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003565 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003566 ":protozero",
3567 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003568 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003569 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003570)
3571
Primiano Tucci1d409982019-09-19 10:15:18 +01003572# GN target: //src/perfetto_cmd:perfetto
3573perfetto_cc_binary(
3574 name = "perfetto",
3575 srcs = [
3576 ":include_perfetto_base_base",
3577 ":include_perfetto_ext_base_base",
3578 ":include_perfetto_ext_ipc_ipc",
3579 ":include_perfetto_ext_traced_traced",
3580 ":include_perfetto_ext_tracing_core_core",
3581 ":include_perfetto_ext_tracing_ipc_ipc",
3582 ":include_perfetto_protozero_protozero",
3583 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003584 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01003585 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00003586 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00003587 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01003588 ":src_perfetto_cmd_perfetto_cmd",
3589 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003590 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003591 ":src_tracing_core_core",
3592 ":src_tracing_ipc_common",
3593 ":src_tracing_ipc_consumer_consumer",
3594 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003595 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003596 ],
3597 visibility = [
3598 "//visibility:public",
3599 ],
3600 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003601 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003602 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003603 ":protos_perfetto_common_zero",
3604 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003605 ":protos_perfetto_config_android_zero",
3606 ":protos_perfetto_config_cpp",
3607 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003608 ":protos_perfetto_config_ftrace_zero",
3609 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003610 ":protos_perfetto_config_gpu_zero",
3611 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003612 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003613 ":protos_perfetto_config_interceptors_cpp",
3614 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003615 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003616 ":protos_perfetto_config_power_zero",
3617 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003618 ":protos_perfetto_config_process_stats_zero",
3619 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003620 ":protos_perfetto_config_profiling_zero",
3621 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003622 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003623 ":protos_perfetto_config_track_event_cpp",
3624 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003625 ":protos_perfetto_config_zero",
3626 ":protos_perfetto_ipc_cpp",
3627 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003628 ":protos_perfetto_trace_android_zero",
3629 ":protos_perfetto_trace_chrome_zero",
3630 ":protos_perfetto_trace_filesystem_zero",
3631 ":protos_perfetto_trace_ftrace_zero",
3632 ":protos_perfetto_trace_gpu_zero",
3633 ":protos_perfetto_trace_interned_data_zero",
3634 ":protos_perfetto_trace_minimal_zero",
3635 ":protos_perfetto_trace_non_minimal_zero",
3636 ":protos_perfetto_trace_perfetto_zero",
3637 ":protos_perfetto_trace_power_zero",
3638 ":protos_perfetto_trace_profiling_zero",
3639 ":protos_perfetto_trace_ps_zero",
3640 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003641 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003642 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003643 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003644 ":protozero",
3645 ":src_base_base",
Lalit Maganti2939c082021-03-11 17:25:44 +00003646 ":src_perfetto_cmd_gen_cc_config_descriptor",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003647 ":src_perfetto_cmd_protos",
3648 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01003649)
3650
3651# GN target: //src/trace_processor:trace_processor
3652perfetto_cc_library(
3653 name = "trace_processor",
3654 srcs = [
Lalit Maganti97d7d472020-04-07 18:49:17 +01003655 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003656 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003657 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003658 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003659 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003660 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003661 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003662 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01003663 ":src_trace_processor_metrics_lib",
3664 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003665 ":src_trace_processor_storage_full",
3666 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003667 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003668 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003669 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003670 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003671 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003672 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003673 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003674 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003675 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003676 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003677 ],
3678 hdrs = [
3679 ":include_perfetto_base_base",
3680 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003681 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003682 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003683 ":include_perfetto_ext_traced_sys_stats_counters",
Eric Secklera7870e62019-11-01 10:11:58 +00003684 ":include_perfetto_trace_processor_basic_types",
3685 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003686 ":include_perfetto_trace_processor_trace_processor",
3687 ],
3688 visibility = [
3689 "//visibility:public",
3690 ],
3691 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003692 ":protos_perfetto_common_zero",
3693 ":protos_perfetto_config_android_zero",
3694 ":protos_perfetto_config_ftrace_zero",
3695 ":protos_perfetto_config_gpu_zero",
3696 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003697 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003698 ":protos_perfetto_config_power_zero",
3699 ":protos_perfetto_config_process_stats_zero",
3700 ":protos_perfetto_config_profiling_zero",
3701 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003702 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003703 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003704 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003705 ":protos_perfetto_trace_chrome_zero",
3706 ":protos_perfetto_trace_filesystem_zero",
3707 ":protos_perfetto_trace_ftrace_zero",
3708 ":protos_perfetto_trace_gpu_zero",
3709 ":protos_perfetto_trace_interned_data_zero",
3710 ":protos_perfetto_trace_minimal_zero",
3711 ":protos_perfetto_trace_non_minimal_zero",
3712 ":protos_perfetto_trace_perfetto_zero",
3713 ":protos_perfetto_trace_power_zero",
3714 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003715 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003716 ":protos_perfetto_trace_profiling_zero",
3717 ":protos_perfetto_trace_ps_zero",
3718 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003719 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003720 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003721 ":protozero",
3722 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003723 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003724 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003725 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003726 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003727 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003728 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003729 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003730 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003731 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3732 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003733 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003734 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003735 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003736)
3737
3738# GN target: //src/trace_processor:trace_processor_shell
3739perfetto_cc_binary(
3740 name = "trace_processor_shell",
3741 srcs = [
3742 ":include_perfetto_base_base",
3743 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003744 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003745 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003746 ":include_perfetto_ext_traced_sys_stats_counters",
3747 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003748 ":include_perfetto_trace_processor_basic_types",
3749 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003750 ":include_perfetto_trace_processor_trace_processor",
Florian Mayerf4255a42020-12-14 19:12:34 +00003751 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003752 ":src_profiling_symbolizer_symbolize_database",
3753 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01003754 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003755 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003756 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003757 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003758 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003759 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003760 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003761 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003762 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01003763 ":src_trace_processor_metrics_lib",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003764 ":src_trace_processor_rpc_httpd",
3765 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003766 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003767 ":src_trace_processor_storage_full",
3768 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003769 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003770 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003771 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003772 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003773 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003774 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003775 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003776 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003777 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003778 ":src_trace_processor_util_util",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003779 "src/trace_processor/trace_processor_shell.cc",
3780 "src/trace_processor/util/proto_to_json.cc",
3781 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003782 ],
3783 visibility = [
3784 "//visibility:public",
3785 ],
3786 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003787 ":protos_perfetto_common_zero",
3788 ":protos_perfetto_config_android_zero",
3789 ":protos_perfetto_config_ftrace_zero",
3790 ":protos_perfetto_config_gpu_zero",
3791 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003792 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003793 ":protos_perfetto_config_power_zero",
3794 ":protos_perfetto_config_process_stats_zero",
3795 ":protos_perfetto_config_profiling_zero",
3796 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003797 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003798 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003799 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003800 ":protos_perfetto_trace_chrome_zero",
3801 ":protos_perfetto_trace_filesystem_zero",
3802 ":protos_perfetto_trace_ftrace_zero",
3803 ":protos_perfetto_trace_gpu_zero",
3804 ":protos_perfetto_trace_interned_data_zero",
3805 ":protos_perfetto_trace_minimal_zero",
3806 ":protos_perfetto_trace_non_minimal_zero",
3807 ":protos_perfetto_trace_perfetto_zero",
3808 ":protos_perfetto_trace_power_zero",
3809 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003810 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003811 ":protos_perfetto_trace_profiling_zero",
3812 ":protos_perfetto_trace_ps_zero",
3813 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003814 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003815 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003816 ":protozero",
3817 ":src_base_base",
3818 ":src_base_unix_socket",
Ryan7ad6b7d2021-04-22 17:03:54 +01003819 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003820 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003821 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003822 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003823 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003824 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003825 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003826 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003827 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003828 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003829 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3830 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003831 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003832 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003833)
3834
3835# GN target: //src/traced/probes:traced_probes
3836perfetto_cc_binary(
3837 name = "traced_probes",
3838 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003839 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003840 "src/traced/probes/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003841 ],
3842 visibility = [
3843 "//visibility:public",
3844 ],
3845 deps = [
3846 ":libperfetto",
3847 ],
3848)
3849
3850# GN target: //src/traced/service:traced
3851perfetto_cc_binary(
3852 name = "traced",
3853 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003854 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003855 "src/traced/service/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003856 ],
3857 visibility = [
3858 "//visibility:public",
3859 ],
3860 deps = [
3861 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003862 ],
3863)
3864
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003865# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003866perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003867 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003868 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003869 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003870 ":src_profiling_symbolizer_symbolize_database",
3871 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003872 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003873 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003874 ],
3875 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003876 ":include_perfetto_base_base",
3877 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003878 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003879 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003880 ":include_perfetto_trace_processor_basic_types",
3881 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003882 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003883 ],
3884 visibility = [
3885 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003886 ],
3887 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003888 ":protos_perfetto_common_zero",
3889 ":protos_perfetto_config_android_zero",
3890 ":protos_perfetto_config_ftrace_zero",
3891 ":protos_perfetto_config_gpu_zero",
3892 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003893 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003894 ":protos_perfetto_config_power_zero",
3895 ":protos_perfetto_config_process_stats_zero",
3896 ":protos_perfetto_config_profiling_zero",
3897 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003898 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003899 ":protos_perfetto_config_zero",
3900 ":protos_perfetto_trace_android_zero",
3901 ":protos_perfetto_trace_chrome_zero",
3902 ":protos_perfetto_trace_filesystem_zero",
3903 ":protos_perfetto_trace_ftrace_zero",
3904 ":protos_perfetto_trace_gpu_zero",
3905 ":protos_perfetto_trace_interned_data_zero",
3906 ":protos_perfetto_trace_minimal_zero",
3907 ":protos_perfetto_trace_non_minimal_zero",
3908 ":protos_perfetto_trace_perfetto_zero",
3909 ":protos_perfetto_trace_power_zero",
3910 ":protos_perfetto_trace_profiling_zero",
3911 ":protos_perfetto_trace_ps_zero",
3912 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003913 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003914 ":protos_perfetto_trace_track_event_zero",
3915 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00003916 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01003917 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003918 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003919 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003920)
3921
Lalit Maganti65600342019-09-19 21:35:35 +01003922# GN target: //tools/trace_to_text:trace_to_text
3923perfetto_cc_binary(
3924 name = "trace_to_text",
3925 srcs = [
3926 ":include_perfetto_base_base",
3927 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003928 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003929 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01003930 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003931 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003932 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003933 ":include_perfetto_trace_processor_basic_types",
3934 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003935 ":include_perfetto_trace_processor_trace_processor",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003936 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003937 ":src_profiling_symbolizer_symbolize_database",
3938 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01003939 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003940 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003941 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003942 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003943 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003944 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003945 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti65600342019-09-19 21:35:35 +01003946 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003947 ":src_trace_processor_metatrace",
Lalit Maganti65600342019-09-19 21:35:35 +01003948 ":src_trace_processor_metrics_lib",
3949 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003950 ":src_trace_processor_storage_full",
3951 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003952 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003953 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003954 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003955 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003956 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003957 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003958 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003959 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003960 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003961 ":src_trace_processor_util_util",
Lalit Maganti65600342019-09-19 21:35:35 +01003962 ":tools_trace_to_text_common",
3963 ":tools_trace_to_text_full",
Lalit Maganti65600342019-09-19 21:35:35 +01003964 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01003965 ":tools_trace_to_text_utils",
3966 ],
3967 visibility = [
3968 "//visibility:public",
3969 ],
3970 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003971 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003972 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003973 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003974 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003975 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003976 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003977 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003978 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003979 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003980 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003981 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003982 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003983 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003984 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003985 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003986 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003987 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003988 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003989 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003990 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003991 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003992 ":protos_perfetto_trace_power_zero",
3993 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003994 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003995 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003996 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003997 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003998 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003999 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004000 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004001 ":protozero",
4002 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004003 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004004 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01004005 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00004006 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004007 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004008 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01004009 ":tools_trace_to_text_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004010 ] + PERFETTO_CONFIG.deps.jsoncpp +
4011 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01004012 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004013 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
4014 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01004015 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01004016 ],
4017)
4018
Primiano Tucci1d409982019-09-19 10:15:18 +01004019# Content from BUILD.extras
4020
4021build_config_dir_ = "include/perfetto/base/build_configs/bazel"
4022
4023# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
4024# This is pulled as a default dep by all targets.
Primiano Tucci02c11762019-08-30 00:57:59 +02004025cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01004026 name = "build_config_hdr",
4027 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
4028 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02004029)
4030
Primiano Tucci1d409982019-09-19 10:15:18 +01004031perfetto_cc_library(
4032 name = "cc_merged_sql_metrics",
4033 hdrs = ["src/trace_processor/metrics/sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02004034)
4035
Primiano Tucci1d409982019-09-19 10:15:18 +01004036perfetto_py_binary(
Lalit Maganticaac9922019-05-01 10:40:53 +01004037 name = "gen_merged_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004038 srcs = [
Lalit Magantiab619fa2019-05-02 12:56:37 +01004039 "tools/gen_merged_sql_metrics.py",
4040 ],
4041 main = "tools/gen_merged_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01004042 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004043)
Lalit Maganti65600342019-09-19 21:35:35 +01004044
Lalit Maganti117272f2020-09-11 14:01:18 +01004045perfetto_py_binary(
4046 name = "gen_cc_proto_descriptor_py",
4047 srcs = [
4048 "tools/gen_cc_proto_descriptor.py",
4049 ],
4050 main = "tools/gen_cc_proto_descriptor.py",
4051 python_version = "PY3",
4052)
4053
Lalit Maganti65600342019-09-19 21:35:35 +01004054perfetto_java_proto_library(
4055 name = "protos_perfetto_metrics_java",
4056 deps = [
4057 ":protos_perfetto_metrics_protos",
4058 ],
4059)
4060
4061perfetto_java_proto_library(
4062 name = "protos_perfetto_metrics_android_java",
4063 deps = [
4064 ":protos_perfetto_metrics_android_protos",
4065 ],
4066)
4067
Lalit Magantic3187f82019-09-20 14:51:11 +01004068perfetto_java_proto_library(
4069 name = "protos_perfetto_trace_merged_trace_java",
4070 deps = [
4071 ":protos_perfetto_trace_merged_trace_protos",
4072 ],
4073)
4074
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004075perfetto_java_proto_library(
Hector Dearman41fb1812020-04-29 11:28:09 +01004076 name = "protos_perfetto_config_merged_config_java",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004077 deps = [
Hector Dearman41fb1812020-04-29 11:28:09 +01004078 ":protos_perfetto_config_merged_config_protos",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004079 ],
4080)
4081
Lalit Maganti46e2bda2020-05-06 12:51:33 +01004082perfetto_java_lite_proto_library(
4083 name = "protos_perfetto_config_merged_config_java_lite",
4084 deps = [
4085 ":protos_perfetto_config_merged_config_protos",
4086 ],
4087)
4088
Lalit Maganti65600342019-09-19 21:35:35 +01004089perfetto_gensignature_internal_only(
4090 name = "trace_processor_sig",
4091 srcs = [
4092 ":trace_processor_shell",
4093 ":trace_to_text",
4094 ],
4095 tags = [
4096 "__TRACE_PROCESSOR_SIG_TAG1",
4097 "__TRACE_PROCESSOR_SIG_TAG2",
4098 ],
4099)
Anindita Ghosh237a7762020-06-30 10:46:52 +00004100
Primiano Tucciec590132020-11-16 14:16:44 +01004101# This is overridden in google internal builds via
4102# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
4103perfetto_cc_library(
4104 name = "cc_perfetto_version_header",
4105 hdrs = ["perfetto_version.gen.h"],
4106)
4107
4108perfetto_py_binary(
4109 name = "gen_version_header_py",
4110 srcs = ["tools/write_version_header.py"],
4111 data = ["CHANGELOG"],
4112 main = "tools/write_version_header.py",
4113 python_version = "PY3",
4114)
4115
Anindita Ghosh237a7762020-06-30 10:46:52 +00004116perfetto_py_binary(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004117 name = "trace_processor_py_example",
4118 srcs = ["src/trace_processor/python/example.py"],
Lalit Maganti471dec32021-08-16 14:38:42 +01004119 deps = [":trace_processor_py"] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti82a2c042020-07-06 13:50:33 +01004120 main = "src/trace_processor/python/example.py",
Anindita Ghosh237a7762020-06-30 10:46:52 +00004121 python_version = "PY3",
4122)
4123
4124perfetto_py_library(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004125 name = "trace_processor_py",
Anindita Ghosh456261f2020-09-07 11:31:24 +01004126 srcs = glob(["src/trace_processor/python/perfetto/trace_processor/*.py"]),
Anindita Ghosh152562f2020-07-08 20:29:56 +00004127 data = [
Anindita Ghosh456261f2020-09-07 11:31:24 +01004128 "src/trace_processor/python/perfetto/trace_processor/trace_processor.descriptor",
4129 "src/trace_processor/python/perfetto/trace_processor/metrics.descriptor",
Anindita Ghosh7887c762020-07-20 16:35:15 +00004130 ":trace_processor_shell",
Lalit Maganti471dec32021-08-16 14:38:42 +01004131 ] + PERFETTO_CONFIG.deps.tp_init_py,
4132 deps = PERFETTO_CONFIG.deps.gfile_py +
4133 PERFETTO_CONFIG.deps.protobuf_py +
4134 PERFETTO_CONFIG.deps.protobuf_descriptor_pb2_py +
4135 PERFETTO_CONFIG.deps.pyglib_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004136 imports = [
4137 "src/trace_processor/python",
4138 ],
Lalit Maganti17a56fe2021-02-19 19:04:07 +00004139 visibility = PERFETTO_CONFIG.public_visibility,
Anindita Ghosh237a7762020-06-30 10:46:52 +00004140)
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004141
4142perfetto_py_library(
4143 name = "experimental_slice_breakdown_lib",
4144 srcs = glob(["tools/slice_breakdown/perfetto/slice_breakdown/*.py"]),
4145 deps = [
4146 ":trace_processor_py",
4147 ],
4148 imports = [
4149 "tools/slice_breakdown",
4150 ],
4151)
4152
4153perfetto_py_binary(
4154 name = "experimental_slice_breakdown_bin",
Lalit Maganti471dec32021-08-16 14:38:42 +01004155 srcs = ["tools/slice_breakdown/main.py"],
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004156 main = "tools/slice_breakdown/main.py",
4157 deps = [
4158 ":experimental_slice_breakdown_lib",
4159 ":trace_processor_py",
Lalit Maganti471dec32021-08-16 14:38:42 +01004160 ] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004161 python_version = "PY3",
4162 legacy_create_init = 0,
4163)