blob: 7e18b14ec43eb0ecd58b9ad29a11c185f76b5df6 [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",
Lalit Maganti05819e22020-04-14 21:01:38 +01001426 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1427 "src/trace_processor/importers/proto/heap_profile_tracker.h",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01001428 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1429 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1430 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1431 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
Lalit Maganti8532fc92021-03-30 15:48:15 +01001432 "src/trace_processor/importers/proto/metadata_module.cc",
1433 "src/trace_processor/importers/proto/metadata_module.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001434 "src/trace_processor/importers/proto/metadata_tracker.cc",
1435 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001436 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001437 "src/trace_processor/importers/proto/packet_sequence_state.h",
Ryan Savitskic6c7e842021-03-10 14:26:59 +00001438 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1439 "src/trace_processor/importers/proto/perf_sample_tracker.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001440 "src/trace_processor/importers/proto/profile_module.cc",
1441 "src/trace_processor/importers/proto/profile_module.h",
1442 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1443 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001444 "src/trace_processor/importers/proto/profiler_util.cc",
1445 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001446 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001447 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001448 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001449 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1450 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001451 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1452 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001453 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1454 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001455 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1456 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001457 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001458 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001459 "src/trace_processor/importers/proto/track_event_parser.cc",
1460 "src/trace_processor/importers/proto/track_event_parser.h",
1461 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1462 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganti62b741f2020-12-10 18:24:00 +00001463 "src/trace_processor/importers/proto/track_event_tracker.cc",
1464 "src/trace_processor/importers/proto/track_event_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001465 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001466 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001467 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001468 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001469 "src/trace_processor/trace_processor_storage.cc",
1470 "src/trace_processor/trace_processor_storage_impl.cc",
1471 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001472 "src/trace_processor/trace_sorter.cc",
1473 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001474 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001475 ],
1476)
1477
1478# GN target: //src/traced/probes/android_log:android_log
1479filegroup(
1480 name = "src_traced_probes_android_log_android_log",
1481 srcs = [
1482 "src/traced/probes/android_log/android_log_data_source.cc",
1483 "src/traced/probes/android_log/android_log_data_source.h",
1484 ],
1485)
1486
Rafal Slawik8053a682020-04-08 17:26:40 +01001487# GN target: //src/traced/probes/common:common
1488filegroup(
1489 name = "src_traced_probes_common_common",
1490 srcs = [
1491 "src/traced/probes/common/cpu_freq_info.cc",
1492 "src/traced/probes/common/cpu_freq_info.h",
1493 ],
1494)
1495
Primiano Tucci1d409982019-09-19 10:15:18 +01001496# GN target: //src/traced/probes/filesystem:filesystem
1497filegroup(
1498 name = "src_traced_probes_filesystem_filesystem",
1499 srcs = [
1500 "src/traced/probes/filesystem/file_scanner.cc",
1501 "src/traced/probes/filesystem/file_scanner.h",
1502 "src/traced/probes/filesystem/fs_mount.cc",
1503 "src/traced/probes/filesystem/fs_mount.h",
1504 "src/traced/probes/filesystem/inode_file_data_source.cc",
1505 "src/traced/probes/filesystem/inode_file_data_source.h",
1506 "src/traced/probes/filesystem/lru_inode_cache.cc",
1507 "src/traced/probes/filesystem/lru_inode_cache.h",
1508 "src/traced/probes/filesystem/prefix_finder.cc",
1509 "src/traced/probes/filesystem/prefix_finder.h",
1510 "src/traced/probes/filesystem/range_tree.cc",
1511 "src/traced/probes/filesystem/range_tree.h",
1512 ],
1513)
1514
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001515# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Primiano Tucci1d409982019-09-19 10:15:18 +01001516filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001517 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01001518 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001519 "src/traced/probes/ftrace/format_parser/format_parser.cc",
1520 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001521 ],
1522)
1523
1524# GN target: //src/traced/probes/ftrace:ftrace
1525filegroup(
1526 name = "src_traced_probes_ftrace_ftrace",
1527 srcs = [
1528 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1529 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1530 "src/traced/probes/ftrace/atrace_wrapper.cc",
1531 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001532 "src/traced/probes/ftrace/compact_sched.cc",
1533 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001534 "src/traced/probes/ftrace/cpu_reader.cc",
1535 "src/traced/probes/ftrace/cpu_reader.h",
1536 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1537 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001538 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1539 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001540 "src/traced/probes/ftrace/event_info.cc",
1541 "src/traced/probes/ftrace/event_info.h",
1542 "src/traced/probes/ftrace/event_info_constants.cc",
1543 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001544 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1545 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1546 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1547 "src/traced/probes/ftrace/ftrace_config_utils.h",
1548 "src/traced/probes/ftrace/ftrace_controller.cc",
1549 "src/traced/probes/ftrace/ftrace_controller.h",
1550 "src/traced/probes/ftrace/ftrace_data_source.cc",
1551 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001552 "src/traced/probes/ftrace/ftrace_metadata.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001553 "src/traced/probes/ftrace/ftrace_stats.cc",
1554 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00001555 "src/traced/probes/ftrace/printk_formats_parser.cc",
1556 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001557 "src/traced/probes/ftrace/proto_translation_table.cc",
1558 "src/traced/probes/ftrace/proto_translation_table.h",
1559 ],
1560)
1561
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001562# GN target: //src/traced/probes/ftrace:ftrace_procfs
1563filegroup(
1564 name = "src_traced_probes_ftrace_ftrace_procfs",
1565 srcs = [
1566 "src/traced/probes/ftrace/ftrace_procfs.cc",
1567 "src/traced/probes/ftrace/ftrace_procfs.h",
1568 ],
1569)
1570
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001571# GN target: //src/traced/probes/initial_display_state:initial_display_state
1572filegroup(
1573 name = "src_traced_probes_initial_display_state_initial_display_state",
1574 srcs = [
1575 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1576 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1577 ],
1578)
1579
Primiano Tucci1d409982019-09-19 10:15:18 +01001580# GN target: //src/traced/probes/metatrace:metatrace
1581filegroup(
1582 name = "src_traced_probes_metatrace_metatrace",
1583 srcs = [
1584 "src/traced/probes/metatrace/metatrace_data_source.cc",
1585 "src/traced/probes/metatrace/metatrace_data_source.h",
1586 ],
1587)
1588
1589# GN target: //src/traced/probes/packages_list:packages_list
1590filegroup(
1591 name = "src_traced_probes_packages_list_packages_list",
1592 srcs = [
1593 "src/traced/probes/packages_list/packages_list_data_source.cc",
1594 "src/traced/probes/packages_list/packages_list_data_source.h",
1595 ],
1596)
1597
Florian Mayer29e17182020-12-23 10:59:02 +00001598# GN target: //src/traced/probes/packages_list:packages_list_parser
1599filegroup(
1600 name = "src_traced_probes_packages_list_packages_list_parser",
1601 srcs = [
1602 "src/traced/probes/packages_list/packages_list_parser.cc",
1603 "src/traced/probes/packages_list/packages_list_parser.h",
1604 ],
1605)
1606
Primiano Tucci1d409982019-09-19 10:15:18 +01001607# GN target: //src/traced/probes/power:power
1608filegroup(
1609 name = "src_traced_probes_power_power",
1610 srcs = [
1611 "src/traced/probes/power/android_power_data_source.cc",
1612 "src/traced/probes/power/android_power_data_source.h",
1613 ],
1614)
1615
1616# GN target: //src/traced/probes/ps:ps
1617filegroup(
1618 name = "src_traced_probes_ps_ps",
1619 srcs = [
1620 "src/traced/probes/ps/process_stats_data_source.cc",
1621 "src/traced/probes/ps/process_stats_data_source.h",
1622 ],
1623)
1624
1625# GN target: //src/traced/probes/sys_stats:sys_stats
1626filegroup(
1627 name = "src_traced_probes_sys_stats_sys_stats",
1628 srcs = [
1629 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1630 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1631 ],
1632)
1633
Rafal Slawikb013a112020-04-03 16:12:02 +01001634# GN target: //src/traced/probes/system_info:system_info
1635filegroup(
1636 name = "src_traced_probes_system_info_system_info",
1637 srcs = [
1638 "src/traced/probes/system_info/system_info_data_source.cc",
1639 "src/traced/probes/system_info/system_info_data_source.h",
1640 ],
1641)
1642
Primiano Tucci1d409982019-09-19 10:15:18 +01001643# GN target: //src/traced/probes:data_source
1644filegroup(
1645 name = "src_traced_probes_data_source",
1646 srcs = [
1647 "src/traced/probes/probes_data_source.cc",
1648 "src/traced/probes/probes_data_source.h",
1649 ],
1650)
1651
1652# GN target: //src/traced/probes:probes
1653filegroup(
1654 name = "src_traced_probes_probes",
1655 srcs = [
1656 "src/traced/probes/probes.cc",
1657 ],
1658)
1659
1660# GN target: //src/traced/probes:probes_src
1661filegroup(
1662 name = "src_traced_probes_probes_src",
1663 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05001664 "src/traced/probes/kmem_activity_trigger.cc",
1665 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001666 "src/traced/probes/probes_producer.cc",
1667 "src/traced/probes/probes_producer.h",
1668 ],
1669)
1670
1671# GN target: //src/traced/service:service
1672filegroup(
1673 name = "src_traced_service_service",
1674 srcs = [
1675 "src/traced/service/builtin_producer.cc",
1676 "src/traced/service/builtin_producer.h",
1677 "src/traced/service/service.cc",
1678 ],
1679)
1680
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001681# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
1682filegroup(
1683 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1684 srcs = [
1685 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1686 ],
1687)
1688
1689# GN target: //src/tracing/core:core
1690filegroup(
1691 name = "src_tracing_core_core",
1692 srcs = [
1693 "src/tracing/core/id_allocator.cc",
1694 "src/tracing/core/id_allocator.h",
1695 "src/tracing/core/null_trace_writer.cc",
1696 "src/tracing/core/null_trace_writer.h",
1697 "src/tracing/core/patch_list.h",
1698 "src/tracing/core/shared_memory_abi.cc",
1699 "src/tracing/core/shared_memory_arbiter_impl.cc",
1700 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001701 "src/tracing/core/trace_packet.cc",
1702 "src/tracing/core/trace_writer_impl.cc",
1703 "src/tracing/core/trace_writer_impl.h",
1704 "src/tracing/core/virtual_destructors.cc",
1705 ],
1706)
1707
1708# GN target: //src/tracing/core:service
1709filegroup(
1710 name = "src_tracing_core_service",
1711 srcs = [
1712 "src/tracing/core/metatrace_writer.cc",
1713 "src/tracing/core/metatrace_writer.h",
1714 "src/tracing/core/packet_stream_validator.cc",
1715 "src/tracing/core/packet_stream_validator.h",
1716 "src/tracing/core/trace_buffer.cc",
1717 "src/tracing/core/trace_buffer.h",
1718 "src/tracing/core/tracing_service_impl.cc",
1719 "src/tracing/core/tracing_service_impl.h",
1720 ],
1721)
1722
1723# GN target: //src/tracing/ipc/consumer:consumer
1724filegroup(
1725 name = "src_tracing_ipc_consumer_consumer",
1726 srcs = [
1727 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1728 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1729 ],
1730)
1731
1732# GN target: //src/tracing/ipc/producer:producer
1733filegroup(
1734 name = "src_tracing_ipc_producer_producer",
1735 srcs = [
1736 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1737 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1738 ],
1739)
1740
1741# GN target: //src/tracing/ipc/service:service
1742filegroup(
1743 name = "src_tracing_ipc_service_service",
1744 srcs = [
1745 "src/tracing/ipc/service/consumer_ipc_service.cc",
1746 "src/tracing/ipc/service/consumer_ipc_service.h",
1747 "src/tracing/ipc/service/producer_ipc_service.cc",
1748 "src/tracing/ipc/service/producer_ipc_service.h",
1749 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1750 "src/tracing/ipc/service/service_ipc_host_impl.h",
1751 ],
1752)
1753
1754# GN target: //src/tracing/ipc:common
1755filegroup(
1756 name = "src_tracing_ipc_common",
1757 srcs = [
1758 "src/tracing/ipc/default_socket.cc",
Eric Seckler14a22db2020-02-03 13:47:08 +00001759 "src/tracing/ipc/memfd.cc",
1760 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001761 "src/tracing/ipc/posix_shared_memory.cc",
1762 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001763 "src/tracing/ipc/shared_memory_windows.cc",
1764 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001765 ],
1766)
1767
Primiano Tucci3feec552020-02-04 11:14:42 +00001768# GN target: //src/tracing:client_api_without_backends
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001769filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001770 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001771 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001772 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001773 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001774 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001775 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001776 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00001777 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001778 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00001779 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00001780 "src/tracing/internal/tracing_muxer_fake.cc",
1781 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001782 "src/tracing/internal/tracing_muxer_impl.cc",
1783 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001784 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00001785 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001786 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00001787 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001788 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01001789 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001790 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001791 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001792 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001793 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001794 "src/tracing/virtual_destructors.cc",
1795 ],
1796)
1797
Primiano Tucci1d409982019-09-19 10:15:18 +01001798# GN target: //src/tracing:common
1799filegroup(
1800 name = "src_tracing_common",
1801 srcs = [
1802 "src/tracing/trace_writer_base.cc",
1803 ],
1804)
1805
Primiano Tucci55b4d912020-01-28 11:17:51 +00001806# GN target: //src/tracing:in_process_backend
1807filegroup(
1808 name = "src_tracing_in_process_backend",
1809 srcs = [
1810 "src/tracing/internal/in_process_tracing_backend.cc",
1811 ],
1812)
1813
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001814# GN target: //src/tracing:platform_impl
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001815filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001816 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001817 srcs = [
1818 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001819 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001820 ],
1821)
1822
Primiano Tucci3feec552020-02-04 11:14:42 +00001823# GN target: //src/tracing:system_backend
Primiano Tucci55b4d912020-01-28 11:17:51 +00001824filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001825 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001826 srcs = [
1827 "src/tracing/internal/system_tracing_backend.cc",
1828 ],
1829)
1830
Lalit Maganti65600342019-09-19 21:35:35 +01001831# GN target: //tools/trace_to_text:common
1832filegroup(
1833 name = "tools_trace_to_text_common",
1834 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00001835 "tools/trace_to_text/deobfuscate_profile.cc",
1836 "tools/trace_to_text/deobfuscate_profile.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001837 "tools/trace_to_text/main.cc",
1838 "tools/trace_to_text/symbolize_profile.cc",
1839 "tools/trace_to_text/symbolize_profile.h",
Ioannis Ilkos96d16f82020-10-08 14:41:19 +01001840 "tools/trace_to_text/trace_to_hprof.cc",
1841 "tools/trace_to_text/trace_to_hprof.h",
Eric Secklera60a6b42019-10-07 10:35:48 +01001842 "tools/trace_to_text/trace_to_json.cc",
1843 "tools/trace_to_text/trace_to_json.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001844 "tools/trace_to_text/trace_to_profile.cc",
1845 "tools/trace_to_text/trace_to_profile.h",
1846 "tools/trace_to_text/trace_to_systrace.cc",
1847 "tools/trace_to_text/trace_to_systrace.h",
1848 "tools/trace_to_text/trace_to_text.h",
1849 ],
1850)
1851
1852# GN target: //tools/trace_to_text:full
1853filegroup(
1854 name = "tools_trace_to_text_full",
1855 srcs = [
1856 "tools/trace_to_text/proto_full_utils.cc",
1857 "tools/trace_to_text/proto_full_utils.h",
1858 "tools/trace_to_text/trace_to_text.cc",
1859 ],
1860)
1861
Lalit Maganti9c2318c2021-05-20 16:21:41 +01001862perfetto_cc_proto_descriptor(
1863 name = "tools_trace_to_text_gen_cc_trace_descriptor",
1864 deps = [
1865 ":protos_perfetto_trace_descriptor",
1866 ],
1867 outs = [
1868 "tools/trace_to_text/trace.descriptor.h",
1869 ],
1870)
1871
Primiano Tucci1d409982019-09-19 10:15:18 +01001872# GN target: //tools/trace_to_text:pprofbuilder
1873filegroup(
1874 name = "tools_trace_to_text_pprofbuilder",
1875 srcs = [
1876 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001877 ],
1878)
1879
Primiano Tucci1d409982019-09-19 10:15:18 +01001880# GN target: //tools/trace_to_text:utils
1881filegroup(
1882 name = "tools_trace_to_text_utils",
1883 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001884 "tools/trace_to_text/utils.cc",
1885 "tools/trace_to_text/utils.h",
1886 ],
1887)
1888
Primiano Tucci1d409982019-09-19 10:15:18 +01001889# ##############################################################################
1890# Proto libraries
1891# ##############################################################################
1892
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001893# GN target: //protos/perfetto/common:cpp
1894perfetto_cc_protocpp_library(
1895 name = "protos_perfetto_common_cpp",
1896 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001897 ":protos_perfetto_common_protos",
1898 ],
1899)
1900
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001901# GN target: //protos/perfetto/common:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001902perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001903 name = "protos_perfetto_common_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001904 deps = [
1905 ":protos_perfetto_common_protos",
1906 ],
1907)
1908
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001909# GN target: //protos/perfetto/common:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001910perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001911 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001912 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08001913 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001914 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01001915 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001916 "protos/perfetto/common/commit_data_request.proto",
1917 "protos/perfetto/common/data_source_descriptor.proto",
1918 "protos/perfetto/common/descriptor.proto",
1919 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00001920 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001921 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00001922 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001923 "protos/perfetto/common/sys_stats_counters.proto",
1924 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00001925 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001926 "protos/perfetto/common/tracing_service_state.proto",
1927 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001928 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001929 visibility = [
1930 PERFETTO_CONFIG.proto_library_visibility,
1931 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001932)
1933
1934# GN target: //protos/perfetto/common:zero
1935perfetto_cc_protozero_library(
1936 name = "protos_perfetto_common_zero",
1937 deps = [
1938 ":protos_perfetto_common_protos",
1939 ],
1940)
1941
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001942# GN target: //protos/perfetto/config/android:cpp
1943perfetto_cc_protocpp_library(
1944 name = "protos_perfetto_config_android_cpp",
1945 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001946 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001947 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001948 ],
1949)
1950
Primiano Tucci1d409982019-09-19 10:15:18 +01001951# GN target: //protos/perfetto/config/android:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001952perfetto_cc_proto_library(
1953 name = "protos_perfetto_config_android_lite",
1954 deps = [
1955 ":protos_perfetto_config_android_protos",
1956 ],
1957)
1958
1959# GN target: //protos/perfetto/config/android:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001960perfetto_proto_library(
1961 name = "protos_perfetto_config_android_protos",
1962 srcs = [
1963 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01001964 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001965 "protos/perfetto/config/android/packages_list_config.proto",
1966 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001967 visibility = [
1968 PERFETTO_CONFIG.proto_library_visibility,
1969 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001970 deps = [
1971 ":protos_perfetto_common_protos",
1972 ],
1973)
1974
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001975# GN target: //protos/perfetto/config/android:zero
1976perfetto_cc_protozero_library(
1977 name = "protos_perfetto_config_android_zero",
1978 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01001979 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001980 ":protos_perfetto_config_android_protos",
1981 ],
1982)
1983
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001984# GN target: //protos/perfetto/config:cpp
1985perfetto_cc_protocpp_library(
1986 name = "protos_perfetto_config_cpp",
1987 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01001988 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001989 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001990 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001991 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001992 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001993 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001994 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001995 ":protos_perfetto_config_process_stats_cpp",
1996 ":protos_perfetto_config_profiling_cpp",
1997 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001998 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01001999 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002000 ],
2001)
2002
Hector Dearmana1d75242020-10-02 09:47:24 +01002003# GN target: //protos/perfetto/config:descriptor
2004perfetto_proto_descriptor(
2005 name = "protos_perfetto_config_descriptor",
2006 deps = [
2007 ":protos_perfetto_config_protos",
2008 ],
2009 outs = [
2010 "protos_perfetto_config_descriptor.bin",
2011 ],
2012)
2013
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002014# GN target: //protos/perfetto/config/ftrace:cpp
2015perfetto_cc_protocpp_library(
2016 name = "protos_perfetto_config_ftrace_cpp",
2017 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002018 ":protos_perfetto_config_ftrace_protos",
2019 ],
2020)
2021
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002022# GN target: //protos/perfetto/config/ftrace:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002023perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002024 name = "protos_perfetto_config_ftrace_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002025 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002026 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002027 ],
2028)
2029
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002030# GN target: //protos/perfetto/config/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002031perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002032 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002033 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002034 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002035 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002036 visibility = [
2037 PERFETTO_CONFIG.proto_library_visibility,
2038 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002039)
2040
2041# GN target: //protos/perfetto/config/ftrace:zero
2042perfetto_cc_protozero_library(
2043 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002044 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002045 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002046 ],
2047)
2048
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002049# GN target: //protos/perfetto/config/gpu:cpp
2050perfetto_cc_protocpp_library(
2051 name = "protos_perfetto_config_gpu_cpp",
2052 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002053 ":protos_perfetto_config_gpu_protos",
2054 ],
2055)
2056
Primiano Tucci1d409982019-09-19 10:15:18 +01002057# GN target: //protos/perfetto/config/gpu:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002058perfetto_cc_proto_library(
2059 name = "protos_perfetto_config_gpu_lite",
2060 deps = [
2061 ":protos_perfetto_config_gpu_protos",
2062 ],
2063)
2064
2065# GN target: //protos/perfetto/config/gpu:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002066perfetto_proto_library(
2067 name = "protos_perfetto_config_gpu_protos",
2068 srcs = [
2069 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05002070 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002071 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002072 visibility = [
2073 PERFETTO_CONFIG.proto_library_visibility,
2074 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002075)
2076
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002077# GN target: //protos/perfetto/config/gpu:zero
2078perfetto_cc_protozero_library(
2079 name = "protos_perfetto_config_gpu_zero",
2080 deps = [
2081 ":protos_perfetto_config_gpu_protos",
2082 ],
2083)
2084
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002085# GN target: //protos/perfetto/config/inode_file:cpp
2086perfetto_cc_protocpp_library(
2087 name = "protos_perfetto_config_inode_file_cpp",
2088 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002089 ":protos_perfetto_config_inode_file_protos",
2090 ],
2091)
2092
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002093# GN target: //protos/perfetto/config/inode_file:lite
2094perfetto_cc_proto_library(
2095 name = "protos_perfetto_config_inode_file_lite",
2096 deps = [
2097 ":protos_perfetto_config_inode_file_protos",
2098 ],
2099)
2100
2101# GN target: //protos/perfetto/config/inode_file:zero
2102perfetto_proto_library(
2103 name = "protos_perfetto_config_inode_file_protos",
2104 srcs = [
2105 "protos/perfetto/config/inode_file/inode_file_config.proto",
2106 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002107 visibility = [
2108 PERFETTO_CONFIG.proto_library_visibility,
2109 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002110)
2111
2112# GN target: //protos/perfetto/config/inode_file:zero
2113perfetto_cc_protozero_library(
2114 name = "protos_perfetto_config_inode_file_zero",
2115 deps = [
2116 ":protos_perfetto_config_inode_file_protos",
2117 ],
2118)
2119
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002120# GN target: //protos/perfetto/config/interceptors:cpp
2121perfetto_cc_protocpp_library(
2122 name = "protos_perfetto_config_interceptors_cpp",
2123 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002124 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002125 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002126 ],
2127)
2128
2129# GN target: //protos/perfetto/config/interceptors:lite
2130perfetto_cc_proto_library(
2131 name = "protos_perfetto_config_interceptors_lite",
2132 deps = [
2133 ":protos_perfetto_config_interceptors_protos",
2134 ],
2135)
2136
2137# GN target: //protos/perfetto/config/interceptors:zero
2138perfetto_proto_library(
2139 name = "protos_perfetto_config_interceptors_protos",
2140 srcs = [
2141 "protos/perfetto/config/interceptors/console_config.proto",
2142 ],
2143 visibility = [
2144 PERFETTO_CONFIG.proto_library_visibility,
2145 ],
2146 deps = [
2147 ":protos_perfetto_common_protos",
2148 ],
2149)
2150
2151# GN target: //protos/perfetto/config/interceptors:zero
2152perfetto_cc_protozero_library(
2153 name = "protos_perfetto_config_interceptors_zero",
2154 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002155 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002156 ":protos_perfetto_config_interceptors_protos",
2157 ],
2158)
2159
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002160# GN target: //protos/perfetto/config:lite
2161perfetto_cc_proto_library(
2162 name = "protos_perfetto_config_lite",
2163 deps = [
2164 ":protos_perfetto_config_protos",
2165 ],
2166)
2167
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002168# GN target: //protos/perfetto/config:merged_config
2169perfetto_cc_proto_library(
2170 name = "protos_perfetto_config_merged_config",
2171 deps = [
2172 ":protos_perfetto_config_merged_config_protos",
2173 ],
2174)
2175
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002176# GN target: //protos/perfetto/config:merged_config
2177perfetto_proto_library(
2178 name = "protos_perfetto_config_merged_config_protos",
2179 srcs = [
2180 "protos/perfetto/config/perfetto_config.proto",
2181 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002182 visibility = PERFETTO_CONFIG.public_visibility,
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002183)
2184
Lalit Maganti2939c082021-03-11 17:25:44 +00002185# GN target: //protos/perfetto/config:perfetto_config_descriptor
2186perfetto_proto_descriptor(
2187 name = "protos_perfetto_config_perfetto_config_descriptor",
2188 deps = [
2189 ":protos_perfetto_config_perfetto_config_protos",
2190 ],
2191 outs = [
2192 "protos_perfetto_config_perfetto_config_descriptor.bin",
2193 ],
2194)
2195
2196# GN target: //protos/perfetto/config:perfetto_config_descriptor
2197perfetto_proto_library(
2198 name = "protos_perfetto_config_perfetto_config_protos",
2199 srcs = [
2200 "protos/perfetto/config/perfetto_config.proto",
2201 ],
2202 visibility = [
2203 PERFETTO_CONFIG.proto_library_visibility,
2204 ],
2205)
2206
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002207# GN target: //protos/perfetto/config/power:cpp
2208perfetto_cc_protocpp_library(
2209 name = "protos_perfetto_config_power_cpp",
2210 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002211 ":protos_perfetto_config_power_protos",
2212 ],
2213)
2214
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002215# GN target: //protos/perfetto/config/power:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002216perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002217 name = "protos_perfetto_config_power_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002218 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002219 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002220 ],
2221)
2222
2223# GN target: //protos/perfetto/config/power:zero
2224perfetto_proto_library(
2225 name = "protos_perfetto_config_power_protos",
2226 srcs = [
2227 "protos/perfetto/config/power/android_power_config.proto",
2228 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002229 visibility = [
2230 PERFETTO_CONFIG.proto_library_visibility,
2231 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002232)
2233
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002234# GN target: //protos/perfetto/config/power:zero
2235perfetto_cc_protozero_library(
2236 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002237 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002238 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002239 ],
2240)
2241
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002242# GN target: //protos/perfetto/config/process_stats:cpp
2243perfetto_cc_protocpp_library(
2244 name = "protos_perfetto_config_process_stats_cpp",
2245 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002246 ":protos_perfetto_config_process_stats_protos",
2247 ],
2248)
2249
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002250# GN target: //protos/perfetto/config/process_stats:lite
2251perfetto_cc_proto_library(
2252 name = "protos_perfetto_config_process_stats_lite",
2253 deps = [
2254 ":protos_perfetto_config_process_stats_protos",
2255 ],
2256)
2257
2258# GN target: //protos/perfetto/config/process_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002259perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002260 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002261 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002262 "protos/perfetto/config/process_stats/process_stats_config.proto",
2263 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002264 visibility = [
2265 PERFETTO_CONFIG.proto_library_visibility,
2266 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002267)
2268
2269# GN target: //protos/perfetto/config/process_stats:zero
2270perfetto_cc_protozero_library(
2271 name = "protos_perfetto_config_process_stats_zero",
2272 deps = [
2273 ":protos_perfetto_config_process_stats_protos",
2274 ],
2275)
2276
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002277# GN target: //protos/perfetto/config/profiling:cpp
2278perfetto_cc_protocpp_library(
2279 name = "protos_perfetto_config_profiling_cpp",
2280 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002281 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002282 ":protos_perfetto_config_profiling_protos",
2283 ],
2284)
2285
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002286# GN target: //protos/perfetto/config/profiling:lite
2287perfetto_cc_proto_library(
2288 name = "protos_perfetto_config_profiling_lite",
2289 deps = [
2290 ":protos_perfetto_config_profiling_protos",
2291 ],
2292)
2293
2294# GN target: //protos/perfetto/config/profiling:zero
2295perfetto_proto_library(
2296 name = "protos_perfetto_config_profiling_protos",
2297 srcs = [
2298 "protos/perfetto/config/profiling/heapprofd_config.proto",
2299 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00002300 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002301 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002302 visibility = [
2303 PERFETTO_CONFIG.proto_library_visibility,
2304 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002305 deps = [
2306 ":protos_perfetto_common_protos",
2307 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002308)
2309
2310# GN target: //protos/perfetto/config/profiling:zero
2311perfetto_cc_protozero_library(
2312 name = "protos_perfetto_config_profiling_zero",
2313 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002314 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002315 ":protos_perfetto_config_profiling_protos",
2316 ],
2317)
2318
2319# GN target: //protos/perfetto/config:zero
2320perfetto_proto_library(
2321 name = "protos_perfetto_config_protos",
2322 srcs = [
2323 "protos/perfetto/config/chrome/chrome_config.proto",
2324 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002325 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02002326 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002327 "protos/perfetto/config/test_config.proto",
2328 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002329 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002330 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002331 deps = [
2332 ":protos_perfetto_common_protos",
2333 ":protos_perfetto_config_android_protos",
2334 ":protos_perfetto_config_ftrace_protos",
2335 ":protos_perfetto_config_gpu_protos",
2336 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002337 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002338 ":protos_perfetto_config_power_protos",
2339 ":protos_perfetto_config_process_stats_protos",
2340 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002341 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002342 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002343 ],
2344)
2345
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002346# GN target: //protos/perfetto/config/sys_stats:cpp
2347perfetto_cc_protocpp_library(
2348 name = "protos_perfetto_config_sys_stats_cpp",
2349 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002350 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002351 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002352 ],
2353)
2354
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002355# GN target: //protos/perfetto/config/sys_stats:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002356perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002357 name = "protos_perfetto_config_sys_stats_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002358 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002359 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002360 ],
2361)
2362
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002363# GN target: //protos/perfetto/config/sys_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002364perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002365 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002366 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002367 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002368 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002369 visibility = [
2370 PERFETTO_CONFIG.proto_library_visibility,
2371 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002372 deps = [
2373 ":protos_perfetto_common_protos",
2374 ],
2375)
2376
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002377# GN target: //protos/perfetto/config/sys_stats:zero
2378perfetto_cc_protozero_library(
2379 name = "protos_perfetto_config_sys_stats_zero",
2380 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002381 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002382 ":protos_perfetto_config_sys_stats_protos",
2383 ],
2384)
2385
Sami Kyostila38cd0412020-02-12 17:09:52 +00002386# GN target: //protos/perfetto/config/track_event:cpp
2387perfetto_cc_protocpp_library(
2388 name = "protos_perfetto_config_track_event_cpp",
2389 deps = [
2390 ":protos_perfetto_config_track_event_protos",
2391 ],
2392)
2393
2394# GN target: //protos/perfetto/config/track_event:lite
2395perfetto_cc_proto_library(
2396 name = "protos_perfetto_config_track_event_lite",
2397 deps = [
2398 ":protos_perfetto_config_track_event_protos",
2399 ],
2400)
2401
2402# GN target: //protos/perfetto/config/track_event:zero
2403perfetto_proto_library(
2404 name = "protos_perfetto_config_track_event_protos",
2405 srcs = [
2406 "protos/perfetto/config/track_event/track_event_config.proto",
2407 ],
2408 visibility = [
2409 PERFETTO_CONFIG.proto_library_visibility,
2410 ],
2411)
2412
2413# GN target: //protos/perfetto/config/track_event:zero
2414perfetto_cc_protozero_library(
2415 name = "protos_perfetto_config_track_event_zero",
2416 deps = [
2417 ":protos_perfetto_config_track_event_protos",
2418 ],
2419)
2420
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002421# GN target: //protos/perfetto/config:zero
2422perfetto_cc_protozero_library(
2423 name = "protos_perfetto_config_zero",
2424 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002425 ":protos_perfetto_common_zero",
2426 ":protos_perfetto_config_android_zero",
2427 ":protos_perfetto_config_ftrace_zero",
2428 ":protos_perfetto_config_gpu_zero",
2429 ":protos_perfetto_config_inode_file_zero",
2430 ":protos_perfetto_config_interceptors_zero",
2431 ":protos_perfetto_config_power_zero",
2432 ":protos_perfetto_config_process_stats_zero",
2433 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002434 ":protos_perfetto_config_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002435 ":protos_perfetto_config_sys_stats_zero",
2436 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002437 ],
2438)
2439
Primiano Tuccie8020f92019-11-26 13:24:01 +00002440# GN target: //protos/perfetto/ipc:cpp
2441perfetto_cc_protocpp_library(
2442 name = "protos_perfetto_ipc_cpp",
2443 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002444 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002445 ":protos_perfetto_config_android_cpp",
2446 ":protos_perfetto_config_cpp",
2447 ":protos_perfetto_config_ftrace_cpp",
2448 ":protos_perfetto_config_gpu_cpp",
2449 ":protos_perfetto_config_inode_file_cpp",
2450 ":protos_perfetto_config_interceptors_cpp",
2451 ":protos_perfetto_config_power_cpp",
2452 ":protos_perfetto_config_process_stats_cpp",
2453 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002454 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002455 ":protos_perfetto_config_track_event_cpp",
2456 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002457 ],
2458)
2459
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002460# GN target: //protos/perfetto/ipc:ipc
2461perfetto_cc_ipc_library(
2462 name = "protos_perfetto_ipc_ipc",
2463 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00002464 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002465 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002466 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002467 ":protos_perfetto_config_ftrace_cpp",
2468 ":protos_perfetto_config_gpu_cpp",
2469 ":protos_perfetto_config_inode_file_cpp",
2470 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002471 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002472 ":protos_perfetto_config_process_stats_cpp",
2473 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002474 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002475 ":protos_perfetto_config_track_event_cpp",
2476 ":protos_perfetto_ipc_cpp",
2477 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002478 ],
2479)
2480
Primiano Tuccie8020f92019-11-26 13:24:01 +00002481# GN target: //protos/perfetto/ipc:ipc
Primiano Tucci1d409982019-09-19 10:15:18 +01002482perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002483 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002484 srcs = [
2485 "protos/perfetto/ipc/consumer_port.proto",
2486 "protos/perfetto/ipc/producer_port.proto",
2487 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002488 visibility = [
2489 PERFETTO_CONFIG.proto_library_visibility,
2490 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002491 deps = [
2492 ":protos_perfetto_common_protos",
2493 ":protos_perfetto_config_android_protos",
2494 ":protos_perfetto_config_ftrace_protos",
2495 ":protos_perfetto_config_gpu_protos",
2496 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002497 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002498 ":protos_perfetto_config_power_protos",
2499 ":protos_perfetto_config_process_stats_protos",
2500 ":protos_perfetto_config_profiling_protos",
2501 ":protos_perfetto_config_protos",
2502 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002503 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002504 ],
2505)
2506
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002507# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2508perfetto_cc_protocpp_library(
2509 name = "protos_perfetto_ipc_wire_protocol_cpp",
2510 deps = [
2511 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002512 ],
2513)
2514
Primiano Tuccie8020f92019-11-26 13:24:01 +00002515# GN target: //protos/perfetto/ipc:wire_protocol_cpp
Primiano Tucci1d409982019-09-19 10:15:18 +01002516perfetto_proto_library(
2517 name = "protos_perfetto_ipc_wire_protocol_protos",
2518 srcs = [
2519 "protos/perfetto/ipc/wire_protocol.proto",
2520 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002521 visibility = [
2522 PERFETTO_CONFIG.proto_library_visibility,
2523 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002524)
2525
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002526# GN target: //protos/perfetto/metrics/android:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002527perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002528 name = "protos_perfetto_metrics_android_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002529 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002530 ":protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002531 ],
2532)
2533
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002534# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002535perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002536 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002537 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002538 "protos/perfetto/metrics/android/batt_metric.proto",
2539 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002540 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07002541 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08002542 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08002543 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002544 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08002545 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002546 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002547 "protos/perfetto/metrics/android/ion_metric.proto",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00002548 "protos/perfetto/metrics/android/jank_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002549 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002550 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002551 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002552 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002553 "protos/perfetto/metrics/android/mem_metric.proto",
2554 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
2555 "protos/perfetto/metrics/android/package_list.proto",
2556 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002557 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01002558 "protos/perfetto/metrics/android/profiler_smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002559 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002560 "protos/perfetto/metrics/android/surfaceflinger.proto",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00002561 "protos/perfetto/metrics/android/sysui_cuj_metrics.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002562 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002563 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01002564 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002565 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002566 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002567 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002568)
2569
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002570# GN target: //protos/perfetto/metrics/chrome:descriptor
2571perfetto_proto_descriptor(
2572 name = "protos_perfetto_metrics_chrome_descriptor",
2573 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002574 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002575 ],
2576 outs = [
2577 "protos_perfetto_metrics_chrome_descriptor.bin",
2578 ],
2579)
2580
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002581# GN target: //protos/perfetto/metrics/chrome:source_set
2582perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002583 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002584 srcs = [
2585 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01002586 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00002587 "protos/perfetto/metrics/chrome/frame_times.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01002588 "protos/perfetto/metrics/chrome/media_metric.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00002589 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01002590 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002591 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
2592 ],
2593 visibility = [
2594 PERFETTO_CONFIG.proto_library_visibility,
2595 ],
2596 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002597 ":protos_perfetto_metrics_android_protos",
2598 ":protos_perfetto_metrics_custom_options_protos",
2599 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002600 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2601)
2602
2603# GN target: //protos/perfetto/metrics:custom_options_source_set
2604perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002605 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002606 srcs = [
2607 "protos/perfetto/metrics/custom_options.proto",
2608 ],
2609 visibility = [
2610 PERFETTO_CONFIG.proto_library_visibility,
2611 ],
2612 deps = [
2613 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2614)
2615
Lalit Maganti117272f2020-09-11 14:01:18 +01002616# GN target: //protos/perfetto/metrics:descriptor
2617perfetto_proto_descriptor(
2618 name = "protos_perfetto_metrics_descriptor",
2619 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002620 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002621 ],
2622 outs = [
2623 "protos_perfetto_metrics_descriptor.bin",
2624 ],
2625)
2626
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002627# GN target: //protos/perfetto/metrics:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002628perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002629 name = "protos_perfetto_metrics_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002630 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002631 ":protos_perfetto_metrics_protos",
2632 ],
2633)
2634
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002635# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002636perfetto_proto_library(
2637 name = "protos_perfetto_metrics_protos",
2638 srcs = [
2639 "protos/perfetto/metrics/metrics.proto",
2640 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002641 visibility = PERFETTO_CONFIG.public_visibility,
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002642 deps = [
2643 ":protos_perfetto_metrics_android_protos",
2644 ],
2645)
2646
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002647# GN target: //protos/perfetto/trace/android:lite
2648perfetto_cc_proto_library(
2649 name = "protos_perfetto_trace_android_lite",
2650 deps = [
2651 ":protos_perfetto_trace_android_protos",
2652 ],
2653)
2654
2655# GN target: //protos/perfetto/trace/android:zero
2656perfetto_proto_library(
2657 name = "protos_perfetto_trace_android_protos",
2658 srcs = [
2659 "protos/perfetto/trace/android/android_log.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08002660 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002661 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002662 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002663 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002664 "protos/perfetto/trace/android/packages_list.proto",
2665 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002666 visibility = [
2667 PERFETTO_CONFIG.proto_library_visibility,
2668 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002669 deps = [
2670 ":protos_perfetto_common_protos",
2671 ],
2672)
2673
2674# GN target: //protos/perfetto/trace/android:zero
2675perfetto_cc_protozero_library(
2676 name = "protos_perfetto_trace_android_zero",
2677 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002678 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002679 ":protos_perfetto_trace_android_protos",
2680 ],
2681)
2682
2683# GN target: //protos/perfetto/trace/chrome:lite
2684perfetto_cc_proto_library(
2685 name = "protos_perfetto_trace_chrome_lite",
2686 deps = [
2687 ":protos_perfetto_trace_chrome_protos",
2688 ],
2689)
2690
2691# GN target: //protos/perfetto/trace/chrome:zero
2692perfetto_proto_library(
2693 name = "protos_perfetto_trace_chrome_protos",
2694 srcs = [
2695 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2696 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2697 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2698 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002699 visibility = [
2700 PERFETTO_CONFIG.proto_library_visibility,
2701 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002702)
2703
2704# GN target: //protos/perfetto/trace/chrome:zero
2705perfetto_cc_protozero_library(
2706 name = "protos_perfetto_trace_chrome_zero",
2707 deps = [
2708 ":protos_perfetto_trace_chrome_protos",
2709 ],
2710)
2711
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002712# GN target: //protos/perfetto/trace:descriptor
2713perfetto_proto_descriptor(
2714 name = "protos_perfetto_trace_descriptor",
2715 deps = [
2716 ":protos_perfetto_trace_protos",
2717 ],
2718 outs = [
2719 "protos_perfetto_trace_descriptor.bin",
2720 ],
2721)
2722
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002723# GN target: //protos/perfetto/trace/filesystem:lite
2724perfetto_cc_proto_library(
2725 name = "protos_perfetto_trace_filesystem_lite",
2726 deps = [
2727 ":protos_perfetto_trace_filesystem_protos",
2728 ],
2729)
2730
2731# GN target: //protos/perfetto/trace/filesystem:zero
2732perfetto_proto_library(
2733 name = "protos_perfetto_trace_filesystem_protos",
2734 srcs = [
2735 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2736 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002737 visibility = [
2738 PERFETTO_CONFIG.proto_library_visibility,
2739 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002740)
2741
2742# GN target: //protos/perfetto/trace/filesystem:zero
2743perfetto_cc_protozero_library(
2744 name = "protos_perfetto_trace_filesystem_zero",
2745 deps = [
2746 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002747 ],
2748)
2749
2750# GN target: //protos/perfetto/trace/ftrace:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002751perfetto_cc_proto_library(
2752 name = "protos_perfetto_trace_ftrace_lite",
2753 deps = [
2754 ":protos_perfetto_trace_ftrace_protos",
2755 ],
2756)
2757
2758# GN target: //protos/perfetto/trace/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002759perfetto_proto_library(
2760 name = "protos_perfetto_trace_ftrace_protos",
2761 srcs = [
2762 "protos/perfetto/trace/ftrace/binder.proto",
2763 "protos/perfetto/trace/ftrace/block.proto",
2764 "protos/perfetto/trace/ftrace/cgroup.proto",
2765 "protos/perfetto/trace/ftrace/clk.proto",
2766 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002767 "protos/perfetto/trace/ftrace/cpuhp.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07002768 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002769 "protos/perfetto/trace/ftrace/dpu.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002770 "protos/perfetto/trace/ftrace/ext4.proto",
2771 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01002772 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002773 "protos/perfetto/trace/ftrace/fence.proto",
2774 "protos/perfetto/trace/ftrace/filemap.proto",
2775 "protos/perfetto/trace/ftrace/ftrace.proto",
2776 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2777 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2778 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002779 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002780 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002781 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002782 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002783 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002784 "protos/perfetto/trace/ftrace/ipi.proto",
2785 "protos/perfetto/trace/ftrace/irq.proto",
2786 "protos/perfetto/trace/ftrace/kmem.proto",
2787 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00002788 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002789 "protos/perfetto/trace/ftrace/mdss.proto",
2790 "protos/perfetto/trace/ftrace/mm_event.proto",
2791 "protos/perfetto/trace/ftrace/oom.proto",
2792 "protos/perfetto/trace/ftrace/power.proto",
2793 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2794 "protos/perfetto/trace/ftrace/regulator.proto",
2795 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002796 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002797 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002798 "protos/perfetto/trace/ftrace/signal.proto",
2799 "protos/perfetto/trace/ftrace/sync.proto",
2800 "protos/perfetto/trace/ftrace/systrace.proto",
2801 "protos/perfetto/trace/ftrace/task.proto",
2802 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002803 "protos/perfetto/trace/ftrace/thermal.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002804 "protos/perfetto/trace/ftrace/vmscan.proto",
2805 "protos/perfetto/trace/ftrace/workqueue.proto",
2806 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002807 visibility = [
2808 PERFETTO_CONFIG.proto_library_visibility,
2809 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002810)
2811
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002812# GN target: //protos/perfetto/trace/ftrace:zero
2813perfetto_cc_protozero_library(
2814 name = "protos_perfetto_trace_ftrace_zero",
2815 deps = [
2816 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002817 ],
2818)
2819
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002820# GN target: //protos/perfetto/trace/gpu:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002821perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002822 name = "protos_perfetto_trace_gpu_lite",
2823 deps = [
2824 ":protos_perfetto_trace_gpu_protos",
2825 ],
2826)
2827
2828# GN target: //protos/perfetto/trace/gpu:zero
2829perfetto_proto_library(
2830 name = "protos_perfetto_trace_gpu_protos",
2831 srcs = [
2832 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07002833 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002834 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08002835 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002836 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
2837 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002838 visibility = [
2839 PERFETTO_CONFIG.proto_library_visibility,
2840 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002841 deps = [
2842 ":protos_perfetto_common_protos",
2843 ],
2844)
2845
2846# GN target: //protos/perfetto/trace/gpu:zero
2847perfetto_cc_protozero_library(
2848 name = "protos_perfetto_trace_gpu_zero",
2849 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002850 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002851 ":protos_perfetto_trace_gpu_protos",
2852 ],
2853)
2854
2855# GN target: //protos/perfetto/trace/interned_data:lite
2856perfetto_cc_proto_library(
2857 name = "protos_perfetto_trace_interned_data_lite",
2858 deps = [
2859 ":protos_perfetto_trace_interned_data_protos",
2860 ],
2861)
2862
2863# GN target: //protos/perfetto/trace/interned_data:zero
2864perfetto_proto_library(
2865 name = "protos_perfetto_trace_interned_data_protos",
2866 srcs = [
2867 "protos/perfetto/trace/interned_data/interned_data.proto",
2868 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002869 visibility = [
2870 PERFETTO_CONFIG.proto_library_visibility,
2871 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002872 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07002873 ":protos_perfetto_common_protos",
2874 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002875 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002876 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002877 ],
2878)
2879
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002880# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002881perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002882 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002883 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002884 ":protos_perfetto_common_zero",
2885 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002886 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002887 ":protos_perfetto_trace_profiling_zero",
2888 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002889 ],
2890)
2891
2892# GN target: //protos/perfetto/trace:merged_trace
2893perfetto_cc_proto_library(
2894 name = "protos_perfetto_trace_merged_trace",
2895 deps = [
2896 ":protos_perfetto_trace_merged_trace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002897 ],
2898)
2899
Lalit Magantic3187f82019-09-20 14:51:11 +01002900# GN target: //protos/perfetto/trace:merged_trace
2901perfetto_proto_library(
2902 name = "protos_perfetto_trace_merged_trace_protos",
2903 srcs = [
2904 "protos/perfetto/trace/perfetto_trace.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002905 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002906 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002907)
2908
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002909# GN target: //protos/perfetto/trace:minimal_lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002910perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002911 name = "protos_perfetto_trace_minimal_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002912 deps = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002913 ":protos_perfetto_trace_minimal_protos",
2914 ],
2915)
2916
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002917# GN target: //protos/perfetto/trace:minimal_zero
2918perfetto_proto_library(
2919 name = "protos_perfetto_trace_minimal_protos",
2920 srcs = [
2921 "protos/perfetto/trace/clock_snapshot.proto",
2922 "protos/perfetto/trace/system_info.proto",
2923 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002924 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002925 visibility = [
2926 PERFETTO_CONFIG.proto_library_visibility,
2927 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002928 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002929 ":protos_perfetto_common_protos",
2930 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002931 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002932 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002933 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002934 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002935 ":protos_perfetto_config_power_protos",
2936 ":protos_perfetto_config_process_stats_protos",
2937 ":protos_perfetto_config_profiling_protos",
2938 ":protos_perfetto_config_protos",
2939 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002940 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002941 ],
2942)
2943
2944# GN target: //protos/perfetto/trace:minimal_zero
2945perfetto_cc_protozero_library(
2946 name = "protos_perfetto_trace_minimal_zero",
2947 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002948 ":protos_perfetto_common_zero",
2949 ":protos_perfetto_config_android_zero",
2950 ":protos_perfetto_config_ftrace_zero",
2951 ":protos_perfetto_config_gpu_zero",
2952 ":protos_perfetto_config_inode_file_zero",
2953 ":protos_perfetto_config_interceptors_zero",
2954 ":protos_perfetto_config_power_zero",
2955 ":protos_perfetto_config_process_stats_zero",
2956 ":protos_perfetto_config_profiling_zero",
2957 ":protos_perfetto_config_sys_stats_zero",
2958 ":protos_perfetto_config_track_event_zero",
2959 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002960 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002961 ],
2962)
2963
2964# GN target: //protos/perfetto/trace:non_minimal_lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002965perfetto_cc_proto_library(
2966 name = "protos_perfetto_trace_non_minimal_lite",
2967 deps = [
2968 ":protos_perfetto_trace_non_minimal_protos",
2969 ],
2970)
2971
2972# GN target: //protos/perfetto/trace:non_minimal_zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002973perfetto_proto_library(
2974 name = "protos_perfetto_trace_non_minimal_protos",
2975 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01002976 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02002977 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002978 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00002979 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002980 "protos/perfetto/trace/trace.proto",
2981 "protos/perfetto/trace/trace_packet.proto",
2982 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01002983 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002984 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002985 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002986 deps = [
2987 ":protos_perfetto_common_protos",
2988 ":protos_perfetto_config_android_protos",
2989 ":protos_perfetto_config_ftrace_protos",
2990 ":protos_perfetto_config_gpu_protos",
2991 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002992 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002993 ":protos_perfetto_config_power_protos",
2994 ":protos_perfetto_config_process_stats_protos",
2995 ":protos_perfetto_config_profiling_protos",
2996 ":protos_perfetto_config_protos",
2997 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002998 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002999 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003000 ":protos_perfetto_trace_chrome_protos",
3001 ":protos_perfetto_trace_filesystem_protos",
3002 ":protos_perfetto_trace_ftrace_protos",
3003 ":protos_perfetto_trace_gpu_protos",
3004 ":protos_perfetto_trace_interned_data_protos",
3005 ":protos_perfetto_trace_minimal_protos",
3006 ":protos_perfetto_trace_perfetto_protos",
3007 ":protos_perfetto_trace_power_protos",
3008 ":protos_perfetto_trace_profiling_protos",
3009 ":protos_perfetto_trace_ps_protos",
3010 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003011 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003012 ":protos_perfetto_trace_track_event_protos",
3013 ],
3014)
3015
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003016# GN target: //protos/perfetto/trace:non_minimal_zero
3017perfetto_cc_protozero_library(
3018 name = "protos_perfetto_trace_non_minimal_zero",
3019 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003020 ":protos_perfetto_common_zero",
3021 ":protos_perfetto_config_android_zero",
3022 ":protos_perfetto_config_ftrace_zero",
3023 ":protos_perfetto_config_gpu_zero",
3024 ":protos_perfetto_config_inode_file_zero",
3025 ":protos_perfetto_config_interceptors_zero",
3026 ":protos_perfetto_config_power_zero",
3027 ":protos_perfetto_config_process_stats_zero",
3028 ":protos_perfetto_config_profiling_zero",
3029 ":protos_perfetto_config_sys_stats_zero",
3030 ":protos_perfetto_config_track_event_zero",
3031 ":protos_perfetto_config_zero",
3032 ":protos_perfetto_trace_android_zero",
3033 ":protos_perfetto_trace_chrome_zero",
3034 ":protos_perfetto_trace_filesystem_zero",
3035 ":protos_perfetto_trace_ftrace_zero",
3036 ":protos_perfetto_trace_gpu_zero",
3037 ":protos_perfetto_trace_interned_data_zero",
3038 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003039 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003040 ":protos_perfetto_trace_perfetto_zero",
3041 ":protos_perfetto_trace_power_zero",
3042 ":protos_perfetto_trace_profiling_zero",
3043 ":protos_perfetto_trace_ps_zero",
3044 ":protos_perfetto_trace_sys_stats_zero",
3045 ":protos_perfetto_trace_system_info_zero",
3046 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003047 ],
3048)
3049
3050# GN target: //protos/perfetto/trace/perfetto:lite
3051perfetto_cc_proto_library(
3052 name = "protos_perfetto_trace_perfetto_lite",
3053 deps = [
3054 ":protos_perfetto_trace_perfetto_protos",
3055 ],
3056)
3057
3058# GN target: //protos/perfetto/trace/perfetto:zero
3059perfetto_proto_library(
3060 name = "protos_perfetto_trace_perfetto_protos",
3061 srcs = [
3062 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01003063 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003064 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003065 visibility = [
3066 PERFETTO_CONFIG.proto_library_visibility,
3067 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003068)
3069
3070# GN target: //protos/perfetto/trace/perfetto:zero
3071perfetto_cc_protozero_library(
3072 name = "protos_perfetto_trace_perfetto_zero",
3073 deps = [
3074 ":protos_perfetto_trace_perfetto_protos",
3075 ],
3076)
3077
3078# GN target: //protos/perfetto/trace/power:lite
3079perfetto_cc_proto_library(
3080 name = "protos_perfetto_trace_power_lite",
3081 deps = [
3082 ":protos_perfetto_trace_power_protos",
3083 ],
3084)
3085
3086# GN target: //protos/perfetto/trace/power:zero
3087perfetto_proto_library(
3088 name = "protos_perfetto_trace_power_protos",
3089 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003090 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003091 "protos/perfetto/trace/power/battery_counters.proto",
3092 "protos/perfetto/trace/power/power_rails.proto",
3093 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003094 visibility = [
3095 PERFETTO_CONFIG.proto_library_visibility,
3096 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003097 deps = [
3098 ":protos_perfetto_common_protos",
3099 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003100)
3101
3102# GN target: //protos/perfetto/trace/power:zero
3103perfetto_cc_protozero_library(
3104 name = "protos_perfetto_trace_power_zero",
3105 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003106 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003107 ":protos_perfetto_trace_power_protos",
3108 ],
3109)
3110
3111# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3112perfetto_proto_library(
3113 name = "protos_perfetto_trace_processor_metrics_impl_protos",
3114 srcs = [
3115 "protos/perfetto/trace_processor/metrics_impl.proto",
3116 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003117 visibility = [
3118 PERFETTO_CONFIG.proto_library_visibility,
3119 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003120)
3121
3122# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3123perfetto_cc_protozero_library(
3124 name = "protos_perfetto_trace_processor_metrics_impl_zero",
3125 deps = [
3126 ":protos_perfetto_trace_processor_metrics_impl_protos",
3127 ],
3128)
3129
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003130# GN target: //protos/perfetto/trace_processor:zero
3131perfetto_proto_library(
3132 name = "protos_perfetto_trace_processor_protos",
3133 srcs = [
3134 "protos/perfetto/trace_processor/trace_processor.proto",
3135 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003136 visibility = [
3137 PERFETTO_CONFIG.proto_library_visibility,
3138 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04003139 deps = [
3140 ":protos_perfetto_common_protos",
3141 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003142)
3143
3144# GN target: //protos/perfetto/trace_processor:zero
3145perfetto_cc_protozero_library(
3146 name = "protos_perfetto_trace_processor_zero",
3147 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003148 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003149 ":protos_perfetto_trace_processor_protos",
3150 ],
3151)
3152
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003153# GN target: //protos/perfetto/trace/profiling:lite
3154perfetto_cc_proto_library(
3155 name = "protos_perfetto_trace_profiling_lite",
3156 deps = [
3157 ":protos_perfetto_trace_profiling_protos",
3158 ],
3159)
3160
3161# GN target: //protos/perfetto/trace/profiling:zero
3162perfetto_proto_library(
3163 name = "protos_perfetto_trace_profiling_protos",
3164 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01003165 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003166 "protos/perfetto/trace/profiling/heap_graph.proto",
3167 "protos/perfetto/trace/profiling/profile_common.proto",
3168 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02003169 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003170 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003171 visibility = [
3172 PERFETTO_CONFIG.proto_library_visibility,
3173 ],
Ryan Savitski45517322021-03-09 16:38:19 +00003174 deps = [
3175 ":protos_perfetto_common_protos",
3176 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003177)
3178
3179# GN target: //protos/perfetto/trace/profiling:zero
3180perfetto_cc_protozero_library(
3181 name = "protos_perfetto_trace_profiling_zero",
3182 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003183 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003184 ":protos_perfetto_trace_profiling_protos",
3185 ],
3186)
3187
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003188# GN target: //protos/perfetto/trace:descriptor
3189perfetto_proto_library(
3190 name = "protos_perfetto_trace_protos",
3191 srcs = [
3192 "protos/perfetto/trace/trace.proto",
3193 ],
3194 visibility = [
3195 PERFETTO_CONFIG.proto_library_visibility,
3196 ],
3197 deps = [
3198 ":protos_perfetto_common_protos",
3199 ":protos_perfetto_config_android_protos",
3200 ":protos_perfetto_config_ftrace_protos",
3201 ":protos_perfetto_config_gpu_protos",
3202 ":protos_perfetto_config_inode_file_protos",
3203 ":protos_perfetto_config_interceptors_protos",
3204 ":protos_perfetto_config_power_protos",
3205 ":protos_perfetto_config_process_stats_protos",
3206 ":protos_perfetto_config_profiling_protos",
3207 ":protos_perfetto_config_protos",
3208 ":protos_perfetto_config_sys_stats_protos",
3209 ":protos_perfetto_config_track_event_protos",
3210 ":protos_perfetto_trace_android_protos",
3211 ":protos_perfetto_trace_chrome_protos",
3212 ":protos_perfetto_trace_filesystem_protos",
3213 ":protos_perfetto_trace_ftrace_protos",
3214 ":protos_perfetto_trace_gpu_protos",
3215 ":protos_perfetto_trace_interned_data_protos",
3216 ":protos_perfetto_trace_minimal_protos",
3217 ":protos_perfetto_trace_non_minimal_protos",
3218 ":protos_perfetto_trace_perfetto_protos",
3219 ":protos_perfetto_trace_power_protos",
3220 ":protos_perfetto_trace_profiling_protos",
3221 ":protos_perfetto_trace_ps_protos",
3222 ":protos_perfetto_trace_sys_stats_protos",
3223 ":protos_perfetto_trace_system_info_protos",
3224 ":protos_perfetto_trace_track_event_protos",
3225 ],
3226)
3227
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003228# GN target: //protos/perfetto/trace/ps:lite
3229perfetto_cc_proto_library(
3230 name = "protos_perfetto_trace_ps_lite",
3231 deps = [
3232 ":protos_perfetto_trace_ps_protos",
3233 ],
3234)
3235
3236# GN target: //protos/perfetto/trace/ps:zero
3237perfetto_proto_library(
3238 name = "protos_perfetto_trace_ps_protos",
3239 srcs = [
3240 "protos/perfetto/trace/ps/process_stats.proto",
3241 "protos/perfetto/trace/ps/process_tree.proto",
3242 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003243 visibility = [
3244 PERFETTO_CONFIG.proto_library_visibility,
3245 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003246)
3247
3248# GN target: //protos/perfetto/trace/ps:zero
3249perfetto_cc_protozero_library(
3250 name = "protos_perfetto_trace_ps_zero",
3251 deps = [
3252 ":protos_perfetto_trace_ps_protos",
3253 ],
3254)
3255
3256# GN target: //protos/perfetto/trace/sys_stats:lite
3257perfetto_cc_proto_library(
3258 name = "protos_perfetto_trace_sys_stats_lite",
3259 deps = [
3260 ":protos_perfetto_trace_sys_stats_protos",
3261 ],
3262)
3263
3264# GN target: //protos/perfetto/trace/sys_stats:zero
3265perfetto_proto_library(
3266 name = "protos_perfetto_trace_sys_stats_protos",
3267 srcs = [
3268 "protos/perfetto/trace/sys_stats/sys_stats.proto",
3269 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003270 visibility = [
3271 PERFETTO_CONFIG.proto_library_visibility,
3272 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003273 deps = [
3274 ":protos_perfetto_common_protos",
3275 ],
3276)
3277
3278# GN target: //protos/perfetto/trace/sys_stats:zero
3279perfetto_cc_protozero_library(
3280 name = "protos_perfetto_trace_sys_stats_zero",
3281 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003282 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003283 ":protos_perfetto_trace_sys_stats_protos",
3284 ],
3285)
3286
Rafal Slawikb013a112020-04-03 16:12:02 +01003287# GN target: //protos/perfetto/trace/system_info:lite
3288perfetto_cc_proto_library(
3289 name = "protos_perfetto_trace_system_info_lite",
3290 deps = [
3291 ":protos_perfetto_trace_system_info_protos",
3292 ],
3293)
3294
3295# GN target: //protos/perfetto/trace/system_info:zero
3296perfetto_proto_library(
3297 name = "protos_perfetto_trace_system_info_protos",
3298 srcs = [
3299 "protos/perfetto/trace/system_info/cpu_info.proto",
3300 ],
3301 visibility = [
3302 PERFETTO_CONFIG.proto_library_visibility,
3303 ],
3304)
3305
3306# GN target: //protos/perfetto/trace/system_info:zero
3307perfetto_cc_protozero_library(
3308 name = "protos_perfetto_trace_system_info_zero",
3309 deps = [
3310 ":protos_perfetto_trace_system_info_protos",
3311 ],
3312)
3313
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003314# GN target: //protos/perfetto/trace/track_event:cpp
3315perfetto_cc_protocpp_library(
3316 name = "protos_perfetto_trace_track_event_cpp",
3317 deps = [
3318 ":protos_perfetto_trace_track_event_protos",
3319 ],
3320)
3321
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003322# GN target: //protos/perfetto/trace/track_event:lite
3323perfetto_cc_proto_library(
3324 name = "protos_perfetto_trace_track_event_lite",
3325 deps = [
3326 ":protos_perfetto_trace_track_event_protos",
3327 ],
3328)
3329
3330# GN target: //protos/perfetto/trace/track_event:zero
3331perfetto_proto_library(
3332 name = "protos_perfetto_trace_track_event_protos",
3333 srcs = [
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08003334 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00003335 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08003336 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04003337 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08003338 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003339 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00003340 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003341 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07003342 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07003343 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003344 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01003345 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003346 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003347 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07003348 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00003349 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003350 "protos/perfetto/trace/track_event/debug_annotation.proto",
3351 "protos/perfetto/trace/track_event/log_message.proto",
3352 "protos/perfetto/trace/track_event/process_descriptor.proto",
3353 "protos/perfetto/trace/track_event/source_location.proto",
3354 "protos/perfetto/trace/track_event/task_execution.proto",
3355 "protos/perfetto/trace/track_event/thread_descriptor.proto",
3356 "protos/perfetto/trace/track_event/track_descriptor.proto",
3357 "protos/perfetto/trace/track_event/track_event.proto",
3358 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003359 visibility = [
3360 PERFETTO_CONFIG.proto_library_visibility,
3361 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003362)
3363
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003364# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3365perfetto_proto_descriptor(
3366 name = "protos_perfetto_trace_track_event_track_event_descriptor",
3367 deps = [
3368 ":protos_perfetto_trace_track_event_track_event_protos",
3369 ],
3370 outs = [
3371 "protos_perfetto_trace_track_event_track_event_descriptor.bin",
3372 ],
3373)
3374
3375# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3376perfetto_proto_library(
3377 name = "protos_perfetto_trace_track_event_track_event_protos",
3378 srcs = [
3379 "protos/perfetto/trace/track_event/track_event.proto",
3380 ],
3381 visibility = [
3382 PERFETTO_CONFIG.proto_library_visibility,
3383 ],
3384 deps = [
3385 ":protos_perfetto_trace_track_event_protos",
3386 ],
3387)
3388
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003389# GN target: //protos/perfetto/trace/track_event:zero
3390perfetto_cc_protozero_library(
3391 name = "protos_perfetto_trace_track_event_zero",
3392 deps = [
3393 ":protos_perfetto_trace_track_event_protos",
3394 ],
3395)
3396
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003397# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3398perfetto_proto_descriptor(
3399 name = "protos_third_party_chromium_chrome_track_event_descriptor",
3400 deps = [
3401 ":protos_third_party_chromium_chrome_track_event_protos",
3402 ],
3403 outs = [
3404 "protos_third_party_chromium_chrome_track_event_descriptor.bin",
3405 ],
3406)
3407
3408# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3409perfetto_proto_library(
3410 name = "protos_third_party_chromium_chrome_track_event_protos",
3411 srcs = [
3412 "protos/third_party/chromium/chrome_track_event.proto",
3413 ],
3414 visibility = [
3415 PERFETTO_CONFIG.proto_library_visibility,
3416 ],
3417 deps = [
3418 ":protos_perfetto_trace_track_event_protos",
3419 ],
3420)
3421
ssid3d81d4d2021-06-21 16:08:02 -07003422# GN target: //protos/third_party/chromium:lite
3423perfetto_cc_proto_library(
3424 name = "protos_third_party_chromium_lite",
3425 deps = [
3426 ":protos_third_party_chromium_protos",
3427 ],
3428)
3429
3430# GN target: //protos/third_party/chromium:lite
3431perfetto_proto_library(
3432 name = "protos_third_party_chromium_protos",
3433 srcs = [
3434 "protos/third_party/chromium/chrome_track_event.proto",
3435 ],
3436 visibility = PERFETTO_CONFIG.public_visibility,
3437 deps = [
3438 ":protos_perfetto_trace_track_event_protos",
3439 ],
3440)
3441
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003442# GN target: //protos/third_party/pprof:zero
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003443perfetto_proto_library(
3444 name = "protos_third_party_pprof_protos",
3445 srcs = [
3446 "protos/third_party/pprof/profile.proto",
3447 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003448 visibility = [
3449 PERFETTO_CONFIG.proto_library_visibility,
3450 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003451)
3452
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003453# GN target: //protos/third_party/pprof:zero
3454perfetto_cc_protozero_library(
3455 name = "protos_third_party_pprof_zero",
3456 deps = [
3457 ":protos_third_party_pprof_protos",
3458 ],
3459)
3460
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003461# GN target: //src/perfetto_cmd:protos
Hector Dearman040f9582019-12-03 18:06:33 +00003462perfetto_cc_protocpp_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003463 name = "src_perfetto_cmd_protos",
3464 deps = [
3465 ":src_perfetto_cmd_protos_protos",
3466 ],
3467)
3468
3469# GN target: //src/perfetto_cmd:protos
3470perfetto_proto_library(
3471 name = "src_perfetto_cmd_protos_protos",
3472 srcs = [
3473 "src/perfetto_cmd/perfetto_cmd_state.proto",
3474 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003475 visibility = [
3476 PERFETTO_CONFIG.proto_library_visibility,
3477 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003478)
3479
Primiano Tucci1d409982019-09-19 10:15:18 +01003480# ##############################################################################
3481# Public targets
3482# ##############################################################################
3483
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003484# GN target: //:libperfetto_client_experimental
3485perfetto_cc_library(
3486 name = "libperfetto_client_experimental",
3487 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00003488 ":src_android_stats_android_stats",
3489 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01003490 ":src_protozero_filtering_bytecode_common",
3491 ":src_protozero_filtering_bytecode_parser",
3492 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00003493 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003494 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003495 ":src_tracing_core_core",
3496 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00003497 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003498 ":src_tracing_ipc_common",
3499 ":src_tracing_ipc_consumer_consumer",
3500 ":src_tracing_ipc_producer_producer",
3501 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01003502 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00003503 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003504 ],
3505 hdrs = [
3506 ":include_perfetto_base_base",
3507 ":include_perfetto_ext_base_base",
3508 ":include_perfetto_ext_ipc_ipc",
3509 ":include_perfetto_ext_tracing_core_core",
3510 ":include_perfetto_ext_tracing_ipc_ipc",
3511 ":include_perfetto_protozero_protozero",
3512 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003513 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003514 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00003515 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003516 ],
3517 visibility = [
3518 "//visibility:public",
3519 ],
3520 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003521 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003522 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003523 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003524 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003525 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003526 ":protos_perfetto_config_cpp",
3527 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003528 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003529 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003530 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003531 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003532 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003533 ":protos_perfetto_config_interceptors_cpp",
3534 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003535 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003536 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003537 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003538 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003539 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003540 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003541 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003542 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003543 ":protos_perfetto_config_track_event_cpp",
3544 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003545 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003546 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003547 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003548 ":protos_perfetto_trace_android_zero",
3549 ":protos_perfetto_trace_chrome_zero",
3550 ":protos_perfetto_trace_filesystem_zero",
3551 ":protos_perfetto_trace_ftrace_zero",
3552 ":protos_perfetto_trace_gpu_zero",
3553 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003554 ":protos_perfetto_trace_minimal_zero",
3555 ":protos_perfetto_trace_non_minimal_zero",
3556 ":protos_perfetto_trace_perfetto_zero",
3557 ":protos_perfetto_trace_power_zero",
3558 ":protos_perfetto_trace_profiling_zero",
3559 ":protos_perfetto_trace_ps_zero",
3560 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003561 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003562 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003563 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003564 ":protozero",
3565 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003566 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003567 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003568)
3569
Primiano Tucci1d409982019-09-19 10:15:18 +01003570# GN target: //src/perfetto_cmd:perfetto
3571perfetto_cc_binary(
3572 name = "perfetto",
3573 srcs = [
3574 ":include_perfetto_base_base",
3575 ":include_perfetto_ext_base_base",
3576 ":include_perfetto_ext_ipc_ipc",
3577 ":include_perfetto_ext_traced_traced",
3578 ":include_perfetto_ext_tracing_core_core",
3579 ":include_perfetto_ext_tracing_ipc_ipc",
3580 ":include_perfetto_protozero_protozero",
3581 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003582 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01003583 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00003584 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00003585 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01003586 ":src_perfetto_cmd_perfetto_cmd",
3587 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003588 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003589 ":src_tracing_core_core",
3590 ":src_tracing_ipc_common",
3591 ":src_tracing_ipc_consumer_consumer",
3592 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003593 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003594 ],
3595 visibility = [
3596 "//visibility:public",
3597 ],
3598 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003599 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003600 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003601 ":protos_perfetto_common_zero",
3602 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003603 ":protos_perfetto_config_android_zero",
3604 ":protos_perfetto_config_cpp",
3605 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003606 ":protos_perfetto_config_ftrace_zero",
3607 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003608 ":protos_perfetto_config_gpu_zero",
3609 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003610 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003611 ":protos_perfetto_config_interceptors_cpp",
3612 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003613 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003614 ":protos_perfetto_config_power_zero",
3615 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003616 ":protos_perfetto_config_process_stats_zero",
3617 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003618 ":protos_perfetto_config_profiling_zero",
3619 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003620 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003621 ":protos_perfetto_config_track_event_cpp",
3622 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003623 ":protos_perfetto_config_zero",
3624 ":protos_perfetto_ipc_cpp",
3625 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003626 ":protos_perfetto_trace_android_zero",
3627 ":protos_perfetto_trace_chrome_zero",
3628 ":protos_perfetto_trace_filesystem_zero",
3629 ":protos_perfetto_trace_ftrace_zero",
3630 ":protos_perfetto_trace_gpu_zero",
3631 ":protos_perfetto_trace_interned_data_zero",
3632 ":protos_perfetto_trace_minimal_zero",
3633 ":protos_perfetto_trace_non_minimal_zero",
3634 ":protos_perfetto_trace_perfetto_zero",
3635 ":protos_perfetto_trace_power_zero",
3636 ":protos_perfetto_trace_profiling_zero",
3637 ":protos_perfetto_trace_ps_zero",
3638 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003639 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003640 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003641 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003642 ":protozero",
3643 ":src_base_base",
Lalit Maganti2939c082021-03-11 17:25:44 +00003644 ":src_perfetto_cmd_gen_cc_config_descriptor",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003645 ":src_perfetto_cmd_protos",
3646 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01003647)
3648
3649# GN target: //src/trace_processor:trace_processor
3650perfetto_cc_library(
3651 name = "trace_processor",
3652 srcs = [
Lalit Maganti97d7d472020-04-07 18:49:17 +01003653 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003654 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003655 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003656 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003657 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003658 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003659 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003660 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01003661 ":src_trace_processor_metrics_lib",
3662 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003663 ":src_trace_processor_storage_full",
3664 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003665 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003666 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003667 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003668 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003669 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003670 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003671 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003672 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003673 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003674 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003675 ],
3676 hdrs = [
3677 ":include_perfetto_base_base",
3678 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003679 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003680 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003681 ":include_perfetto_ext_traced_sys_stats_counters",
Eric Secklera7870e62019-11-01 10:11:58 +00003682 ":include_perfetto_trace_processor_basic_types",
3683 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003684 ":include_perfetto_trace_processor_trace_processor",
3685 ],
3686 visibility = [
3687 "//visibility:public",
3688 ],
3689 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003690 ":protos_perfetto_common_zero",
3691 ":protos_perfetto_config_android_zero",
3692 ":protos_perfetto_config_ftrace_zero",
3693 ":protos_perfetto_config_gpu_zero",
3694 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003695 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003696 ":protos_perfetto_config_power_zero",
3697 ":protos_perfetto_config_process_stats_zero",
3698 ":protos_perfetto_config_profiling_zero",
3699 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003700 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003701 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003702 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003703 ":protos_perfetto_trace_chrome_zero",
3704 ":protos_perfetto_trace_filesystem_zero",
3705 ":protos_perfetto_trace_ftrace_zero",
3706 ":protos_perfetto_trace_gpu_zero",
3707 ":protos_perfetto_trace_interned_data_zero",
3708 ":protos_perfetto_trace_minimal_zero",
3709 ":protos_perfetto_trace_non_minimal_zero",
3710 ":protos_perfetto_trace_perfetto_zero",
3711 ":protos_perfetto_trace_power_zero",
3712 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003713 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003714 ":protos_perfetto_trace_profiling_zero",
3715 ":protos_perfetto_trace_ps_zero",
3716 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003717 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003718 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003719 ":protozero",
3720 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003721 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003722 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003723 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003724 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003725 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003726 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003727 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003728 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003729 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3730 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003731 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003732 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003733 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003734)
3735
3736# GN target: //src/trace_processor:trace_processor_shell
3737perfetto_cc_binary(
3738 name = "trace_processor_shell",
3739 srcs = [
3740 ":include_perfetto_base_base",
3741 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003742 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003743 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003744 ":include_perfetto_ext_traced_sys_stats_counters",
3745 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003746 ":include_perfetto_trace_processor_basic_types",
3747 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003748 ":include_perfetto_trace_processor_trace_processor",
Florian Mayerf4255a42020-12-14 19:12:34 +00003749 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003750 ":src_profiling_symbolizer_symbolize_database",
3751 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01003752 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003753 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003754 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003755 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003756 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003757 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003758 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003759 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003760 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01003761 ":src_trace_processor_metrics_lib",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003762 ":src_trace_processor_rpc_httpd",
3763 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003764 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003765 ":src_trace_processor_storage_full",
3766 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003767 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003768 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003769 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003770 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003771 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003772 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003773 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003774 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003775 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003776 ":src_trace_processor_util_util",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003777 "src/trace_processor/trace_processor_shell.cc",
3778 "src/trace_processor/util/proto_to_json.cc",
3779 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003780 ],
3781 visibility = [
3782 "//visibility:public",
3783 ],
3784 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003785 ":protos_perfetto_common_zero",
3786 ":protos_perfetto_config_android_zero",
3787 ":protos_perfetto_config_ftrace_zero",
3788 ":protos_perfetto_config_gpu_zero",
3789 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003790 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003791 ":protos_perfetto_config_power_zero",
3792 ":protos_perfetto_config_process_stats_zero",
3793 ":protos_perfetto_config_profiling_zero",
3794 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003795 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003796 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003797 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003798 ":protos_perfetto_trace_chrome_zero",
3799 ":protos_perfetto_trace_filesystem_zero",
3800 ":protos_perfetto_trace_ftrace_zero",
3801 ":protos_perfetto_trace_gpu_zero",
3802 ":protos_perfetto_trace_interned_data_zero",
3803 ":protos_perfetto_trace_minimal_zero",
3804 ":protos_perfetto_trace_non_minimal_zero",
3805 ":protos_perfetto_trace_perfetto_zero",
3806 ":protos_perfetto_trace_power_zero",
3807 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003808 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003809 ":protos_perfetto_trace_profiling_zero",
3810 ":protos_perfetto_trace_ps_zero",
3811 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003812 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003813 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003814 ":protozero",
3815 ":src_base_base",
3816 ":src_base_unix_socket",
Ryan7ad6b7d2021-04-22 17:03:54 +01003817 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003818 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003819 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003820 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003821 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003822 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003823 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003824 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003825 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003826 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003827 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3828 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003829 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003830 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003831)
3832
3833# GN target: //src/traced/probes:traced_probes
3834perfetto_cc_binary(
3835 name = "traced_probes",
3836 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003837 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003838 "src/traced/probes/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003839 ],
3840 visibility = [
3841 "//visibility:public",
3842 ],
3843 deps = [
3844 ":libperfetto",
3845 ],
3846)
3847
3848# GN target: //src/traced/service:traced
3849perfetto_cc_binary(
3850 name = "traced",
3851 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003852 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003853 "src/traced/service/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003854 ],
3855 visibility = [
3856 "//visibility:public",
3857 ],
3858 deps = [
3859 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003860 ],
3861)
3862
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003863# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003864perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003865 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003866 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003867 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003868 ":src_profiling_symbolizer_symbolize_database",
3869 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003870 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003871 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003872 ],
3873 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003874 ":include_perfetto_base_base",
3875 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003876 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003877 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003878 ":include_perfetto_trace_processor_basic_types",
3879 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003880 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003881 ],
3882 visibility = [
3883 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003884 ],
3885 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003886 ":protos_perfetto_common_zero",
3887 ":protos_perfetto_config_android_zero",
3888 ":protos_perfetto_config_ftrace_zero",
3889 ":protos_perfetto_config_gpu_zero",
3890 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003891 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003892 ":protos_perfetto_config_power_zero",
3893 ":protos_perfetto_config_process_stats_zero",
3894 ":protos_perfetto_config_profiling_zero",
3895 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003896 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003897 ":protos_perfetto_config_zero",
3898 ":protos_perfetto_trace_android_zero",
3899 ":protos_perfetto_trace_chrome_zero",
3900 ":protos_perfetto_trace_filesystem_zero",
3901 ":protos_perfetto_trace_ftrace_zero",
3902 ":protos_perfetto_trace_gpu_zero",
3903 ":protos_perfetto_trace_interned_data_zero",
3904 ":protos_perfetto_trace_minimal_zero",
3905 ":protos_perfetto_trace_non_minimal_zero",
3906 ":protos_perfetto_trace_perfetto_zero",
3907 ":protos_perfetto_trace_power_zero",
3908 ":protos_perfetto_trace_profiling_zero",
3909 ":protos_perfetto_trace_ps_zero",
3910 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003911 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003912 ":protos_perfetto_trace_track_event_zero",
3913 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00003914 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01003915 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003916 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003917 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003918)
3919
Lalit Maganti65600342019-09-19 21:35:35 +01003920# GN target: //tools/trace_to_text:trace_to_text
3921perfetto_cc_binary(
3922 name = "trace_to_text",
3923 srcs = [
3924 ":include_perfetto_base_base",
3925 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003926 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003927 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01003928 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003929 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003930 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003931 ":include_perfetto_trace_processor_basic_types",
3932 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003933 ":include_perfetto_trace_processor_trace_processor",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003934 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003935 ":src_profiling_symbolizer_symbolize_database",
3936 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01003937 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003938 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003939 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003940 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003941 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003942 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003943 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti65600342019-09-19 21:35:35 +01003944 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003945 ":src_trace_processor_metatrace",
Lalit Maganti65600342019-09-19 21:35:35 +01003946 ":src_trace_processor_metrics_lib",
3947 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003948 ":src_trace_processor_storage_full",
3949 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003950 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003951 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003952 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003953 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003954 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003955 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003956 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003957 ":src_trace_processor_util_protozero_to_text",
Alexander Timin97d87852021-05-17 18:01:33 +00003958 ":src_trace_processor_util_trace_blob_view",
Lalit Magantie7107402020-04-15 13:41:12 +01003959 ":src_trace_processor_util_util",
Lalit Maganti65600342019-09-19 21:35:35 +01003960 ":tools_trace_to_text_common",
3961 ":tools_trace_to_text_full",
Lalit Maganti65600342019-09-19 21:35:35 +01003962 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01003963 ":tools_trace_to_text_utils",
3964 ],
3965 visibility = [
3966 "//visibility:public",
3967 ],
3968 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003969 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003970 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003971 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003972 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003973 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003974 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003975 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003976 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003977 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003978 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003979 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003980 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003981 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003982 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003983 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003984 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003985 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003986 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003987 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003988 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003989 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003990 ":protos_perfetto_trace_power_zero",
3991 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003992 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003993 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003994 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003995 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003996 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003997 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003998 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003999 ":protozero",
4000 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004001 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004002 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01004003 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00004004 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004005 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004006 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01004007 ":tools_trace_to_text_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004008 ] + PERFETTO_CONFIG.deps.jsoncpp +
4009 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01004010 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004011 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
4012 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01004013 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01004014 ],
4015)
4016
Primiano Tucci1d409982019-09-19 10:15:18 +01004017# Content from BUILD.extras
4018
4019build_config_dir_ = "include/perfetto/base/build_configs/bazel"
4020
4021# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
4022# This is pulled as a default dep by all targets.
Primiano Tucci02c11762019-08-30 00:57:59 +02004023cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01004024 name = "build_config_hdr",
4025 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
4026 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02004027)
4028
Primiano Tucci1d409982019-09-19 10:15:18 +01004029perfetto_cc_library(
4030 name = "cc_merged_sql_metrics",
4031 hdrs = ["src/trace_processor/metrics/sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02004032)
4033
Primiano Tucci1d409982019-09-19 10:15:18 +01004034perfetto_py_binary(
Lalit Maganticaac9922019-05-01 10:40:53 +01004035 name = "gen_merged_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004036 srcs = [
Lalit Magantiab619fa2019-05-02 12:56:37 +01004037 "tools/gen_merged_sql_metrics.py",
4038 ],
4039 main = "tools/gen_merged_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01004040 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004041)
Lalit Maganti65600342019-09-19 21:35:35 +01004042
Lalit Maganti117272f2020-09-11 14:01:18 +01004043perfetto_py_binary(
4044 name = "gen_cc_proto_descriptor_py",
4045 srcs = [
4046 "tools/gen_cc_proto_descriptor.py",
4047 ],
4048 main = "tools/gen_cc_proto_descriptor.py",
4049 python_version = "PY3",
4050)
4051
Lalit Maganti65600342019-09-19 21:35:35 +01004052perfetto_java_proto_library(
4053 name = "protos_perfetto_metrics_java",
4054 deps = [
4055 ":protos_perfetto_metrics_protos",
4056 ],
4057)
4058
4059perfetto_java_proto_library(
4060 name = "protos_perfetto_metrics_android_java",
4061 deps = [
4062 ":protos_perfetto_metrics_android_protos",
4063 ],
4064)
4065
Lalit Magantic3187f82019-09-20 14:51:11 +01004066perfetto_java_proto_library(
4067 name = "protos_perfetto_trace_merged_trace_java",
4068 deps = [
4069 ":protos_perfetto_trace_merged_trace_protos",
4070 ],
4071)
4072
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004073perfetto_java_proto_library(
Hector Dearman41fb1812020-04-29 11:28:09 +01004074 name = "protos_perfetto_config_merged_config_java",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004075 deps = [
Hector Dearman41fb1812020-04-29 11:28:09 +01004076 ":protos_perfetto_config_merged_config_protos",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004077 ],
4078)
4079
Lalit Maganti46e2bda2020-05-06 12:51:33 +01004080perfetto_java_lite_proto_library(
4081 name = "protos_perfetto_config_merged_config_java_lite",
4082 deps = [
4083 ":protos_perfetto_config_merged_config_protos",
4084 ],
4085)
4086
Lalit Maganti65600342019-09-19 21:35:35 +01004087perfetto_gensignature_internal_only(
4088 name = "trace_processor_sig",
4089 srcs = [
4090 ":trace_processor_shell",
4091 ":trace_to_text",
4092 ],
4093 tags = [
4094 "__TRACE_PROCESSOR_SIG_TAG1",
4095 "__TRACE_PROCESSOR_SIG_TAG2",
4096 ],
4097)
Anindita Ghosh237a7762020-06-30 10:46:52 +00004098
Primiano Tucciec590132020-11-16 14:16:44 +01004099# This is overridden in google internal builds via
4100# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
4101perfetto_cc_library(
4102 name = "cc_perfetto_version_header",
4103 hdrs = ["perfetto_version.gen.h"],
4104)
4105
4106perfetto_py_binary(
4107 name = "gen_version_header_py",
4108 srcs = ["tools/write_version_header.py"],
4109 data = ["CHANGELOG"],
4110 main = "tools/write_version_header.py",
4111 python_version = "PY3",
4112)
4113
Anindita Ghosh237a7762020-06-30 10:46:52 +00004114perfetto_py_binary(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004115 name = "trace_processor_py_example",
4116 srcs = ["src/trace_processor/python/example.py"],
Lalit Maganti471dec32021-08-16 14:38:42 +01004117 deps = [":trace_processor_py"] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti82a2c042020-07-06 13:50:33 +01004118 main = "src/trace_processor/python/example.py",
Anindita Ghosh237a7762020-06-30 10:46:52 +00004119 python_version = "PY3",
4120)
4121
4122perfetto_py_library(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004123 name = "trace_processor_py",
Anindita Ghosh456261f2020-09-07 11:31:24 +01004124 srcs = glob(["src/trace_processor/python/perfetto/trace_processor/*.py"]),
Anindita Ghosh152562f2020-07-08 20:29:56 +00004125 data = [
Anindita Ghosh456261f2020-09-07 11:31:24 +01004126 "src/trace_processor/python/perfetto/trace_processor/trace_processor.descriptor",
4127 "src/trace_processor/python/perfetto/trace_processor/metrics.descriptor",
Anindita Ghosh7887c762020-07-20 16:35:15 +00004128 ":trace_processor_shell",
Lalit Maganti471dec32021-08-16 14:38:42 +01004129 ] + PERFETTO_CONFIG.deps.tp_init_py,
4130 deps = PERFETTO_CONFIG.deps.gfile_py +
4131 PERFETTO_CONFIG.deps.protobuf_py +
4132 PERFETTO_CONFIG.deps.protobuf_descriptor_pb2_py +
4133 PERFETTO_CONFIG.deps.pyglib_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004134 imports = [
4135 "src/trace_processor/python",
4136 ],
Lalit Maganti17a56fe2021-02-19 19:04:07 +00004137 visibility = PERFETTO_CONFIG.public_visibility,
Anindita Ghosh237a7762020-06-30 10:46:52 +00004138)
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004139
4140perfetto_py_library(
4141 name = "experimental_slice_breakdown_lib",
4142 srcs = glob(["tools/slice_breakdown/perfetto/slice_breakdown/*.py"]),
4143 deps = [
4144 ":trace_processor_py",
4145 ],
4146 imports = [
4147 "tools/slice_breakdown",
4148 ],
4149)
4150
4151perfetto_py_binary(
4152 name = "experimental_slice_breakdown_bin",
Lalit Maganti471dec32021-08-16 14:38:42 +01004153 srcs = ["tools/slice_breakdown/main.py"],
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004154 main = "tools/slice_breakdown/main.py",
4155 deps = [
4156 ":experimental_slice_breakdown_lib",
4157 ":trace_processor_py",
Lalit Maganti471dec32021-08-16 14:38:42 +01004158 ] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004159 python_version = "PY3",
4160 legacy_create_init = 0,
4161)