blob: 4091051b37c0ba5c109ec1dd04c7c28d27309892 [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",
Harvey Yang321c4fc2021-10-25 14:11:50 +080020 "perfetto_build_config_cc_library",
Lalit Magantie277dcb2022-11-09 15:57:58 +000021 "perfetto_cc_amalgamated_sql",
Primiano Tucci1d409982019-09-19 10:15:18 +010022 "perfetto_cc_binary",
23 "perfetto_cc_ipc_library",
24 "perfetto_cc_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010025 "perfetto_cc_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010026 "perfetto_cc_proto_library",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010027 "perfetto_cc_protocpp_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010028 "perfetto_cc_protozero_library",
Lalit Maganti3dc8e302022-12-01 20:32:46 +000029 "perfetto_cc_tp_tables",
Lalit Maganti88e64de2022-11-21 18:29:57 +000030 "perfetto_filegroup",
31 "perfetto_genrule",
Lalit Maganti225ae652022-06-27 21:28:21 +010032 "perfetto_go_proto_library",
Lalit Maganti46e2bda2020-05-06 12:51:33 +010033 "perfetto_java_lite_proto_library",
Lalit Maganti88e64de2022-11-21 18:29:57 +000034 "perfetto_java_proto_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010035 "perfetto_proto_descriptor",
Lalit Maganti88e64de2022-11-21 18:29:57 +000036 "perfetto_proto_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010037 "perfetto_py_binary",
Anindita Ghosh237a7762020-06-30 10:46:52 +000038 "perfetto_py_library",
Lalit Maganti06f638c2022-04-01 18:44:14 +010039 "perfetto_py_proto_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010040)
Lalit Maganti279ecde2019-04-01 16:57:12 +010041
Lalit Maganti3dc8e302022-12-01 20:32:46 +000042package(default_visibility = [PERFETTO_CONFIG.root + ":__subpackages__"])
Lalit Maganti279ecde2019-04-01 16:57:12 +010043
Lalit Magantibb037f72019-09-24 16:22:45 +010044licenses(["notice"])
Lalit Maganti65600342019-09-19 21:35:35 +010045
46exports_files(["NOTICE"])
Lalit Magantia48710d2019-09-24 13:10:11 +010047
Primiano Tucci1d409982019-09-19 10:15:18 +010048# ##############################################################################
49# Internal targets
50# ##############################################################################
Lalit Maganti279ecde2019-04-01 16:57:12 +010051
Lalit Maganti52f13362023-01-23 16:38:01 +000052# GN target: //src/base:perfetto_base_default_platform
53perfetto_cc_library(
54 name = "perfetto_base_default_platform",
55 srcs = [
56 "src/base/default_platform.cc",
57 ],
58 hdrs = [
59 ":include_perfetto_base_base",
60 ":include_perfetto_ext_base_base",
61 ":include_perfetto_public_abi_base",
62 ":include_perfetto_public_base",
63 ],
64 linkstatic = True,
65)
66
Primiano Tucci1d409982019-09-19 10:15:18 +010067# GN target: //src/ipc/protoc_plugin:ipc_plugin
68perfetto_cc_binary(
69 name = "ipc_plugin",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010070 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010071 "src/ipc/protoc_plugin/ipc_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010072 ],
73 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020074 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +010075 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +010076)
77
78# GN target: //src/ipc:perfetto_ipc
79perfetto_cc_library(
80 name = "perfetto_ipc",
81 srcs = [
Primiano Tuccic4c063b2020-01-27 09:34:46 +000082 ":src_ipc_client",
83 ":src_ipc_common",
84 ":src_ipc_host",
Primiano Tucci1d409982019-09-19 10:15:18 +010085 ],
86 hdrs = [
87 ":include_perfetto_base_base",
88 ":include_perfetto_ext_base_base",
89 ":include_perfetto_ext_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +000090 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +010091 ":include_perfetto_public_abi_base",
92 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +000093 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +010094 ],
95 deps = [
Primiano Tuccib3e08d02019-11-19 11:10:11 +000096 ":protos_perfetto_ipc_wire_protocol_cpp",
Primiano Tucci916f4e52020-10-16 20:40:33 +020097 ":src_base_base",
98 ":src_base_unix_socket",
Primiano Tuccie8020f92019-11-26 13:24:01 +000099 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000100 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100101)
102
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100103# GN target: //src/protozero/protoc_plugin:cppgen_plugin
104perfetto_cc_binary(
105 name = "cppgen_plugin",
106 srcs = [
107 "src/protozero/protoc_plugin/cppgen_plugin.cc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100108 ],
109 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200110 ":src_base_base",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100111 ] + PERFETTO_CONFIG.deps.protoc_lib,
112)
113
Primiano Tucci1d409982019-09-19 10:15:18 +0100114# GN target: //src/protozero/protoc_plugin:protozero_plugin
115perfetto_cc_binary(
116 name = "protozero_plugin",
117 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +0100118 "src/protozero/protoc_plugin/protozero_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100119 ],
120 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200121 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +0100122 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +0100123)
124
Primiano Tucci916f4e52020-10-16 20:40:33 +0200125# GN target: //src/protozero:protozero
Primiano Tucci1d409982019-09-19 10:15:18 +0100126perfetto_cc_library(
Primiano Tucci916f4e52020-10-16 20:40:33 +0200127 name = "protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100128 srcs = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200129 "src/protozero/field.cc",
Daniele Di Proiettoa8559af2022-12-15 16:20:17 +0000130 "src/protozero/gen_field_helpers.cc",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200131 "src/protozero/message.cc",
132 "src/protozero/message_arena.cc",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200133 "src/protozero/packed_repeated_fields.cc",
134 "src/protozero/proto_decoder.cc",
135 "src/protozero/scattered_heap_buffer.cc",
136 "src/protozero/scattered_stream_null_delegate.cc",
137 "src/protozero/scattered_stream_writer.cc",
138 "src/protozero/static_buffer.cc",
139 "src/protozero/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100140 ],
141 hdrs = [
142 ":include_perfetto_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100143 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100144 ":include_perfetto_public_abi_base",
145 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000146 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100147 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200148 deps = [
149 ":src_base_base",
150 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000151 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100152)
153
Hector Dearman772a7e02022-05-12 15:47:54 +0100154# GN target: //src/tools/proto_filter:proto_filter
155perfetto_cc_binary(
156 name = "proto_filter",
157 srcs = [
158 ":src_protozero_filtering_bytecode_common",
159 ":src_protozero_filtering_bytecode_generator",
160 ":src_protozero_filtering_bytecode_parser",
161 ":src_protozero_filtering_filter_util",
162 ":src_protozero_filtering_message_filter",
163 "src/tools/proto_filter/proto_filter.cc",
164 ],
165 deps = [
166 ":protozero",
167 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100168 ":src_base_version",
Hector Dearman772a7e02022-05-12 15:47:54 +0100169 ] + PERFETTO_CONFIG.deps.protobuf_full,
170)
171
172# GN target: //src/tools/proto_merger:proto_merger
173perfetto_cc_binary(
174 name = "proto_merger",
175 srcs = [
176 "src/tools/proto_merger/allowlist.cc",
177 "src/tools/proto_merger/allowlist.h",
178 "src/tools/proto_merger/main.cc",
179 "src/tools/proto_merger/proto_file.cc",
180 "src/tools/proto_merger/proto_file.h",
181 "src/tools/proto_merger/proto_file_serializer.cc",
182 "src/tools/proto_merger/proto_file_serializer.h",
183 "src/tools/proto_merger/proto_merger.cc",
184 "src/tools/proto_merger/proto_merger.h",
185 ],
186 deps = [
187 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100188 ":src_base_version",
Hector Dearman772a7e02022-05-12 15:47:54 +0100189 ] + PERFETTO_CONFIG.deps.protobuf_full,
190)
191
Lalit Maganti01deefa2019-12-19 14:20:12 +0000192# GN target: //test:client_api_example
193perfetto_cc_binary(
194 name = "client_api_example",
195 srcs = [
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000196 ":include_perfetto_base_base",
197 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100198 ":include_perfetto_public_abi_base",
199 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000200 ":include_perfetto_public_protozero",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000201 ":include_perfetto_tracing_core_forward_decls",
202 ":include_perfetto_tracing_tracing",
Primiano Tucci34bc5592021-02-19 17:53:36 +0100203 "test/client_api_example.cc",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000204 ],
205 deps = [
206 ":libperfetto_client_experimental",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000207 ":protos_perfetto_common_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000208 ":protos_perfetto_common_zero",
209 ":protos_perfetto_config_android_zero",
210 ":protos_perfetto_config_ftrace_zero",
211 ":protos_perfetto_config_gpu_zero",
212 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000213 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000214 ":protos_perfetto_config_power_zero",
215 ":protos_perfetto_config_process_stats_zero",
216 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100217 ":protos_perfetto_config_statsd_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000218 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +0100219 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000220 ":protos_perfetto_config_track_event_cpp",
221 ":protos_perfetto_config_track_event_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000222 ":protos_perfetto_config_zero",
223 ":protos_perfetto_trace_android_zero",
224 ":protos_perfetto_trace_chrome_zero",
225 ":protos_perfetto_trace_filesystem_zero",
226 ":protos_perfetto_trace_ftrace_zero",
227 ":protos_perfetto_trace_gpu_zero",
228 ":protos_perfetto_trace_interned_data_zero",
229 ":protos_perfetto_trace_minimal_zero",
230 ":protos_perfetto_trace_non_minimal_zero",
231 ":protos_perfetto_trace_perfetto_zero",
232 ":protos_perfetto_trace_power_zero",
233 ":protos_perfetto_trace_profiling_zero",
234 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100235 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000236 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100237 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100238 ":protos_perfetto_trace_track_event_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000239 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000240 ":protos_perfetto_trace_translation_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000241 ],
242)
243
Primiano Tucci1d409982019-09-19 10:15:18 +0100244# GN target: //:libperfetto
245perfetto_cc_library(
246 name = "libperfetto",
247 srcs = [
248 ":src_android_internal_headers",
249 ":src_android_internal_lazy_library_loader",
Lalit Magantiea7631b2021-01-13 12:33:55 +0000250 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +0000251 ":src_android_stats_perfetto_atoms",
Ryan Savitskidc218882020-11-16 18:02:02 +0000252 ":src_kallsyms_kallsyms",
Ryan Zuklieec18eb32022-07-25 15:51:59 -0700253 ":src_kernel_utils_syscall_table",
Primiano Tuccif18ab812021-05-14 23:01:19 +0100254 ":src_protozero_filtering_bytecode_common",
255 ":src_protozero_filtering_bytecode_parser",
256 ":src_protozero_filtering_message_filter",
Hector Dearman09db5b02022-07-11 13:35:23 +0100257 ":src_protozero_proto_ring_buffer",
Andy Yu2b0a2132022-04-07 16:17:10 -0700258 ":src_traced_probes_android_game_intervention_list_android_game_intervention_list",
Primiano Tucci1d409982019-09-19 10:15:18 +0100259 ":src_traced_probes_android_log_android_log",
Simon MacMullenf0a6b382022-07-06 16:35:55 +0000260 ":src_traced_probes_android_system_property_android_system_property",
Rafal Slawik8053a682020-04-08 17:26:40 +0100261 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100262 ":src_traced_probes_data_source",
263 ":src_traced_probes_filesystem_filesystem",
Primiano Tucci65a4fb12020-12-21 18:35:15 +0100264 ":src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100265 ":src_traced_probes_ftrace_ftrace",
Ryan Savitskiec35afb2021-01-29 18:39:36 +0000266 ":src_traced_probes_ftrace_ftrace_procfs",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100267 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100268 ":src_traced_probes_metatrace_metatrace",
269 ":src_traced_probes_packages_list_packages_list",
Florian Mayer29e17182020-12-23 10:59:02 +0000270 ":src_traced_probes_packages_list_packages_list_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100271 ":src_traced_probes_power_power",
272 ":src_traced_probes_probes",
273 ":src_traced_probes_probes_src",
274 ":src_traced_probes_ps_ps",
Hector Dearman09db5b02022-07-11 13:35:23 +0100275 ":src_traced_probes_statsd_client_statsd_client",
Primiano Tucci1d409982019-09-19 10:15:18 +0100276 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100277 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100278 ":src_traced_service_service",
279 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000280 ":src_tracing_core_core",
281 ":src_tracing_core_service",
282 ":src_tracing_ipc_common",
Primiano Tucci8761a312021-11-25 17:17:23 +0000283 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000284 ":src_tracing_ipc_producer_producer",
285 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100286 ],
287 hdrs = [
288 ":include_perfetto_base_base",
289 ":include_perfetto_ext_base_base",
290 ":include_perfetto_ext_ipc_ipc",
291 ":include_perfetto_ext_traced_sys_stats_counters",
292 ":include_perfetto_ext_traced_traced",
293 ":include_perfetto_ext_tracing_core_core",
294 ":include_perfetto_ext_tracing_ipc_ipc",
295 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100296 ":include_perfetto_public_abi_base",
297 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000298 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100299 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000300 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100301 ":include_perfetto_tracing_tracing",
302 ],
303 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200304 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100305 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100306 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100307 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100308 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100309 ":protos_perfetto_config_cpp",
310 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100311 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100312 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100313 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100314 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100315 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000316 ":protos_perfetto_config_interceptors_cpp",
317 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100318 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100319 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100320 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100321 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100322 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100323 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100324 ":protos_perfetto_config_statsd_cpp",
325 ":protos_perfetto_config_statsd_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100326 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100327 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +0100328 ":protos_perfetto_config_system_info_cpp",
329 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000330 ":protos_perfetto_config_track_event_cpp",
331 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100332 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000333 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100334 ":protos_perfetto_ipc_ipc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100335 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100336 ":protos_perfetto_trace_chrome_zero",
337 ":protos_perfetto_trace_filesystem_zero",
338 ":protos_perfetto_trace_ftrace_zero",
339 ":protos_perfetto_trace_gpu_zero",
340 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100341 ":protos_perfetto_trace_minimal_zero",
342 ":protos_perfetto_trace_non_minimal_zero",
343 ":protos_perfetto_trace_perfetto_zero",
344 ":protos_perfetto_trace_power_zero",
345 ":protos_perfetto_trace_profiling_zero",
346 ":protos_perfetto_trace_ps_zero",
Hector Dearman09db5b02022-07-11 13:35:23 +0100347 ":protos_perfetto_trace_statsd_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +0100348 ":protos_perfetto_trace_statsd_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100349 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100350 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100351 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100352 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000353 ":protos_perfetto_trace_translation_zero",
Hector Dearman09db5b02022-07-11 13:35:23 +0100354 ":protos_third_party_statsd_config_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200355 ":protozero",
356 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100357 ":src_base_version",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000358 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000359 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100360)
361
362# GN target: //include/perfetto/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800363perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100364 name = "include_perfetto_base_base",
365 srcs = [
366 "include/perfetto/base/build_config.h",
367 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100368 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000369 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100370 "include/perfetto/base/logging.h",
Primiano Tuccif9460fa2020-12-09 01:28:33 +0100371 "include/perfetto/base/platform_handle.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000372 "include/perfetto/base/proc_utils.h",
Primiano Tuccidf440312020-10-30 16:43:58 +0100373 "include/perfetto/base/status.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100374 "include/perfetto/base/task_runner.h",
Alexander Timinba53cc72021-02-05 15:46:57 +0000375 "include/perfetto/base/template_util.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000376 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100377 "include/perfetto/base/time.h",
378 ],
379)
380
Primiano Tucci44a15be2021-11-06 21:40:18 +0000381# GN target: //include/perfetto/ext/base/http:http
382perfetto_filegroup(
383 name = "include_perfetto_ext_base_http_http",
384 srcs = [
385 "include/perfetto/ext/base/http/http_server.h",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000386 "include/perfetto/ext/base/http/sha1.h",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000387 ],
388)
389
Primiano Tucci1d409982019-09-19 10:15:18 +0100390# GN target: //include/perfetto/ext/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800391perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100392 name = "include_perfetto_ext_base_base",
393 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000394 "include/perfetto/ext/base/android_utils.h",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000395 "include/perfetto/ext/base/base64.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100396 "include/perfetto/ext/base/circular_queue.h",
397 "include/perfetto/ext/base/container_annotations.h",
Primiano Tucciab699b72021-10-15 11:53:00 +0100398 "include/perfetto/ext/base/crash_keys.h",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100399 "include/perfetto/ext/base/ctrl_c_handler.h",
Primiano Tucciabbc9fd2020-10-08 22:09:07 +0200400 "include/perfetto/ext/base/endian.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100401 "include/perfetto/ext/base/event_fd.h",
402 "include/perfetto/ext/base/file_utils.h",
Primiano Tuccic986ca12021-11-18 20:51:24 +0000403 "include/perfetto/ext/base/flat_hash_map.h",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100404 "include/perfetto/ext/base/getopt.h",
405 "include/perfetto/ext/base/getopt_compat.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100406 "include/perfetto/ext/base/hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100407 "include/perfetto/ext/base/metatrace.h",
408 "include/perfetto/ext/base/metatrace_events.h",
409 "include/perfetto/ext/base/no_destructor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100410 "include/perfetto/ext/base/paged_memory.h",
Primiano Tuccidac91702021-04-30 15:47:51 +0100411 "include/perfetto/ext/base/periodic_task.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100412 "include/perfetto/ext/base/pipe.h",
Lalit Maganti52f13362023-01-23 16:38:01 +0000413 "include/perfetto/ext/base/platform.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100414 "include/perfetto/ext/base/scoped_file.h",
415 "include/perfetto/ext/base/small_set.h",
Primiano Tucci34abb8d2021-11-16 13:38:01 +0000416 "include/perfetto/ext/base/small_vector.h",
Lalit Maganti8ef27df2023-01-10 21:38:46 +0000417 "include/perfetto/ext/base/status_or.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100418 "include/perfetto/ext/base/string_splitter.h",
419 "include/perfetto/ext/base/string_utils.h",
420 "include/perfetto/ext/base/string_view.h",
421 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000422 "include/perfetto/ext/base/subprocess.h",
Primiano Tuccibc44c3c2022-01-14 12:59:01 +0000423 "include/perfetto/ext/base/sys_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100424 "include/perfetto/ext/base/temp_file.h",
425 "include/perfetto/ext/base/thread_annotations.h",
426 "include/perfetto/ext/base/thread_checker.h",
427 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100428 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100429 "include/perfetto/ext/base/unix_socket.h",
430 "include/perfetto/ext/base/unix_task_runner.h",
431 "include/perfetto/ext/base/utils.h",
432 "include/perfetto/ext/base/uuid.h",
433 "include/perfetto/ext/base/waitable_event.h",
434 "include/perfetto/ext/base/watchdog.h",
435 "include/perfetto/ext/base/watchdog_noop.h",
436 "include/perfetto/ext/base/watchdog_posix.h",
437 "include/perfetto/ext/base/weak_ptr.h",
438 ],
439)
440
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100441# GN target: //include/perfetto/ext/base:version
442perfetto_filegroup(
443 name = "include_perfetto_ext_base_version",
444 srcs = [
445 "include/perfetto/ext/base/version.h",
446 ],
447)
448
Primiano Tucci1d409982019-09-19 10:15:18 +0100449# GN target: //include/perfetto/ext/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800450perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100451 name = "include_perfetto_ext_ipc_ipc",
452 srcs = [
453 "include/perfetto/ext/ipc/async_result.h",
454 "include/perfetto/ext/ipc/basic_types.h",
455 "include/perfetto/ext/ipc/client.h",
456 "include/perfetto/ext/ipc/client_info.h",
457 "include/perfetto/ext/ipc/codegen_helpers.h",
458 "include/perfetto/ext/ipc/deferred.h",
459 "include/perfetto/ext/ipc/host.h",
460 "include/perfetto/ext/ipc/service.h",
461 "include/perfetto/ext/ipc/service_descriptor.h",
462 "include/perfetto/ext/ipc/service_proxy.h",
463 ],
464)
465
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100466# GN target: //include/perfetto/ext/trace_processor/importers/memory_tracker:memory_tracker
Harvey Yang321c4fc2021-10-25 14:11:50 +0800467perfetto_filegroup(
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100468 name = "include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
469 srcs = [
470 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph.h",
471 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h",
472 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_allocator_node_id.h",
473 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_graph_edge.h",
474 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_memory_graph_node.h",
475 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_process_memory_node.h",
476 ],
477)
478
Ryan Savitskie65c4052022-03-24 18:22:19 +0000479# GN target: //include/perfetto/ext/trace_processor:demangle
480perfetto_filegroup(
481 name = "include_perfetto_ext_trace_processor_demangle",
482 srcs = [
483 "include/perfetto/ext/trace_processor/demangle.h",
484 ],
485)
486
Eric Seckler7fb1d232019-10-23 14:42:43 +0100487# GN target: //include/perfetto/ext/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +0800488perfetto_filegroup(
Eric Seckler7fb1d232019-10-23 14:42:43 +0100489 name = "include_perfetto_ext_trace_processor_export_json",
490 srcs = [
491 "include/perfetto/ext/trace_processor/export_json.h",
492 ],
493)
494
Primiano Tucci1d409982019-09-19 10:15:18 +0100495# GN target: //include/perfetto/ext/traced:sys_stats_counters
Harvey Yang321c4fc2021-10-25 14:11:50 +0800496perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100497 name = "include_perfetto_ext_traced_sys_stats_counters",
498 srcs = [
499 "include/perfetto/ext/traced/sys_stats_counters.h",
500 ],
501)
502
503# GN target: //include/perfetto/ext/traced:traced
Harvey Yang321c4fc2021-10-25 14:11:50 +0800504perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100505 name = "include_perfetto_ext_traced_traced",
506 srcs = [
507 "include/perfetto/ext/traced/data_source_types.h",
508 "include/perfetto/ext/traced/traced.h",
509 ],
510)
511
512# GN target: //include/perfetto/ext/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800513perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100514 name = "include_perfetto_ext_tracing_core_core",
515 srcs = [
516 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100517 "include/perfetto/ext/tracing/core/commit_data_request.h",
518 "include/perfetto/ext/tracing/core/consumer.h",
519 "include/perfetto/ext/tracing/core/observable_events.h",
520 "include/perfetto/ext/tracing/core/producer.h",
521 "include/perfetto/ext/tracing/core/shared_memory.h",
522 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
523 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
524 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100525 "include/perfetto/ext/tracing/core/trace_packet.h",
526 "include/perfetto/ext/tracing/core/trace_stats.h",
527 "include/perfetto/ext/tracing/core/trace_writer.h",
528 "include/perfetto/ext/tracing/core/tracing_service.h",
529 ],
530)
531
532# GN target: //include/perfetto/ext/tracing/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800533perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100534 name = "include_perfetto_ext_tracing_ipc_ipc",
535 srcs = [
536 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
537 "include/perfetto/ext/tracing/ipc/default_socket.h",
538 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
539 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
540 ],
541)
542
Florian Mayerbd88ff82019-12-18 16:36:37 +0000543# GN target: //include/perfetto/profiling:pprof_builder
Harvey Yang321c4fc2021-10-25 14:11:50 +0800544perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000545 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100546 srcs = [
547 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100548 ],
549)
550
Primiano Tucci1d409982019-09-19 10:15:18 +0100551# GN target: //include/perfetto/protozero:protozero
Harvey Yang321c4fc2021-10-25 14:11:50 +0800552perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100553 name = "include_perfetto_protozero_protozero",
554 srcs = [
555 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000556 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000557 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100558 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000559 "include/perfetto/protozero/field_writer.h",
Daniele Di Proiettoa8559af2022-12-15 16:20:17 +0000560 "include/perfetto/protozero/gen_field_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100561 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200562 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100563 "include/perfetto/protozero/message_handle.h",
564 "include/perfetto/protozero/packed_repeated_fields.h",
565 "include/perfetto/protozero/proto_decoder.h",
566 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200567 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100568 "include/perfetto/protozero/scattered_heap_buffer.h",
569 "include/perfetto/protozero/scattered_stream_null_delegate.h",
570 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000571 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100572 ],
573)
574
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100575# GN target: //include/perfetto/public/abi:base
576perfetto_filegroup(
577 name = "include_perfetto_public_abi_base",
578 srcs = [
Daniele Di Proietto713ab932022-04-22 15:59:57 +0100579 "include/perfetto/public/abi/atomic.h",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100580 "include/perfetto/public/abi/export.h",
581 ],
582)
583
584# GN target: //include/perfetto/public:base
585perfetto_filegroup(
586 name = "include_perfetto_public_base",
587 srcs = [
588 "include/perfetto/public/compiler.h",
589 ],
590)
591
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000592# GN target: //include/perfetto/public:protozero
593perfetto_filegroup(
594 name = "include_perfetto_public_protozero",
595 srcs = [
596 "include/perfetto/public/pb_utils.h",
597 ],
598)
599
Eric Secklera7870e62019-11-01 10:11:58 +0000600# GN target: //include/perfetto/trace_processor:basic_types
Harvey Yang321c4fc2021-10-25 14:11:50 +0800601perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000602 name = "include_perfetto_trace_processor_basic_types",
603 srcs = [
604 "include/perfetto/trace_processor/basic_types.h",
605 "include/perfetto/trace_processor/status.h",
606 ],
607)
608
609# GN target: //include/perfetto/trace_processor:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +0800610perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000611 name = "include_perfetto_trace_processor_storage",
612 srcs = [
Primiano Tucci3264b592021-11-08 18:20:51 +0000613 "include/perfetto/trace_processor/trace_blob.h",
614 "include/perfetto/trace_processor/trace_blob_view.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000615 "include/perfetto/trace_processor/trace_processor_storage.h",
616 ],
617)
618
Primiano Tucci1d409982019-09-19 10:15:18 +0100619# GN target: //include/perfetto/trace_processor:trace_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800620perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100621 name = "include_perfetto_trace_processor_trace_processor",
622 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100623 "include/perfetto/trace_processor/iterator.h",
Alexander Timinbaf9b872022-11-09 23:46:46 +0000624 "include/perfetto/trace_processor/metatrace_config.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100625 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci8b970aa2021-11-09 20:21:33 +0000626 "include/perfetto/trace_processor/ref_counted.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100627 "include/perfetto/trace_processor/trace_processor.h",
628 ],
629)
630
631# GN target: //include/perfetto/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800632perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100633 name = "include_perfetto_tracing_core_core",
634 srcs = [
635 "include/perfetto/tracing/core/chrome_config.h",
636 "include/perfetto/tracing/core/data_source_config.h",
637 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100638 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000639 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100640 "include/perfetto/tracing/core/tracing_service_state.h",
641 ],
642)
643
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000644# GN target: //include/perfetto/tracing/core:forward_decls
Harvey Yang321c4fc2021-10-25 14:11:50 +0800645perfetto_filegroup(
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000646 name = "include_perfetto_tracing_core_forward_decls",
647 srcs = [
648 "include/perfetto/tracing/core/forward_decls.h",
649 ],
650)
651
Primiano Tucci1d409982019-09-19 10:15:18 +0100652# GN target: //include/perfetto/tracing:tracing
Harvey Yang321c4fc2021-10-25 14:11:50 +0800653perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100654 name = "include_perfetto_tracing_tracing",
655 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100656 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100657 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000658 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100659 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000660 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000661 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000662 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100663 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000664 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000665 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100666 "include/perfetto/tracing/internal/data_source_internal.h",
Daniele Di Proietto1cb3efc2022-05-06 19:45:52 +0100667 "include/perfetto/tracing/internal/data_source_type.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000668 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000669 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000670 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000671 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100672 "include/perfetto/tracing/internal/tracing_muxer.h",
673 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700674 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100675 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000676 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Mikhail Khokhlov3a1ed6f2023-03-20 09:34:44 +0000677 "include/perfetto/tracing/internal/track_event_legacy.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100678 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000679 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100680 "include/perfetto/tracing/locked_handle.h",
681 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000682 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100683 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000684 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000685 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000686 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100687 "include/perfetto/tracing/tracing.h",
688 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100689 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000690 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700691 "include/perfetto/tracing/track_event.h",
Alexander Timin84af38b2021-10-05 17:10:31 +0100692 "include/perfetto/tracing/track_event_args.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100693 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000694 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000695 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000696 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100697 ],
698)
699
700# GN target: //src/android_internal:headers
Harvey Yang321c4fc2021-10-25 14:11:50 +0800701perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100702 name = "src_android_internal_headers",
703 srcs = [
704 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100705 "src/android_internal/health_hal.h",
706 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000707 "src/android_internal/power_stats.h",
Hector Dearmanff7abd42023-03-22 19:11:35 +0000708 "src/android_internal/statsd.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000709 "src/android_internal/statsd_logging.h",
Collin Fijalkovichef96fb72021-01-06 16:14:33 -0800710 "src/android_internal/tracing_service_proxy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100711 ],
712)
713
714# GN target: //src/android_internal:lazy_library_loader
Harvey Yang321c4fc2021-10-25 14:11:50 +0800715perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100716 name = "src_android_internal_lazy_library_loader",
717 srcs = [
718 "src/android_internal/lazy_library_loader.cc",
719 "src/android_internal/lazy_library_loader.h",
720 ],
721)
722
Lalit Magantif2d81b72020-12-11 01:53:29 +0000723# GN target: //src/android_stats:android_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +0800724perfetto_filegroup(
Lalit Magantif2d81b72020-12-11 01:53:29 +0000725 name = "src_android_stats_android_stats",
726 srcs = [
727 "src/android_stats/statsd_logging_helper.cc",
728 "src/android_stats/statsd_logging_helper.h",
729 ],
730)
731
Lalit Magantid37172d2020-12-10 19:30:05 +0000732# GN target: //src/android_stats:perfetto_atoms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800733perfetto_filegroup(
Lalit Magantid37172d2020-12-10 19:30:05 +0000734 name = "src_android_stats_perfetto_atoms",
735 srcs = [
736 "src/android_stats/perfetto_atoms.h",
737 ],
738)
739
Primiano Tucci44a15be2021-11-06 21:40:18 +0000740# GN target: //src/base/http:http
741perfetto_cc_library(
742 name = "src_base_http_http",
743 srcs = [
744 "src/base/http/http_server.cc",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000745 "src/base/http/sha1.cc",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000746 ],
747 hdrs = [
748 ":include_perfetto_base_base",
749 ":include_perfetto_ext_base_base",
750 ":include_perfetto_ext_base_http_http",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100751 ":include_perfetto_public_abi_base",
752 ":include_perfetto_public_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000753 ],
754 deps = [
755 ":src_base_base",
756 ":src_base_unix_socket",
757 ],
758 linkstatic = True,
759)
760
Primiano Tucci1d409982019-09-19 10:15:18 +0100761# GN target: //src/base:base
Primiano Tucci916f4e52020-10-16 20:40:33 +0200762perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100763 name = "src_base_base",
764 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000765 "src/base/android_utils.cc",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000766 "src/base/base64.cc",
Primiano Tucciab699b72021-10-15 11:53:00 +0100767 "src/base/crash_keys.cc",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100768 "src/base/ctrl_c_handler.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100769 "src/base/event_fd.cc",
770 "src/base/file_utils.cc",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100771 "src/base/getopt_compat.cc",
Primiano Tuccic7fb63f2021-10-11 16:28:05 +0100772 "src/base/log_ring_buffer.h",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000773 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100774 "src/base/metatrace.cc",
775 "src/base/paged_memory.cc",
Primiano Tuccidac91702021-04-30 15:47:51 +0100776 "src/base/periodic_task.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100777 "src/base/pipe.cc",
Primiano Tuccidf440312020-10-30 16:43:58 +0100778 "src/base/status.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100779 "src/base/string_splitter.cc",
780 "src/base/string_utils.cc",
781 "src/base/string_view.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100782 "src/base/subprocess.cc",
Primiano Tucci8163b2c2020-12-21 15:26:04 +0100783 "src/base/subprocess_posix.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100784 "src/base/subprocess_windows.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100785 "src/base/temp_file.cc",
786 "src/base/thread_checker.cc",
787 "src/base/thread_task_runner.cc",
Sergey Ulanov6ac6b2f2022-10-21 10:48:23 -0700788 "src/base/thread_utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100789 "src/base/time.cc",
790 "src/base/unix_task_runner.cc",
Primiano Tuccia81d2772020-10-07 00:12:41 +0200791 "src/base/utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100792 "src/base/uuid.cc",
793 "src/base/virtual_destructors.cc",
794 "src/base/waitable_event.cc",
795 "src/base/watchdog_posix.cc",
796 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200797 hdrs = [
798 ":include_perfetto_base_base",
799 ":include_perfetto_ext_base_base",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100800 ":include_perfetto_public_abi_base",
801 ":include_perfetto_public_base",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200802 ],
Lalit Maganti52f13362023-01-23 16:38:01 +0000803 deps = [
804 ] + PERFETTO_CONFIG.deps.base_platform,
Primiano Tucci916f4e52020-10-16 20:40:33 +0200805 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100806)
807
808# GN target: //src/base:unix_socket
Primiano Tucci916f4e52020-10-16 20:40:33 +0200809perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100810 name = "src_base_unix_socket",
811 srcs = [
812 "src/base/unix_socket.cc",
813 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200814 hdrs = [
815 ":include_perfetto_base_base",
816 ":include_perfetto_ext_base_base",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100817 ":include_perfetto_public_abi_base",
818 ":include_perfetto_public_base",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200819 ],
820 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100821)
822
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100823# GN target: //src/base:version
824perfetto_cc_library(
825 name = "src_base_version",
826 srcs = [
827 "src/base/version.cc",
828 ],
829 hdrs = [
830 ":include_perfetto_ext_base_version",
831 ],
832 deps = [
833 ":src_base_base",
834 ] + PERFETTO_CONFIG.deps.version_header,
835 linkstatic = True,
836)
837
Harvey Yang321c4fc2021-10-25 14:11:50 +0800838perfetto_genrule(
Primiano Tucciec590132020-11-16 14:16:44 +0100839 name = "src_base_version_gen_h",
840 srcs = [
841 "CHANGELOG",
842 ],
843 outs = [
844 "perfetto_version.gen.h",
845 ],
Joshua Gilpatrick042931b2020-12-04 08:55:59 -0800846 cmd = "$(location gen_version_header_py) --cpp_out=$@ --changelog=$(location CHANGELOG)",
Lalit Maganti744dbfe2023-03-14 15:36:45 +0000847 tools = [
Primiano Tucciec590132020-11-16 14:16:44 +0100848 ":gen_version_header_py",
849 ],
850)
851
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000852# GN target: //src/ipc:client
Harvey Yang321c4fc2021-10-25 14:11:50 +0800853perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000854 name = "src_ipc_client",
855 srcs = [
856 "src/ipc/client_impl.cc",
857 "src/ipc/client_impl.h",
858 "src/ipc/service_proxy.cc",
859 ],
860)
861
862# GN target: //src/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800863perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000864 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100865 srcs = [
866 "src/ipc/buffered_frame_deserializer.cc",
867 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100868 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000869 "src/ipc/virtual_destructors.cc",
870 ],
871)
872
873# GN target: //src/ipc:host
Harvey Yang321c4fc2021-10-25 14:11:50 +0800874perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000875 name = "src_ipc_host",
876 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100877 "src/ipc/host_impl.cc",
878 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100879 ],
880)
881
Ryan Savitskidc218882020-11-16 18:02:02 +0000882# GN target: //src/kallsyms:kallsyms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800883perfetto_filegroup(
Ryan Savitskidc218882020-11-16 18:02:02 +0000884 name = "src_kallsyms_kallsyms",
885 srcs = [
886 "src/kallsyms/kernel_symbol_map.cc",
887 "src/kallsyms/kernel_symbol_map.h",
888 "src/kallsyms/lazy_kernel_symbolizer.cc",
889 "src/kallsyms/lazy_kernel_symbolizer.h",
890 ],
891)
892
Ryan Zuklieec18eb32022-07-25 15:51:59 -0700893# GN target: //src/kernel_utils:syscall_table
894perfetto_filegroup(
895 name = "src_kernel_utils_syscall_table",
896 srcs = [
897 "src/kernel_utils/syscall_table.cc",
898 "src/kernel_utils/syscall_table.h",
899 "src/kernel_utils/syscalls_aarch32.h",
900 "src/kernel_utils/syscalls_aarch64.h",
901 "src/kernel_utils/syscalls_armeabi.h",
902 "src/kernel_utils/syscalls_x86.h",
903 "src/kernel_utils/syscalls_x86_64.h",
904 ],
905)
906
Primiano Tucci3970dfd2023-03-28 13:02:27 +0100907# GN target: //src/perfetto_cmd:bugreport_path
908perfetto_filegroup(
909 name = "src_perfetto_cmd_bugreport_path",
910 srcs = [
911 "src/perfetto_cmd/bugreport_path.h",
912 ],
913)
914
Lalit Maganti88e64de2022-11-21 18:29:57 +0000915# GN target: //src/perfetto_cmd:gen_cc_config_descriptor
Lalit Maganti2939c082021-03-11 17:25:44 +0000916perfetto_cc_proto_descriptor(
917 name = "src_perfetto_cmd_gen_cc_config_descriptor",
918 deps = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000919 ":protos_perfetto_config_descriptor",
Lalit Maganti2939c082021-03-11 17:25:44 +0000920 ],
921 outs = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000922 "src/perfetto_cmd/config.descriptor.h",
Lalit Maganti2939c082021-03-11 17:25:44 +0000923 ],
924)
925
Primiano Tucci1d409982019-09-19 10:15:18 +0100926# GN target: //src/perfetto_cmd:perfetto_cmd
Harvey Yang321c4fc2021-10-25 14:11:50 +0800927perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100928 name = "src_perfetto_cmd_perfetto_cmd",
929 srcs = [
930 "src/perfetto_cmd/config.cc",
931 "src/perfetto_cmd/config.h",
932 "src/perfetto_cmd/packet_writer.cc",
933 "src/perfetto_cmd/packet_writer.h",
934 "src/perfetto_cmd/pbtxt_to_pb.cc",
935 "src/perfetto_cmd/pbtxt_to_pb.h",
936 "src/perfetto_cmd/perfetto_cmd.cc",
937 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100938 "src/perfetto_cmd/rate_limiter.cc",
939 "src/perfetto_cmd/rate_limiter.h",
940 ],
941)
942
943# GN target: //src/perfetto_cmd:trigger_producer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800944perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100945 name = "src_perfetto_cmd_trigger_producer",
946 srcs = [
947 "src/perfetto_cmd/trigger_producer.cc",
948 "src/perfetto_cmd/trigger_producer.h",
949 ],
950)
951
Florian Mayerbd88ff82019-12-18 16:36:37 +0000952# GN target: //src/profiling/symbolizer:symbolize_database
Harvey Yang321c4fc2021-10-25 14:11:50 +0800953perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000954 name = "src_profiling_symbolizer_symbolize_database",
955 srcs = [
956 "src/profiling/symbolizer/symbolize_database.cc",
957 "src/profiling/symbolizer/symbolize_database.h",
958 ],
959)
960
961# GN target: //src/profiling/symbolizer:symbolizer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800962perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000963 name = "src_profiling_symbolizer_symbolizer",
964 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000965 "src/profiling/symbolizer/breakpad_parser.cc",
966 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000967 "src/profiling/symbolizer/breakpad_symbolizer.cc",
968 "src/profiling/symbolizer/breakpad_symbolizer.h",
Daniele Di Proietto25f80692021-09-17 10:14:41 +0000969 "src/profiling/symbolizer/elf.h",
Daniele Di Proiettocb426002023-02-16 12:14:38 +0000970 "src/profiling/symbolizer/filesystem.h",
971 "src/profiling/symbolizer/filesystem_posix.cc",
972 "src/profiling/symbolizer/filesystem_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000973 "src/profiling/symbolizer/local_symbolizer.cc",
974 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800975 "src/profiling/symbolizer/scoped_read_mmap.h",
976 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800977 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800978 "src/profiling/symbolizer/subprocess.h",
979 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800980 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000981 "src/profiling/symbolizer/symbolizer.cc",
982 "src/profiling/symbolizer/symbolizer.h",
983 ],
984)
985
Florian Mayer3be55fb2019-11-22 13:08:47 +0000986# GN target: //src/profiling:deobfuscator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800987perfetto_filegroup(
Florian Mayer3be55fb2019-11-22 13:08:47 +0000988 name = "src_profiling_deobfuscator",
989 srcs = [
990 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000991 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000992 ],
993)
994
Primiano Tuccif18ab812021-05-14 23:01:19 +0100995# GN target: //src/protozero/filtering:bytecode_common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800996perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100997 name = "src_protozero_filtering_bytecode_common",
998 srcs = [
999 "src/protozero/filtering/filter_bytecode_common.h",
1000 ],
1001)
1002
Lalit Magantiff9b3262021-07-01 22:24:01 +01001003# GN target: //src/protozero/filtering:bytecode_generator
Harvey Yang321c4fc2021-10-25 14:11:50 +08001004perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +01001005 name = "src_protozero_filtering_bytecode_generator",
1006 srcs = [
1007 "src/protozero/filtering/filter_bytecode_generator.cc",
1008 "src/protozero/filtering/filter_bytecode_generator.h",
1009 ],
1010)
1011
Primiano Tuccif18ab812021-05-14 23:01:19 +01001012# GN target: //src/protozero/filtering:bytecode_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001013perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +01001014 name = "src_protozero_filtering_bytecode_parser",
1015 srcs = [
1016 "src/protozero/filtering/filter_bytecode_parser.cc",
1017 "src/protozero/filtering/filter_bytecode_parser.h",
1018 ],
1019)
1020
Lalit Magantiff9b3262021-07-01 22:24:01 +01001021# GN target: //src/protozero/filtering:filter_util
Harvey Yang321c4fc2021-10-25 14:11:50 +08001022perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +01001023 name = "src_protozero_filtering_filter_util",
1024 srcs = [
1025 "src/protozero/filtering/filter_util.cc",
1026 "src/protozero/filtering/filter_util.h",
1027 ],
1028)
1029
Primiano Tuccif18ab812021-05-14 23:01:19 +01001030# GN target: //src/protozero/filtering:message_filter
Harvey Yang321c4fc2021-10-25 14:11:50 +08001031perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +01001032 name = "src_protozero_filtering_message_filter",
1033 srcs = [
1034 "src/protozero/filtering/message_filter.cc",
1035 "src/protozero/filtering/message_filter.h",
1036 "src/protozero/filtering/message_tokenizer.h",
1037 ],
1038)
1039
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01001040# GN target: //src/protozero:proto_ring_buffer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001041perfetto_filegroup(
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01001042 name = "src_protozero_proto_ring_buffer",
1043 srcs = [
1044 "src/protozero/proto_ring_buffer.cc",
1045 "src/protozero/proto_ring_buffer.h",
1046 ],
1047)
1048
Lalit Maganti2aa88582019-12-17 17:06:49 +00001049# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +01001050perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +00001051 name = "src_trace_processor_containers_containers",
1052 srcs = [
1053 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001054 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +01001055 "src/trace_processor/containers/row_map.cc",
1056 "src/trace_processor/containers/string_pool.cc",
1057 ],
1058 hdrs = [
1059 ":include_perfetto_base_base",
1060 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01001061 ":include_perfetto_public_abi_base",
1062 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00001063 ":include_perfetto_public_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01001064 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001065 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +00001066 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +01001067 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001068 "src/trace_processor/containers/row_map.h",
Lalit Maganti2572ddc2022-05-05 00:25:37 +01001069 "src/trace_processor/containers/row_map_algorithms.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +00001070 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001071 ],
Ryan0331ac02021-04-26 15:41:47 +01001072 deps = [
1073 ":src_base_base",
1074 ],
1075 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +00001076)
1077
Lalit Maganti1534bb72021-04-23 14:11:26 +01001078# GN target: //src/trace_processor/db:db
Harvey Yang321c4fc2021-10-25 14:11:50 +08001079perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001080 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +01001081 srcs = [
Lalit Maganti03376e52022-05-24 01:23:34 +01001082 "src/trace_processor/db/base_id.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001083 "src/trace_processor/db/column.cc",
1084 "src/trace_processor/db/column.h",
Anna Mayzner999f16e2023-04-28 13:11:55 +00001085 "src/trace_processor/db/column_overlay.h",
Lalit Maganti0fc85432022-06-17 15:26:22 +01001086 "src/trace_processor/db/column_storage.cc",
1087 "src/trace_processor/db/column_storage.h",
Lalit Magantic57ab902022-07-08 15:35:48 +01001088 "src/trace_processor/db/column_storage_overlay.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +00001089 "src/trace_processor/db/compare.h",
Anna Mayzner999f16e2023-04-28 13:11:55 +00001090 "src/trace_processor/db/null_overlay.h",
1091 "src/trace_processor/db/sorting_overlay.h",
1092 "src/trace_processor/db/storage.h",
1093 "src/trace_processor/db/storage_overlay.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001094 "src/trace_processor/db/table.cc",
1095 "src/trace_processor/db/table.h",
1096 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +00001097 "src/trace_processor/db/typed_column_internal.h",
Lalit Maganti2410f202022-05-27 20:57:53 +01001098 "src/trace_processor/db/view.cc",
1099 "src/trace_processor/db/view.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001100 ],
1101)
1102
Primiano Tuccic9d912e2022-07-28 23:30:11 +01001103# GN target: //src/trace_processor/importers/android_bugreport:android_bugreport
1104perfetto_filegroup(
1105 name = "src_trace_processor_importers_android_bugreport_android_bugreport",
1106 srcs = [
1107 "src/trace_processor/importers/android_bugreport/android_bugreport_parser.cc",
1108 "src/trace_processor/importers/android_bugreport/android_bugreport_parser.h",
1109 "src/trace_processor/importers/android_bugreport/android_log_parser.cc",
1110 "src/trace_processor/importers/android_bugreport/android_log_parser.h",
1111 ],
1112)
1113
Lalit Maganti1534bb72021-04-23 14:11:26 +01001114# GN target: //src/trace_processor/importers/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001115perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001116 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001117 srcs = [
1118 "src/trace_processor/importers/common/args_tracker.cc",
1119 "src/trace_processor/importers/common/args_tracker.h",
Igor Kraskevichbadba0b2022-03-22 19:44:20 +00001120 "src/trace_processor/importers/common/args_translation_table.cc",
1121 "src/trace_processor/importers/common/args_translation_table.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001122 "src/trace_processor/importers/common/async_track_set_tracker.cc",
1123 "src/trace_processor/importers/common/async_track_set_tracker.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +01001124 "src/trace_processor/importers/common/chunked_trace_reader.h",
Anna Mayznerbab105a2023-04-17 06:10:26 +00001125 "src/trace_processor/importers/common/clock_converter.cc",
1126 "src/trace_processor/importers/common/clock_converter.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001127 "src/trace_processor/importers/common/clock_tracker.cc",
1128 "src/trace_processor/importers/common/clock_tracker.h",
Violetta Fedotovaffe20e62022-11-23 11:00:08 +00001129 "src/trace_processor/importers/common/deobfuscation_mapping_table.cc",
1130 "src/trace_processor/importers/common/deobfuscation_mapping_table.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001131 "src/trace_processor/importers/common/event_tracker.cc",
1132 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001133 "src/trace_processor/importers/common/flow_tracker.cc",
1134 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001135 "src/trace_processor/importers/common/global_args_tracker.cc",
1136 "src/trace_processor/importers/common/global_args_tracker.h",
Anna Mayzner36ff4842023-03-27 07:55:47 +00001137 "src/trace_processor/importers/common/metadata_tracker.cc",
1138 "src/trace_processor/importers/common/metadata_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001139 "src/trace_processor/importers/common/process_tracker.cc",
1140 "src/trace_processor/importers/common/process_tracker.h",
1141 "src/trace_processor/importers/common/slice_tracker.cc",
1142 "src/trace_processor/importers/common/slice_tracker.h",
Igor Kraskevich4f062ad2022-04-11 16:29:06 +00001143 "src/trace_processor/importers/common/slice_translation_table.cc",
1144 "src/trace_processor/importers/common/slice_translation_table.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001145 "src/trace_processor/importers/common/system_info_tracker.cc",
1146 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantieb2645a2022-11-25 15:49:35 +00001147 "src/trace_processor/importers/common/trace_parser.cc",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001148 "src/trace_processor/importers/common/track_tracker.cc",
1149 "src/trace_processor/importers/common/track_tracker.h",
1150 ],
1151)
1152
Lalit Magantieb2645a2022-11-25 15:49:35 +00001153# GN target: //src/trace_processor/importers/common:parser_types
Lalit Magantife2519b2022-11-24 21:12:05 +00001154perfetto_filegroup(
Lalit Magantieb2645a2022-11-25 15:49:35 +00001155 name = "src_trace_processor_importers_common_parser_types",
1156 srcs = [
1157 "src/trace_processor/importers/common/parser_types.h",
1158 ],
1159)
1160
1161# GN target: //src/trace_processor/importers/common:trace_parser_hdr
1162perfetto_filegroup(
1163 name = "src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantife2519b2022-11-24 21:12:05 +00001164 srcs = [
1165 "src/trace_processor/importers/common/trace_parser.h",
1166 ],
1167)
1168
Lalit Magantib9a5b432022-12-01 16:13:11 +00001169# GN target: //src/trace_processor/importers/ftrace:ftrace_descriptors
1170perfetto_filegroup(
1171 name = "src_trace_processor_importers_ftrace_ftrace_descriptors",
1172 srcs = [
1173 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1174 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1175 ],
1176)
1177
1178# GN target: //src/trace_processor/importers/ftrace:full
1179perfetto_filegroup(
1180 name = "src_trace_processor_importers_ftrace_full",
1181 srcs = [
1182 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1183 "src/trace_processor/importers/ftrace/binder_tracker.h",
1184 "src/trace_processor/importers/ftrace/drm_tracker.cc",
1185 "src/trace_processor/importers/ftrace/drm_tracker.h",
1186 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1187 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1188 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1189 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1190 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1191 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
1192 "src/trace_processor/importers/ftrace/iostat_tracker.cc",
1193 "src/trace_processor/importers/ftrace/iostat_tracker.h",
Devika Krishnadasab3673c2022-12-20 23:55:20 +00001194 "src/trace_processor/importers/ftrace/mali_gpu_event_tracker.cc",
1195 "src/trace_processor/importers/ftrace/mali_gpu_event_tracker.h",
Nikita Ioffe02035142023-03-02 16:57:35 +00001196 "src/trace_processor/importers/ftrace/pkvm_hyp_cpu_tracker.cc",
1197 "src/trace_processor/importers/ftrace/pkvm_hyp_cpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001198 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1199 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
1200 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1201 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
1202 "src/trace_processor/importers/ftrace/thread_state_tracker.cc",
1203 "src/trace_processor/importers/ftrace/thread_state_tracker.h",
1204 "src/trace_processor/importers/ftrace/v4l2_tracker.cc",
1205 "src/trace_processor/importers/ftrace/v4l2_tracker.h",
Rob Clark50b20aa2022-11-29 14:24:18 -08001206 "src/trace_processor/importers/ftrace/virtio_gpu_tracker.cc",
1207 "src/trace_processor/importers/ftrace/virtio_gpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001208 "src/trace_processor/importers/ftrace/virtio_video_tracker.cc",
1209 "src/trace_processor/importers/ftrace/virtio_video_tracker.h",
1210 ],
1211)
1212
1213# GN target: //src/trace_processor/importers/ftrace:minimal
1214perfetto_filegroup(
1215 name = "src_trace_processor_importers_ftrace_minimal",
1216 srcs = [
1217 "src/trace_processor/importers/ftrace/ftrace_module.cc",
1218 "src/trace_processor/importers/ftrace/ftrace_module.h",
1219 ],
1220)
1221
Lalit Magantife2519b2022-11-24 21:12:05 +00001222# GN target: //src/trace_processor/importers/fuchsia:fuchsia_record
1223perfetto_filegroup(
1224 name = "src_trace_processor_importers_fuchsia_fuchsia_record",
1225 srcs = [
1226 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1227 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
1228 ],
1229)
1230
Lalit Magantiecf23662022-12-02 18:34:37 +00001231# GN target: //src/trace_processor/importers/fuchsia:full
1232perfetto_filegroup(
1233 name = "src_trace_processor_importers_fuchsia_full",
1234 srcs = [
1235 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1236 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1237 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1238 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1239 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
1240 ],
1241)
1242
1243# GN target: //src/trace_processor/importers/fuchsia:minimal
1244perfetto_filegroup(
1245 name = "src_trace_processor_importers_fuchsia_minimal",
1246 srcs = [
1247 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
1248 ],
1249)
1250
1251# GN target: //src/trace_processor/importers/gzip:full
1252perfetto_filegroup(
1253 name = "src_trace_processor_importers_gzip_full",
1254 srcs = [
1255 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1256 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
1257 ],
1258)
1259
Lalit Magantib9a5b432022-12-01 16:13:11 +00001260# GN target: //src/trace_processor/importers/i2c:full
1261perfetto_filegroup(
1262 name = "src_trace_processor_importers_i2c_full",
1263 srcs = [
1264 "src/trace_processor/importers/i2c/i2c_tracker.cc",
1265 "src/trace_processor/importers/i2c/i2c_tracker.h",
1266 ],
1267)
1268
Lalit Magantiecf23662022-12-02 18:34:37 +00001269# GN target: //src/trace_processor/importers/json:full
1270perfetto_filegroup(
1271 name = "src_trace_processor_importers_json_full",
1272 srcs = [
1273 "src/trace_processor/importers/json/json_trace_parser.cc",
1274 "src/trace_processor/importers/json/json_trace_parser.h",
1275 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1276 "src/trace_processor/importers/json/json_trace_tokenizer.h",
1277 ],
1278)
1279
Lalit Magantib9a5b432022-12-01 16:13:11 +00001280# GN target: //src/trace_processor/importers/json:minimal
1281perfetto_filegroup(
1282 name = "src_trace_processor_importers_json_minimal",
1283 srcs = [
1284 "src/trace_processor/importers/json/json_utils.cc",
1285 "src/trace_processor/importers/json/json_utils.h",
1286 ],
1287)
1288
Lalit Maganti1534bb72021-04-23 14:11:26 +01001289# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +08001290perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001291 name = "src_trace_processor_importers_memory_tracker_graph_processor",
1292 srcs = [
1293 "src/trace_processor/importers/memory_tracker/graph.cc",
1294 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
1295 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
1296 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
1297 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
1298 ],
1299)
1300
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00001301# GN target: //src/trace_processor/importers/ninja:ninja
1302perfetto_filegroup(
1303 name = "src_trace_processor_importers_ninja_ninja",
1304 srcs = [
1305 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1306 "src/trace_processor/importers/ninja/ninja_log_parser.h",
1307 ],
1308)
1309
Lalit Magantib7ad13b2022-11-25 15:55:38 +00001310# GN target: //src/trace_processor/importers/proto:full
Lalit Magantiba07dcf2022-11-25 13:58:09 +00001311perfetto_filegroup(
Lalit Magantib7ad13b2022-11-25 15:55:38 +00001312 name = "src_trace_processor_importers_proto_full",
Lalit Maganti3927af82022-05-09 20:23:40 +01001313 srcs = [
Lalit Magantiecf23662022-12-02 18:34:37 +00001314 "src/trace_processor/importers/proto/additional_modules.cc",
1315 "src/trace_processor/importers/proto/additional_modules.h",
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001316 "src/trace_processor/importers/proto/android_camera_event_module.cc",
1317 "src/trace_processor/importers/proto/android_camera_event_module.h",
1318 "src/trace_processor/importers/proto/android_probes_module.cc",
1319 "src/trace_processor/importers/proto/android_probes_module.h",
1320 "src/trace_processor/importers/proto/android_probes_parser.cc",
1321 "src/trace_processor/importers/proto/android_probes_parser.h",
1322 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1323 "src/trace_processor/importers/proto/android_probes_tracker.h",
1324 "src/trace_processor/importers/proto/content_analyzer.cc",
1325 "src/trace_processor/importers/proto/content_analyzer.h",
1326 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1327 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
1328 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1329 "src/trace_processor/importers/proto/gpu_event_parser.h",
1330 "src/trace_processor/importers/proto/graphics_event_module.cc",
1331 "src/trace_processor/importers/proto/graphics_event_module.h",
1332 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1333 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
1334 "src/trace_processor/importers/proto/heap_graph_module.cc",
1335 "src/trace_processor/importers/proto/heap_graph_module.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001336 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1337 "src/trace_processor/importers/proto/heap_graph_tracker.h",
1338 "src/trace_processor/importers/proto/metadata_module.cc",
1339 "src/trace_processor/importers/proto/metadata_module.h",
1340 "src/trace_processor/importers/proto/statsd_module.cc",
1341 "src/trace_processor/importers/proto/statsd_module.h",
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001342 "src/trace_processor/importers/proto/system_probes_module.cc",
1343 "src/trace_processor/importers/proto/system_probes_module.h",
1344 "src/trace_processor/importers/proto/system_probes_parser.cc",
1345 "src/trace_processor/importers/proto/system_probes_parser.h",
1346 "src/trace_processor/importers/proto/translation_table_module.cc",
1347 "src/trace_processor/importers/proto/translation_table_module.h",
1348 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1349 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001350 ],
1351)
1352
Lalit Magantiecf23662022-12-02 18:34:37 +00001353# GN target: //src/trace_processor/importers/proto:gen_cc_chrome_track_event_descriptor
1354perfetto_cc_proto_descriptor(
1355 name = "src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
1356 deps = [
1357 ":protos_third_party_chromium_descriptor",
1358 ],
1359 outs = [
1360 "src/trace_processor/importers/proto/chrome_track_event.descriptor.h",
1361 ],
1362)
1363
1364# GN target: //src/trace_processor/importers/proto:gen_cc_config_descriptor
1365perfetto_cc_proto_descriptor(
1366 name = "src_trace_processor_importers_proto_gen_cc_config_descriptor",
1367 deps = [
1368 ":protos_perfetto_config_descriptor",
1369 ],
1370 outs = [
1371 "src/trace_processor/importers/proto/config.descriptor.h",
1372 ],
1373)
1374
Lalit Magantib9a5b432022-12-01 16:13:11 +00001375# GN target: //src/trace_processor/importers/proto:gen_cc_statsd_atoms_descriptor
1376perfetto_cc_proto_descriptor(
1377 name = "src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
1378 deps = [
1379 "src/trace_processor/importers/proto/atoms.descriptor",
1380 ],
1381 outs = [
1382 "src/trace_processor/importers/proto/atoms.descriptor.h",
1383 ],
1384)
1385
1386# GN target: //src/trace_processor/importers/proto:gen_cc_trace_descriptor
1387perfetto_cc_proto_descriptor(
1388 name = "src_trace_processor_importers_proto_gen_cc_trace_descriptor",
1389 deps = [
1390 ":protos_perfetto_trace_descriptor",
1391 ],
1392 outs = [
1393 "src/trace_processor/importers/proto/trace.descriptor.h",
1394 ],
1395)
1396
Lalit Magantiecf23662022-12-02 18:34:37 +00001397# GN target: //src/trace_processor/importers/proto:gen_cc_track_event_descriptor
1398perfetto_cc_proto_descriptor(
1399 name = "src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
1400 deps = [
1401 ":protos_perfetto_trace_track_event_descriptor",
1402 ],
1403 outs = [
1404 "src/trace_processor/importers/proto/track_event.descriptor.h",
1405 ],
1406)
1407
Lalit Magantib9a5b432022-12-01 16:13:11 +00001408# GN target: //src/trace_processor/importers/proto:minimal
1409perfetto_filegroup(
1410 name = "src_trace_processor_importers_proto_minimal",
1411 srcs = [
1412 "src/trace_processor/importers/proto/active_chrome_processes_tracker.cc",
1413 "src/trace_processor/importers/proto/active_chrome_processes_tracker.h",
1414 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1415 "src/trace_processor/importers/proto/chrome_string_lookup.h",
1416 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1417 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1418 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1419 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Lalit Magantiecf23662022-12-02 18:34:37 +00001420 "src/trace_processor/importers/proto/default_modules.cc",
1421 "src/trace_processor/importers/proto/default_modules.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001422 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1423 "src/trace_processor/importers/proto/heap_profile_tracker.h",
1424 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1425 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1426 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1427 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
1428 "src/trace_processor/importers/proto/metadata_minimal_module.cc",
1429 "src/trace_processor/importers/proto/metadata_minimal_module.h",
Ryan Zuklie3338cc22023-03-09 15:37:56 -08001430 "src/trace_processor/importers/proto/network_trace_module.cc",
1431 "src/trace_processor/importers/proto/network_trace_module.h",
Etienne Pierre-doray53971a42023-01-18 19:10:03 +00001432 "src/trace_processor/importers/proto/packet_analyzer.cc",
1433 "src/trace_processor/importers/proto/packet_analyzer.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001434 "src/trace_processor/importers/proto/packet_sequence_state.h",
1435 "src/trace_processor/importers/proto/packet_sequence_state_generation.cc",
1436 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1437 "src/trace_processor/importers/proto/perf_sample_tracker.h",
1438 "src/trace_processor/importers/proto/profile_module.cc",
1439 "src/trace_processor/importers/proto/profile_module.h",
1440 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1441 "src/trace_processor/importers/proto/profile_packet_utils.h",
1442 "src/trace_processor/importers/proto/profiler_util.cc",
1443 "src/trace_processor/importers/proto/profiler_util.h",
1444 "src/trace_processor/importers/proto/proto_incremental_state.h",
1445 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1446 "src/trace_processor/importers/proto/proto_trace_parser.h",
1447 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1448 "src/trace_processor/importers/proto/proto_trace_reader.h",
1449 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1450 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
1451 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1452 "src/trace_processor/importers/proto/stack_profile_tracker.h",
1453 "src/trace_processor/importers/proto/track_event_module.cc",
1454 "src/trace_processor/importers/proto/track_event_module.h",
1455 "src/trace_processor/importers/proto/track_event_parser.cc",
1456 "src/trace_processor/importers/proto/track_event_parser.h",
1457 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1458 "src/trace_processor/importers/proto/track_event_tokenizer.h",
1459 "src/trace_processor/importers/proto/track_event_tracker.cc",
1460 "src/trace_processor/importers/proto/track_event_tracker.h",
1461 ],
1462)
1463
1464# GN target: //src/trace_processor/importers/proto:packet_sequence_state_generation_hdr
1465perfetto_filegroup(
1466 name = "src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
1467 srcs = [
1468 "src/trace_processor/importers/proto/packet_sequence_state_generation.h",
1469 ],
1470)
1471
1472# GN target: //src/trace_processor/importers/proto:proto_importer_module
1473perfetto_filegroup(
1474 name = "src_trace_processor_importers_proto_proto_importer_module",
1475 srcs = [
1476 "src/trace_processor/importers/proto/proto_importer_module.cc",
1477 "src/trace_processor/importers/proto/proto_importer_module.h",
1478 ],
1479)
1480
1481# GN target: //src/trace_processor/importers/syscalls:full
1482perfetto_filegroup(
1483 name = "src_trace_processor_importers_syscalls_full",
1484 srcs = [
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001485 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1486 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001487 ],
1488)
1489
Lalit Magantiecf23662022-12-02 18:34:37 +00001490# GN target: //src/trace_processor/importers/systrace:full
1491perfetto_filegroup(
1492 name = "src_trace_processor_importers_systrace_full",
1493 srcs = [
1494 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1495 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1496 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1497 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
1498 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1499 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
1500 ],
1501)
1502
Lalit Magantib9a5b432022-12-01 16:13:11 +00001503# GN target: //src/trace_processor/importers/systrace:systrace_line
1504perfetto_filegroup(
1505 name = "src_trace_processor_importers_systrace_systrace_line",
1506 srcs = [
1507 "src/trace_processor/importers/systrace/systrace_line.h",
1508 ],
1509)
1510
1511# GN target: //src/trace_processor/importers/systrace:systrace_parser
1512perfetto_filegroup(
1513 name = "src_trace_processor_importers_systrace_systrace_parser",
1514 srcs = [
1515 "src/trace_processor/importers/systrace/systrace_parser.cc",
1516 "src/trace_processor/importers/systrace/systrace_parser.h",
1517 ],
1518)
1519
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001520# GN target: //src/trace_processor/metrics/sql/android:android
1521perfetto_filegroup(
1522 name = "src_trace_processor_metrics_sql_android_android",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001523 srcs = [
1524 "src/trace_processor/metrics/sql/android/android_batt.sql",
Jon Spivackb0974a72022-04-27 16:07:10 -07001525 "src/trace_processor/metrics/sql/android/android_binder.sql",
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00001526 "src/trace_processor/metrics/sql/android/android_blocking_calls_cuj_metric.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001527 "src/trace_processor/metrics/sql/android/android_camera.sql",
Lalit Magantic16c7212021-12-16 17:32:55 +00001528 "src/trace_processor/metrics/sql/android/android_camera_unagg.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001529 "src/trace_processor/metrics/sql/android/android_cpu.sql",
1530 "src/trace_processor/metrics/sql/android/android_cpu_agg.sql",
1531 "src/trace_processor/metrics/sql/android/android_cpu_raw_metrics_per_core.sql",
1532 "src/trace_processor/metrics/sql/android/android_dma_heap.sql",
Luke Chang476e9442021-11-09 23:14:34 +08001533 "src/trace_processor/metrics/sql/android/android_dvfs.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001534 "src/trace_processor/metrics/sql/android/android_fastrpc.sql",
Shihhsun Ho7edcbe62022-05-09 13:55:52 +08001535 "src/trace_processor/metrics/sql/android/android_frame_timeline_metric.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001536 "src/trace_processor/metrics/sql/android/android_gpu.sql",
1537 "src/trace_processor/metrics/sql/android/android_hwcomposer.sql",
1538 "src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
1539 "src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
1540 "src/trace_processor/metrics/sql/android/android_ion.sql",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08001541 "src/trace_processor/metrics/sql/android/android_irq_runtime.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001542 "src/trace_processor/metrics/sql/android/android_jank_cuj.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001543 "src/trace_processor/metrics/sql/android/android_lmk.sql",
1544 "src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
1545 "src/trace_processor/metrics/sql/android/android_mem.sql",
1546 "src/trace_processor/metrics/sql/android/android_mem_unagg.sql",
Hector Dearman19b76ac2023-03-23 10:04:54 +00001547 "src/trace_processor/metrics/sql/android/android_monitor_contention.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001548 "src/trace_processor/metrics/sql/android/android_multiuser.sql",
1549 "src/trace_processor/metrics/sql/android/android_multiuser_populator.sql",
Luke Change25d2c42021-12-07 16:08:32 +08001550 "src/trace_processor/metrics/sql/android/android_netperf.sql",
Daniele Di Proietto0767bff2022-04-05 11:07:15 +01001551 "src/trace_processor/metrics/sql/android/android_other_traces.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001552 "src/trace_processor/metrics/sql/android/android_package_list.sql",
1553 "src/trace_processor/metrics/sql/android/android_powrails.sql",
1554 "src/trace_processor/metrics/sql/android/android_proxy_power.sql",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08001555 "src/trace_processor/metrics/sql/android/android_rt_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001556 "src/trace_processor/metrics/sql/android/android_simpleperf.sql",
1557 "src/trace_processor/metrics/sql/android/android_startup.sql",
1558 "src/trace_processor/metrics/sql/android/android_surfaceflinger.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001559 "src/trace_processor/metrics/sql/android/android_task_names.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001560 "src/trace_processor/metrics/sql/android/android_trace_quality.sql",
David LeGare20d39c42022-01-20 20:38:43 +00001561 "src/trace_processor/metrics/sql/android/android_trusty_workqueues.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001562 "src/trace_processor/metrics/sql/android/composer_execution.sql",
1563 "src/trace_processor/metrics/sql/android/composition_layers.sql",
Simon MacMullena16efc42023-02-28 18:21:05 +00001564 "src/trace_processor/metrics/sql/android/counter_span_view_merged.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001565 "src/trace_processor/metrics/sql/android/cpu_info.sql",
1566 "src/trace_processor/metrics/sql/android/display_metrics.sql",
1567 "src/trace_processor/metrics/sql/android/frame_missed.sql",
1568 "src/trace_processor/metrics/sql/android/g2d.sql",
1569 "src/trace_processor/metrics/sql/android/g2d_duration.sql",
1570 "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
1571 "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001572 "src/trace_processor/metrics/sql/android/jank/cujs.sql",
1573 "src/trace_processor/metrics/sql/android/jank/cujs_boundaries.sql",
1574 "src/trace_processor/metrics/sql/android/jank/frames.sql",
1575 "src/trace_processor/metrics/sql/android/jank/internal/counters.sql",
1576 "src/trace_processor/metrics/sql/android/jank/internal/derived_events.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001577 "src/trace_processor/metrics/sql/android/jank/internal/query_base.sql",
1578 "src/trace_processor/metrics/sql/android/jank/internal/query_frame_slice.sql",
Marcin Oczeretko76ac5c72022-10-31 15:34:01 +00001579 "src/trace_processor/metrics/sql/android/jank/params.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001580 "src/trace_processor/metrics/sql/android/jank/query_functions.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001581 "src/trace_processor/metrics/sql/android/jank/relevant_slices.sql",
1582 "src/trace_processor/metrics/sql/android/jank/relevant_threads.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001583 "src/trace_processor/metrics/sql/android/jank/slices.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001584 "src/trace_processor/metrics/sql/android/java_heap_histogram.sql",
1585 "src/trace_processor/metrics/sql/android/java_heap_stats.sql",
1586 "src/trace_processor/metrics/sql/android/mem_stats_priority_breakdown.sql",
Anna Mayznerd57d4ef2022-09-22 14:54:12 +00001587 "src/trace_processor/metrics/sql/android/p_state.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001588 "src/trace_processor/metrics/sql/android/power_drain_in_watts.sql",
1589 "src/trace_processor/metrics/sql/android/power_profile_data.sql",
Anna Mayznerfd6227c2022-09-12 16:15:38 +00001590 "src/trace_processor/metrics/sql/android/power_profile_data/barbet.sql",
1591 "src/trace_processor/metrics/sql/android/power_profile_data/bluejay.sql",
1592 "src/trace_processor/metrics/sql/android/power_profile_data/blueline.sql",
1593 "src/trace_processor/metrics/sql/android/power_profile_data/bonito.sql",
1594 "src/trace_processor/metrics/sql/android/power_profile_data/bramble.sql",
1595 "src/trace_processor/metrics/sql/android/power_profile_data/coral.sql",
1596 "src/trace_processor/metrics/sql/android/power_profile_data/crosshatch.sql",
1597 "src/trace_processor/metrics/sql/android/power_profile_data/flame.sql",
1598 "src/trace_processor/metrics/sql/android/power_profile_data/marlin.sql",
1599 "src/trace_processor/metrics/sql/android/power_profile_data/oriole.sql",
1600 "src/trace_processor/metrics/sql/android/power_profile_data/raven.sql",
1601 "src/trace_processor/metrics/sql/android/power_profile_data/redfin.sql",
1602 "src/trace_processor/metrics/sql/android/power_profile_data/sargo.sql",
1603 "src/trace_processor/metrics/sql/android/power_profile_data/sunfish.sql",
1604 "src/trace_processor/metrics/sql/android/power_profile_data/taimen.sql",
1605 "src/trace_processor/metrics/sql/android/power_profile_data/walleye.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001606 "src/trace_processor/metrics/sql/android/process_counter_span_view.sql",
1607 "src/trace_processor/metrics/sql/android/process_mem.sql",
1608 "src/trace_processor/metrics/sql/android/process_metadata.sql",
1609 "src/trace_processor/metrics/sql/android/process_oom_score.sql",
1610 "src/trace_processor/metrics/sql/android/process_unagg_mem_view.sql",
1611 "src/trace_processor/metrics/sql/android/profiler_smaps.sql",
1612 "src/trace_processor/metrics/sql/android/span_view_stats.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001613 "src/trace_processor/metrics/sql/android/startup/gc_slices.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001614 "src/trace_processor/metrics/sql/android/startup/hsc.sql",
1615 "src/trace_processor/metrics/sql/android/startup/launches.sql",
Lalit Maganti186ed0f2021-12-02 18:13:15 +00001616 "src/trace_processor/metrics/sql/android/startup/launches_maxsdk28.sql",
1617 "src/trace_processor/metrics/sql/android/startup/launches_minsdk29.sql",
Ioannis Ilkos39fd25c2022-03-31 13:29:15 +01001618 "src/trace_processor/metrics/sql/android/startup/launches_minsdk33.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001619 "src/trace_processor/metrics/sql/android/startup/mcycles_per_launch.sql",
1620 "src/trace_processor/metrics/sql/android/startup/slice_functions.sql",
Lalit Maganti6f97a862022-06-23 15:12:42 +01001621 "src/trace_processor/metrics/sql/android/startup/system_state.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001622 "src/trace_processor/metrics/sql/android/startup/thread_state_breakdown.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001623 "src/trace_processor/metrics/sql/android/unsymbolized_frames.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001624 ],
1625)
1626
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001627# GN target: //src/trace_processor/metrics/sql/chrome:chrome_sql
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001628perfetto_filegroup(
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001629 name = "src_trace_processor_metrics_sql_chrome_chrome_sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001630 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001631 "src/trace_processor/metrics/sql/chrome/actual_power_by_category.sql",
1632 "src/trace_processor/metrics/sql/chrome/actual_power_by_rail_mode.sql",
Violetta Fedotovaae0f6142022-11-22 12:14:17 +00001633 "src/trace_processor/metrics/sql/chrome/chrome_args_class_names.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001634 "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00001635 "src/trace_processor/metrics/sql/chrome/chrome_histogram_hashes.sql",
Omar Elmekkawyc77393b2022-06-21 10:33:34 +00001636 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals.sql",
Harkiran Bolaria277ea4f2023-01-09 14:24:26 +00001637 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_base.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001638 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_template.sql",
Harkiran Bolariad52e26d2022-12-23 15:09:23 +00001639 "src/trace_processor/metrics/sql/chrome/chrome_long_tasks.sql",
1640 "src/trace_processor/metrics/sql/chrome/chrome_long_tasks_delaying_input_processing.sql",
Igor Kraskevichf7cf8182022-04-04 11:41:28 +00001641 "src/trace_processor/metrics/sql/chrome/chrome_performance_mark_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001642 "src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
Igor Kraskevichc30d46b2022-09-13 09:39:41 +00001643 "src/trace_processor/metrics/sql/chrome/chrome_reliable_range.sql",
Omar Elmekkawye1ee55c2022-08-04 13:52:52 +00001644 "src/trace_processor/metrics/sql/chrome/chrome_scroll_inputs_per_frame.sql",
Omar Elmekkawyfa109742022-07-20 14:32:45 +00001645 "src/trace_processor/metrics/sql/chrome/chrome_scroll_jank_caused_by_scheduling.sql",
Tushar Agarwal941318a2023-03-13 21:31:34 +00001646 "src/trace_processor/metrics/sql/chrome/chrome_scroll_jank_v2.sql",
Igor Kraskevich1888cff2022-04-07 11:07:37 +00001647 "src/trace_processor/metrics/sql/chrome/chrome_slice_names.sql",
Omar Elmekkawyaa60a0c2022-07-19 14:48:40 +00001648 "src/trace_processor/metrics/sql/chrome/chrome_stack_samples_for_task.sql",
Alexander Timin1e01a9c2022-05-27 18:05:20 +00001649 "src/trace_processor/metrics/sql/chrome/chrome_tasks.sql",
Omar Elmekkawy5e9f3eb2022-07-20 13:35:32 +00001650 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing.sql",
Harkiran Bolariad52e26d2022-12-23 15:09:23 +00001651 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_base.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001652 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_template.sql",
1653 "src/trace_processor/metrics/sql/chrome/chrome_tasks_template.sql",
Omar Elmekkawy07d02b02021-12-14 20:36:36 +00001654 "src/trace_processor/metrics/sql/chrome/chrome_thread_slice.sql",
Igor Kraskevich92c7c5a2022-06-23 16:24:17 +00001655 "src/trace_processor/metrics/sql/chrome/chrome_unsymbolized_args.sql",
Igor Kraskevich32214832022-03-25 13:12:53 +00001656 "src/trace_processor/metrics/sql/chrome/chrome_user_event_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001657 "src/trace_processor/metrics/sql/chrome/cpu_time_by_category.sql",
1658 "src/trace_processor/metrics/sql/chrome/cpu_time_by_rail_mode.sql",
1659 "src/trace_processor/metrics/sql/chrome/estimated_power_by_category.sql",
1660 "src/trace_processor/metrics/sql/chrome/estimated_power_by_rail_mode.sql",
Violetta Fedotova7b04e572022-10-12 16:55:04 +00001661 "src/trace_processor/metrics/sql/chrome/event_latency_scroll_jank.sql",
Violetta Fedotovaec3ccc32022-12-15 08:12:38 +00001662 "src/trace_processor/metrics/sql/chrome/event_latency_scroll_jank_cause.sql",
Violetta Fedotovacbd64282022-09-14 10:43:18 +00001663 "src/trace_processor/metrics/sql/chrome/event_latency_to_breakdowns.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001664 "src/trace_processor/metrics/sql/chrome/experimental_reliable_chrome_tasks_delaying_input_processing.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001665 "src/trace_processor/metrics/sql/chrome/gesture_flow_event.sql",
1666 "src/trace_processor/metrics/sql/chrome/gesture_flow_event_queuing_delay.sql",
1667 "src/trace_processor/metrics/sql/chrome/gesture_jank.sql",
Omar Elmekkawyc50cd612022-01-20 16:18:33 +00001668 "src/trace_processor/metrics/sql/chrome/jank_utilities.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001669 "src/trace_processor/metrics/sql/chrome/rail_modes.sql",
1670 "src/trace_processor/metrics/sql/chrome/scroll_flow_event.sql",
1671 "src/trace_processor/metrics/sql/chrome/scroll_flow_event_queuing_delay.sql",
1672 "src/trace_processor/metrics/sql/chrome/scroll_jank.sql",
1673 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause.sql",
1674 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_task.sql",
1675 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_touch_move.sql",
1676 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_get_bitmap.sql",
1677 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_queuing_delay.sql",
Omar Elmekkawy0d6b3462021-12-09 20:28:02 +00001678 "src/trace_processor/metrics/sql/chrome/sufficient_chrome_processes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001679 "src/trace_processor/metrics/sql/chrome/test_chrome_metric.sql",
1680 "src/trace_processor/metrics/sql/chrome/touch_flow_event.sql",
1681 "src/trace_processor/metrics/sql/chrome/touch_flow_event_queuing_delay.sql",
1682 "src/trace_processor/metrics/sql/chrome/touch_jank.sql",
Violetta Fedotova7b04e572022-10-12 16:55:04 +00001683 "src/trace_processor/metrics/sql/chrome/vsync_intervals.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001684 ],
1685)
1686
1687# GN target: //src/trace_processor/metrics/sql/common:common
1688perfetto_filegroup(
1689 name = "src_trace_processor_metrics_sql_common_common",
1690 srcs = [
Lalit Maganti9c317492022-09-13 20:01:55 +01001691 "src/trace_processor/metrics/sql/common/parent_slice.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001692 ],
1693)
1694
1695# GN target: //src/trace_processor/metrics/sql/experimental:experimental
1696perfetto_filegroup(
1697 name = "src_trace_processor_metrics_sql_experimental_experimental",
1698 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001699 "src/trace_processor/metrics/sql/experimental/blink_gc_metric.sql",
1700 "src/trace_processor/metrics/sql/experimental/chrome_dropped_frames.sql",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04001701 "src/trace_processor/metrics/sql/experimental/chrome_long_latency.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001702 "src/trace_processor/metrics/sql/experimental/frame_times.sql",
1703 "src/trace_processor/metrics/sql/experimental/media_metric.sql",
1704 "src/trace_processor/metrics/sql/experimental/reported_by_page.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001705 ],
1706)
1707
1708# GN target: //src/trace_processor/metrics/sql/webview:webview
1709perfetto_filegroup(
1710 name = "src_trace_processor_metrics_sql_webview_webview",
1711 srcs = [
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00001712 "src/trace_processor/metrics/sql/webview/webview_jank_approximation.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001713 "src/trace_processor/metrics/sql/webview/webview_power_usage.sql",
1714 ],
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001715)
1716
Lalit Maganti88e64de2022-11-21 18:29:57 +00001717# GN target: //src/trace_processor/metrics/sql:gen_amalgamated_sql_metrics
Lalit Magantie277dcb2022-11-09 15:57:58 +00001718perfetto_cc_amalgamated_sql(
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001719 name = "src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
Lalit Magantie277dcb2022-11-09 15:57:58 +00001720 deps = [
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001721 ":src_trace_processor_metrics_sql_android_android",
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001722 ":src_trace_processor_metrics_sql_chrome_chrome_sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001723 ":src_trace_processor_metrics_sql_common_common",
1724 ":src_trace_processor_metrics_sql_experimental_experimental",
1725 ":src_trace_processor_metrics_sql_misc_sql",
1726 ":src_trace_processor_metrics_sql_webview_webview",
1727 ],
Lalit Maganti4c328e32021-11-09 19:29:50 +00001728 outs = [
1729 "src/trace_processor/metrics/sql/amalgamated_sql_metrics.h",
1730 ],
Lalit Magantie277dcb2022-11-09 15:57:58 +00001731 namespace = "sql_metrics",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001732)
1733
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001734# GN target: //src/trace_processor/metrics/sql:misc_sql
1735perfetto_filegroup(
1736 name = "src_trace_processor_metrics_sql_misc_sql",
1737 srcs = [
1738 "src/trace_processor/metrics/sql/trace_metadata.sql",
1739 "src/trace_processor/metrics/sql/trace_stats.sql",
1740 ],
1741)
1742
Lalit Maganti88e64de2022-11-21 18:29:57 +00001743# GN target: //src/trace_processor/metrics:gen_cc_all_chrome_metrics_descriptor
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001744perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001745 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
1746 deps = [
1747 ":protos_perfetto_metrics_chrome_descriptor",
1748 ],
1749 outs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001750 "src/trace_processor/metrics/all_chrome_metrics.descriptor.h",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001751 ],
1752)
1753
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00001754# GN target: //src/trace_processor/metrics:gen_cc_all_webview_metrics_descriptor
1755perfetto_cc_proto_descriptor(
1756 name = "src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
1757 deps = [
1758 ":protos_perfetto_metrics_webview_descriptor",
1759 ],
1760 outs = [
1761 "src/trace_processor/metrics/all_webview_metrics.descriptor.h",
1762 ],
1763)
1764
Lalit Maganti88e64de2022-11-21 18:29:57 +00001765# GN target: //src/trace_processor/metrics:gen_cc_metrics_descriptor
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001766perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001767 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1768 deps = [
1769 ":protos_perfetto_metrics_descriptor",
1770 ],
1771 outs = [
1772 "src/trace_processor/metrics/metrics.descriptor.h",
1773 ],
1774)
1775
Lalit Maganti4c328e32021-11-09 19:29:50 +00001776# GN target: //src/trace_processor/metrics:metrics
Harvey Yang321c4fc2021-10-25 14:11:50 +08001777perfetto_filegroup(
Lalit Maganti4c328e32021-11-09 19:29:50 +00001778 name = "src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01001779 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001780 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001781 "src/trace_processor/metrics/metrics.h",
1782 ],
1783)
1784
Lalit Maganti628aca72022-12-08 14:20:25 +00001785# GN target: //src/trace_processor/prelude/functions:functions
1786perfetto_filegroup(
1787 name = "src_trace_processor_prelude_functions_functions",
1788 srcs = [
Anna Mayznerbab105a2023-04-17 06:10:26 +00001789 "src/trace_processor/prelude/functions/clock_functions.h",
Lalit Maganti628aca72022-12-08 14:20:25 +00001790 "src/trace_processor/prelude/functions/create_function.cc",
1791 "src/trace_processor/prelude/functions/create_function.h",
1792 "src/trace_processor/prelude/functions/create_function_internal.cc",
1793 "src/trace_processor/prelude/functions/create_function_internal.h",
1794 "src/trace_processor/prelude/functions/create_view_function.cc",
1795 "src/trace_processor/prelude/functions/create_view_function.h",
1796 "src/trace_processor/prelude/functions/import.cc",
1797 "src/trace_processor/prelude/functions/import.h",
Alexander Timine2285a32023-03-21 15:34:07 +00001798 "src/trace_processor/prelude/functions/layout_functions.cc",
1799 "src/trace_processor/prelude/functions/layout_functions.h",
Lalit Maganti628aca72022-12-08 14:20:25 +00001800 "src/trace_processor/prelude/functions/pprof_functions.cc",
1801 "src/trace_processor/prelude/functions/pprof_functions.h",
1802 "src/trace_processor/prelude/functions/register_function.cc",
1803 "src/trace_processor/prelude/functions/register_function.h",
1804 "src/trace_processor/prelude/functions/sqlite3_str_split.cc",
1805 "src/trace_processor/prelude/functions/sqlite3_str_split.h",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00001806 "src/trace_processor/prelude/functions/stack_functions.cc",
1807 "src/trace_processor/prelude/functions/stack_functions.h",
Lalit Maganti289c7fc2023-04-21 17:19:56 +01001808 "src/trace_processor/prelude/functions/to_ftrace.cc",
1809 "src/trace_processor/prelude/functions/to_ftrace.h",
Lalit Maganti628aca72022-12-08 14:20:25 +00001810 "src/trace_processor/prelude/functions/utils.h",
1811 "src/trace_processor/prelude/functions/window_functions.h",
1812 ],
1813)
1814
1815# GN target: //src/trace_processor/prelude/operators:operators
1816perfetto_filegroup(
1817 name = "src_trace_processor_prelude_operators_operators",
1818 srcs = [
1819 "src/trace_processor/prelude/operators/span_join_operator.cc",
1820 "src/trace_processor/prelude/operators/span_join_operator.h",
1821 "src/trace_processor/prelude/operators/window_operator.cc",
1822 "src/trace_processor/prelude/operators/window_operator.h",
1823 ],
1824)
1825
Lalit Maganti84aa9022023-03-17 20:29:56 +00001826# GN target: //src/trace_processor/prelude/table_functions:table_functions
1827perfetto_filegroup(
1828 name = "src_trace_processor_prelude_table_functions_table_functions",
1829 srcs = [
1830 "src/trace_processor/prelude/table_functions/ancestor.cc",
1831 "src/trace_processor/prelude/table_functions/ancestor.h",
1832 "src/trace_processor/prelude/table_functions/connected_flow.cc",
1833 "src/trace_processor/prelude/table_functions/connected_flow.h",
1834 "src/trace_processor/prelude/table_functions/descendant.cc",
1835 "src/trace_processor/prelude/table_functions/descendant.h",
1836 "src/trace_processor/prelude/table_functions/experimental_annotated_stack.cc",
1837 "src/trace_processor/prelude/table_functions/experimental_annotated_stack.h",
1838 "src/trace_processor/prelude/table_functions/experimental_counter_dur.cc",
1839 "src/trace_processor/prelude/table_functions/experimental_counter_dur.h",
1840 "src/trace_processor/prelude/table_functions/experimental_flamegraph.cc",
1841 "src/trace_processor/prelude/table_functions/experimental_flamegraph.h",
1842 "src/trace_processor/prelude/table_functions/experimental_flat_slice.cc",
1843 "src/trace_processor/prelude/table_functions/experimental_flat_slice.h",
1844 "src/trace_processor/prelude/table_functions/experimental_sched_upid.cc",
1845 "src/trace_processor/prelude/table_functions/experimental_sched_upid.h",
1846 "src/trace_processor/prelude/table_functions/experimental_slice_layout.cc",
1847 "src/trace_processor/prelude/table_functions/experimental_slice_layout.h",
1848 "src/trace_processor/prelude/table_functions/flamegraph_construction_algorithms.cc",
1849 "src/trace_processor/prelude/table_functions/flamegraph_construction_algorithms.h",
1850 "src/trace_processor/prelude/table_functions/table_function.cc",
1851 "src/trace_processor/prelude/table_functions/table_function.h",
1852 "src/trace_processor/prelude/table_functions/view.cc",
1853 "src/trace_processor/prelude/table_functions/view.h",
1854 ],
1855)
1856
Lalit Maganti3df8a7e2023-04-25 14:18:17 +01001857# GN target: //src/trace_processor/prelude/table_functions:tables
1858perfetto_cc_tp_tables(
1859 name = "src_trace_processor_prelude_table_functions_tables",
1860 srcs = [
1861 "src/trace_processor/prelude/table_functions/tables.py",
1862 ],
1863 deps = [
1864 ":src_trace_processor_tables_tables_python",
1865 ],
1866 outs = [
1867 "src/trace_processor/prelude/table_functions/tables_py.h",
1868 ],
1869)
1870
Lalit Maganti8ac54f52023-04-24 15:22:22 +01001871# GN target: //src/trace_processor/prelude/tables_views:sources
1872perfetto_filegroup(
1873 name = "src_trace_processor_prelude_tables_views_sources",
1874 srcs = [
1875 "src/trace_processor/prelude/tables_views/tables.sql",
1876 "src/trace_processor/prelude/tables_views/views.sql",
1877 ],
1878)
1879
1880# GN target: //src/trace_processor/prelude/tables_views:tables_views
1881perfetto_cc_amalgamated_sql(
1882 name = "src_trace_processor_prelude_tables_views_tables_views",
1883 deps = [
1884 ":src_trace_processor_prelude_tables_views_sources",
1885 ],
1886 outs = [
1887 "src/trace_processor/prelude/tables_views/tables_views.h",
1888 ],
1889 namespace = "prelude::tables_views",
1890)
1891
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001892# GN target: //src/trace_processor/rpc:httpd
Harvey Yang321c4fc2021-10-25 14:11:50 +08001893perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001894 name = "src_trace_processor_rpc_httpd",
1895 srcs = [
1896 "src/trace_processor/rpc/httpd.cc",
1897 "src/trace_processor/rpc/httpd.h",
1898 ],
1899)
1900
1901# GN target: //src/trace_processor/rpc:rpc
Harvey Yang321c4fc2021-10-25 14:11:50 +08001902perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001903 name = "src_trace_processor_rpc_rpc",
1904 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001905 "src/trace_processor/rpc/query_result_serializer.cc",
1906 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001907 "src/trace_processor/rpc/rpc.cc",
1908 "src/trace_processor/rpc/rpc.h",
1909 ],
1910)
1911
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00001912# GN target: //src/trace_processor/sorter:sorter
1913perfetto_filegroup(
1914 name = "src_trace_processor_sorter_sorter",
1915 srcs = [
1916 "src/trace_processor/sorter/trace_sorter.cc",
1917 "src/trace_processor/sorter/trace_sorter.h",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00001918 "src/trace_processor/sorter/trace_token_buffer.cc",
1919 "src/trace_processor/sorter/trace_token_buffer.h",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00001920 ],
1921)
1922
Primiano Tucci1d409982019-09-19 10:15:18 +01001923# GN target: //src/trace_processor/sqlite:sqlite
Harvey Yang321c4fc2021-10-25 14:11:50 +08001924perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001925 name = "src_trace_processor_sqlite_sqlite",
1926 srcs = [
1927 "src/trace_processor/sqlite/db_sqlite_table.cc",
1928 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001929 "src/trace_processor/sqlite/query_cache.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001930 "src/trace_processor/sqlite/sql_stats_table.cc",
1931 "src/trace_processor/sqlite/sql_stats_table.h",
Lalit Magantief6f33e2023-04-25 17:45:27 +01001932 "src/trace_processor/sqlite/sqlite_engine.cc",
1933 "src/trace_processor/sqlite/sqlite_engine.h",
Carlos Caballero Grolimund62b4a1d2022-10-14 10:24:34 +00001934 "src/trace_processor/sqlite/sqlite_utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001935 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001936 "src/trace_processor/sqlite/stats_table.cc",
1937 "src/trace_processor/sqlite/stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001938 ],
1939)
1940
Lalit Maganti3927af82022-05-09 20:23:40 +01001941# GN target: //src/trace_processor/sqlite:sqlite_minimal
1942perfetto_filegroup(
1943 name = "src_trace_processor_sqlite_sqlite_minimal",
1944 srcs = [
1945 "src/trace_processor/sqlite/query_constraints.cc",
1946 "src/trace_processor/sqlite/query_constraints.h",
1947 "src/trace_processor/sqlite/scoped_db.h",
1948 "src/trace_processor/sqlite/sqlite_table.cc",
1949 "src/trace_processor/sqlite/sqlite_table.h",
1950 "src/trace_processor/sqlite/sqlite_utils.h",
1951 ],
1952)
1953
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001954# GN target: //src/trace_processor/stdlib/android/startup:startup
1955perfetto_filegroup(
1956 name = "src_trace_processor_stdlib_android_startup_startup",
1957 srcs = [
1958 "src/trace_processor/stdlib/android/startup/internal_startups_maxsdk28.sql",
1959 "src/trace_processor/stdlib/android/startup/internal_startups_minsdk29.sql",
1960 "src/trace_processor/stdlib/android/startup/internal_startups_minsdk33.sql",
1961 "src/trace_processor/stdlib/android/startup/startups.sql",
1962 ],
1963)
1964
Lalit Maganti358a7e42022-11-09 15:16:21 +00001965# GN target: //src/trace_processor/stdlib/android:android
1966perfetto_filegroup(
1967 name = "src_trace_processor_stdlib_android_android",
1968 srcs = [
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001969 "src/trace_processor/stdlib/android/battery.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001970 "src/trace_processor/stdlib/android/binder.sql",
Zimd6ee8292023-03-14 20:02:11 +00001971 "src/trace_processor/stdlib/android/monitor_contention.sql",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001972 "src/trace_processor/stdlib/android/process_metadata.sql",
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00001973 "src/trace_processor/stdlib/android/slices.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001974 ],
1975)
1976
Anna Mayzner96d69f72022-12-16 13:37:12 +00001977# GN target: //src/trace_processor/stdlib/chrome:chrome_sql
Joseph Koshy7ab2ef92022-12-08 14:56:34 +00001978perfetto_filegroup(
Anna Mayzner96d69f72022-12-16 13:37:12 +00001979 name = "src_trace_processor_stdlib_chrome_chrome_sql",
Joseph Koshy7ab2ef92022-12-08 14:56:34 +00001980 srcs = [
1981 "src/trace_processor/stdlib/chrome/cpu_powerups.sql",
1982 ],
1983)
1984
Igor Kraskevich49756332022-12-01 18:05:57 +00001985# GN target: //src/trace_processor/stdlib/common:common
1986perfetto_filegroup(
1987 name = "src_trace_processor_stdlib_common_common",
1988 srcs = [
Anna Mayzner93345462023-01-24 10:16:44 +00001989 "src/trace_processor/stdlib/common/counters.sql",
Hector Dearman20b114c2023-04-24 20:25:31 +01001990 "src/trace_processor/stdlib/common/cpus.sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00001991 "src/trace_processor/stdlib/common/metadata.sql",
Anna Mayzner93345462023-01-24 10:16:44 +00001992 "src/trace_processor/stdlib/common/percentiles.sql",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001993 "src/trace_processor/stdlib/common/slices.sql",
1994 "src/trace_processor/stdlib/common/timestamps.sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00001995 ],
1996)
1997
Lalit Maganti358a7e42022-11-09 15:16:21 +00001998# GN target: //src/trace_processor/stdlib/experimental:experimental
1999perfetto_filegroup(
2000 name = "src_trace_processor_stdlib_experimental_experimental",
2001 srcs = [
Lalit Magantidf817362022-11-10 15:27:46 +00002002 "src/trace_processor/stdlib/experimental/android_broadcast.sql",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00002003 "src/trace_processor/stdlib/experimental/proto_path.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00002004 ],
2005)
2006
Nikita Ioffef77eb432023-03-16 16:40:40 +00002007# GN target: //src/trace_processor/stdlib/pkvm:pkvm
2008perfetto_filegroup(
2009 name = "src_trace_processor_stdlib_pkvm_pkvm",
2010 srcs = [
2011 "src/trace_processor/stdlib/pkvm/hypervisor.sql",
2012 ],
2013)
2014
Lalit Maganti88e64de2022-11-21 18:29:57 +00002015# GN target: //src/trace_processor/stdlib:gen_amalgamated_stdlib
Lalit Magantie277dcb2022-11-09 15:57:58 +00002016perfetto_cc_amalgamated_sql(
Anna Mayznercc18bfd2022-11-03 14:05:19 +00002017 name = "src_trace_processor_stdlib_gen_amalgamated_stdlib",
Lalit Magantie277dcb2022-11-09 15:57:58 +00002018 deps = [
Lalit Maganti358a7e42022-11-09 15:16:21 +00002019 ":src_trace_processor_stdlib_android_android",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00002020 ":src_trace_processor_stdlib_android_startup_startup",
Anna Mayzner96d69f72022-12-16 13:37:12 +00002021 ":src_trace_processor_stdlib_chrome_chrome_sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00002022 ":src_trace_processor_stdlib_common_common",
Lalit Maganti358a7e42022-11-09 15:16:21 +00002023 ":src_trace_processor_stdlib_experimental_experimental",
Nikita Ioffef77eb432023-03-16 16:40:40 +00002024 ":src_trace_processor_stdlib_pkvm_pkvm",
Anna Mayznercc18bfd2022-11-03 14:05:19 +00002025 ],
2026 outs = [
2027 "src/trace_processor/stdlib/amalgamated_stdlib.h",
2028 ],
Lalit Magantie277dcb2022-11-09 15:57:58 +00002029 namespace = "stdlib",
Anna Mayznercc18bfd2022-11-03 14:05:19 +00002030)
2031
Lalit Maganti7010b332020-02-07 10:51:15 +00002032# GN target: //src/trace_processor/storage:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +08002033perfetto_filegroup(
Lalit Maganti7010b332020-02-07 10:51:15 +00002034 name = "src_trace_processor_storage_storage",
2035 srcs = [
2036 "src/trace_processor/storage/metadata.h",
2037 "src/trace_processor/storage/stats.h",
2038 "src/trace_processor/storage/trace_storage.cc",
2039 "src/trace_processor/storage/trace_storage.h",
2040 ],
2041)
2042
Primiano Tucci1d409982019-09-19 10:15:18 +01002043# GN target: //src/trace_processor/tables:tables
Harvey Yang321c4fc2021-10-25 14:11:50 +08002044perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002045 name = "src_trace_processor_tables_tables",
2046 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002047 "src/trace_processor/tables/macros_internal.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01002048 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002049 ],
2050)
2051
Lalit Maganti3dc8e302022-12-01 20:32:46 +00002052# GN target: //src/trace_processor/tables:tables_python
2053perfetto_cc_tp_tables(
2054 name = "src_trace_processor_tables_tables_python",
2055 srcs = [
2056 "src/trace_processor/tables/android_tables.py",
Lalit Maganti1c46cbb2023-03-24 17:01:51 +00002057 "src/trace_processor/tables/counter_tables.py",
2058 "src/trace_processor/tables/flow_tables.py",
2059 "src/trace_processor/tables/memory_tables.py",
Lalit Maganti3dc8e302022-12-01 20:32:46 +00002060 "src/trace_processor/tables/metadata_tables.py",
Lalit Maganti1c46cbb2023-03-24 17:01:51 +00002061 "src/trace_processor/tables/profiler_tables.py",
2062 "src/trace_processor/tables/slice_tables.py",
2063 "src/trace_processor/tables/trace_proto_tables.py",
Lalit Magantie2a74562023-03-16 18:07:25 +00002064 "src/trace_processor/tables/track_tables.py",
Lalit Maganti3dc8e302022-12-01 20:32:46 +00002065 ],
2066 outs = [
2067 "src/trace_processor/tables/android_tables_py.h",
Lalit Maganti1c46cbb2023-03-24 17:01:51 +00002068 "src/trace_processor/tables/counter_tables_py.h",
2069 "src/trace_processor/tables/flow_tables_py.h",
2070 "src/trace_processor/tables/memory_tables_py.h",
Lalit Maganti3dc8e302022-12-01 20:32:46 +00002071 "src/trace_processor/tables/metadata_tables_py.h",
Lalit Maganti1c46cbb2023-03-24 17:01:51 +00002072 "src/trace_processor/tables/profiler_tables_py.h",
2073 "src/trace_processor/tables/slice_tables_py.h",
2074 "src/trace_processor/tables/trace_proto_tables_py.h",
Lalit Magantie2a74562023-03-16 18:07:25 +00002075 "src/trace_processor/tables/track_tables_py.h",
Lalit Maganti3dc8e302022-12-01 20:32:46 +00002076 ],
2077)
2078
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002079# GN target: //src/trace_processor/types:types
Harvey Yang321c4fc2021-10-25 14:11:50 +08002080perfetto_filegroup(
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002081 name = "src_trace_processor_types_types",
2082 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01002083 "src/trace_processor/types/destructible.cc",
2084 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002085 "src/trace_processor/types/gfp_flags.cc",
2086 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12002087 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01002088 "src/trace_processor/types/task_state.cc",
2089 "src/trace_processor/types/task_state.h",
Luke Chang1b904072022-01-26 09:33:19 +08002090 "src/trace_processor/types/tcp_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01002091 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002092 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01002093 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002094 ],
2095)
2096
Lalit Magantiffaed7a2023-02-21 16:02:04 +00002097# GN target: //src/trace_processor/util:bump_allocator
2098perfetto_filegroup(
2099 name = "src_trace_processor_util_bump_allocator",
2100 srcs = [
2101 "src/trace_processor/util/bump_allocator.cc",
2102 "src/trace_processor/util/bump_allocator.h",
2103 ],
2104)
2105
Lalit Magantie7107402020-04-15 13:41:12 +01002106# GN target: //src/trace_processor/util:descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08002107perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01002108 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00002109 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01002110 "src/trace_processor/util/descriptors.cc",
2111 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00002112 ],
2113)
2114
Lalit Maganti83ddffe2022-10-18 17:47:44 +01002115# GN target: //src/trace_processor/util:glob
2116perfetto_filegroup(
2117 name = "src_trace_processor_util_glob",
2118 srcs = [
2119 "src/trace_processor/util/glob.cc",
2120 "src/trace_processor/util/glob.h",
2121 ],
2122)
2123
Lalit Maganti69216ec2021-05-21 14:10:42 +01002124# GN target: //src/trace_processor/util:gzip
Harvey Yang321c4fc2021-10-25 14:11:50 +08002125perfetto_filegroup(
Lalit Maganti69216ec2021-05-21 14:10:42 +01002126 name = "src_trace_processor_util_gzip",
2127 srcs = [
2128 "src/trace_processor/util/gzip_utils.cc",
2129 "src/trace_processor/util/gzip_utils.h",
2130 ],
2131)
2132
Alexander Timin97d87852021-05-17 18:01:33 +00002133# GN target: //src/trace_processor/util:interned_message_view
Harvey Yang321c4fc2021-10-25 14:11:50 +08002134perfetto_filegroup(
Alexander Timin97d87852021-05-17 18:01:33 +00002135 name = "src_trace_processor_util_interned_message_view",
2136 srcs = [
2137 "src/trace_processor/util/interned_message_view.h",
2138 ],
2139)
2140
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00002141# GN target: //src/trace_processor/util:profile_builder
2142perfetto_filegroup(
2143 name = "src_trace_processor_util_profile_builder",
2144 srcs = [
Carlos Caballero Grolimund689ef042022-09-26 14:58:20 +00002145 "src/trace_processor/util/annotated_callsites.cc",
2146 "src/trace_processor/util/annotated_callsites.h",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00002147 "src/trace_processor/util/profile_builder.cc",
2148 "src/trace_processor/util/profile_builder.h",
2149 ],
2150)
2151
Igor Kraskevich3da925d2022-08-22 12:02:30 +00002152# GN target: //src/trace_processor/util:proto_profiler
2153perfetto_filegroup(
2154 name = "src_trace_processor_util_proto_profiler",
2155 srcs = [
2156 "src/trace_processor/util/proto_profiler.cc",
2157 "src/trace_processor/util/proto_profiler.h",
2158 ],
2159)
2160
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002161# GN target: //src/trace_processor/util:proto_to_args_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002162perfetto_filegroup(
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002163 name = "src_trace_processor_util_proto_to_args_parser",
2164 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00002165 "src/trace_processor/util/debug_annotation_parser.cc",
2166 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002167 "src/trace_processor/util/proto_to_args_parser.cc",
2168 "src/trace_processor/util/proto_to_args_parser.h",
2169 ],
2170)
2171
Deepanjan Roy1e048012020-09-23 12:49:04 -04002172# GN target: //src/trace_processor/util:protozero_to_text
Harvey Yang321c4fc2021-10-25 14:11:50 +08002173perfetto_filegroup(
Deepanjan Roy1e048012020-09-23 12:49:04 -04002174 name = "src_trace_processor_util_protozero_to_text",
2175 srcs = [
2176 "src/trace_processor/util/protozero_to_text.cc",
2177 "src/trace_processor/util/protozero_to_text.h",
2178 ],
2179)
2180
Lalit Magantiea630542022-11-21 19:35:02 +00002181# GN target: //src/trace_processor/util:sql_argument
2182perfetto_filegroup(
2183 name = "src_trace_processor_util_sql_argument",
2184 srcs = [
2185 "src/trace_processor/util/sql_argument.cc",
2186 "src/trace_processor/util/sql_argument.h",
2187 ],
2188)
2189
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00002190# GN target: //src/trace_processor/util:stack_traces_util
2191perfetto_filegroup(
2192 name = "src_trace_processor_util_stack_traces_util",
2193 srcs = [
2194 "src/trace_processor/util/stack_traces_util.cc",
2195 "src/trace_processor/util/stack_traces_util.h",
2196 ],
2197)
2198
Anna Mayzner5980c712022-11-24 15:09:11 +00002199# GN target: //src/trace_processor/util:stdlib
2200perfetto_filegroup(
2201 name = "src_trace_processor_util_stdlib",
2202 srcs = [
2203 "src/trace_processor/util/sql_modules.h",
2204 ],
2205)
2206
Lalit Magantie7107402020-04-15 13:41:12 +01002207# GN target: //src/trace_processor/util:util
Harvey Yang321c4fc2021-10-25 14:11:50 +08002208perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01002209 name = "src_trace_processor_util_util",
2210 srcs = [
2211 "src/trace_processor/util/status_macros.h",
2212 ],
2213)
2214
Primiano Tuccic9d912e2022-07-28 23:30:11 +01002215# GN target: //src/trace_processor/util:zip_reader
2216perfetto_filegroup(
2217 name = "src_trace_processor_util_zip_reader",
2218 srcs = [
2219 "src/trace_processor/util/streaming_line_reader.cc",
2220 "src/trace_processor/util/streaming_line_reader.h",
2221 "src/trace_processor/util/zip_reader.cc",
2222 "src/trace_processor/util/zip_reader.h",
2223 ],
2224)
2225
Lalit Maganti2410f202022-05-27 20:57:53 +01002226# GN target: //src/trace_processor/views:views
2227perfetto_filegroup(
2228 name = "src_trace_processor_views_views",
2229 srcs = [
2230 "src/trace_processor/views/macros.h",
2231 "src/trace_processor/views/macros_internal.h",
Lalit Maganti66127e82022-05-31 18:35:46 +01002232 "src/trace_processor/views/slice_views.h",
2233 "src/trace_processor/views/view_destructors.cc",
Lalit Maganti2410f202022-05-27 20:57:53 +01002234 ],
2235)
2236
Ryan Savitskie65c4052022-03-24 18:22:19 +00002237# GN target: //src/trace_processor:demangle
2238perfetto_cc_library(
2239 name = "src_trace_processor_demangle",
2240 srcs = [
2241 "src/trace_processor/demangle.cc",
2242 ],
2243 hdrs = [
2244 ":include_perfetto_base_base",
2245 ":include_perfetto_ext_base_base",
2246 ":include_perfetto_ext_trace_processor_demangle",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01002247 ":include_perfetto_public_abi_base",
2248 ":include_perfetto_public_base",
Ryan Savitskie65c4052022-03-24 18:22:19 +00002249 ],
Ryan Savitski5d6592d2022-03-31 13:33:23 +01002250 deps = [
2251 ] + PERFETTO_CONFIG.deps.llvm_demangle,
Ryan Savitskie65c4052022-03-24 18:22:19 +00002252 linkstatic = True,
2253)
2254
Eric Secklera7870e62019-11-01 10:11:58 +00002255# GN target: //src/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +08002256perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +00002257 name = "src_trace_processor_export_json",
2258 srcs = [
2259 "src/trace_processor/export_json.cc",
2260 "src/trace_processor/export_json.h",
2261 ],
2262)
2263
Primiano Tucci1d409982019-09-19 10:15:18 +01002264# GN target: //src/trace_processor:lib
Harvey Yang321c4fc2021-10-25 14:11:50 +08002265perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002266 name = "src_trace_processor_lib",
2267 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +01002268 "src/trace_processor/iterator_impl.cc",
2269 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002270 "src/trace_processor/read_trace.cc",
Anna Mayznerec507902022-07-07 15:40:14 +00002271 "src/trace_processor/read_trace_internal.cc",
2272 "src/trace_processor/read_trace_internal.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002273 "src/trace_processor/trace_processor.cc",
2274 "src/trace_processor/trace_processor_impl.cc",
2275 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002276 ],
2277)
2278
Lalit Maganti427b8332020-05-27 16:09:45 +01002279# GN target: //src/trace_processor:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002280perfetto_filegroup(
Lalit Maganti427b8332020-05-27 16:09:45 +01002281 name = "src_trace_processor_metatrace",
2282 srcs = [
2283 "src/trace_processor/tp_metatrace.cc",
2284 "src/trace_processor/tp_metatrace.h",
2285 ],
2286)
2287
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00002288# GN target: //src/trace_processor:storage_minimal
Harvey Yang321c4fc2021-10-25 14:11:50 +08002289perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00002290 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00002291 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002292 "src/trace_processor/forwarding_trace_parser.cc",
2293 "src/trace_processor/forwarding_trace_parser.h",
Primiano Tucci3264b592021-11-08 18:20:51 +00002294 "src/trace_processor/trace_blob.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002295 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00002296 "src/trace_processor/trace_processor_storage.cc",
2297 "src/trace_processor/trace_processor_storage_impl.cc",
2298 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002299 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002300 ],
2301)
2302
Lalit Maganti88e64de2022-11-21 18:29:57 +00002303# GN target: //src/traceconv:gen_cc_trace_descriptor
Hector Dearmana9545e52022-05-17 12:23:25 +01002304perfetto_cc_proto_descriptor(
2305 name = "src_traceconv_gen_cc_trace_descriptor",
2306 deps = [
2307 ":protos_perfetto_trace_descriptor",
2308 ],
2309 outs = [
2310 "src/traceconv/trace.descriptor.h",
2311 ],
2312)
2313
2314# GN target: //src/traceconv:lib
2315perfetto_filegroup(
2316 name = "src_traceconv_lib",
2317 srcs = [
2318 "src/traceconv/deobfuscate_profile.cc",
2319 "src/traceconv/deobfuscate_profile.h",
2320 "src/traceconv/symbolize_profile.cc",
2321 "src/traceconv/symbolize_profile.h",
2322 "src/traceconv/trace_to_hprof.cc",
2323 "src/traceconv/trace_to_hprof.h",
2324 "src/traceconv/trace_to_json.cc",
2325 "src/traceconv/trace_to_json.h",
2326 "src/traceconv/trace_to_profile.cc",
2327 "src/traceconv/trace_to_profile.h",
2328 "src/traceconv/trace_to_systrace.cc",
2329 "src/traceconv/trace_to_systrace.h",
2330 "src/traceconv/trace_to_text.cc",
2331 "src/traceconv/trace_to_text.h",
2332 ],
2333)
2334
2335# GN target: //src/traceconv:main
2336perfetto_filegroup(
2337 name = "src_traceconv_main",
2338 srcs = [
2339 "src/traceconv/main.cc",
2340 ],
2341)
2342
2343# GN target: //src/traceconv:pprofbuilder
2344perfetto_filegroup(
2345 name = "src_traceconv_pprofbuilder",
2346 srcs = [
2347 "src/traceconv/pprof_builder.cc",
2348 ],
2349)
2350
2351# GN target: //src/traceconv:utils
2352perfetto_filegroup(
2353 name = "src_traceconv_utils",
2354 srcs = [
2355 "src/traceconv/utils.cc",
2356 "src/traceconv/utils.h",
2357 ],
2358)
2359
Andy Yu2b0a2132022-04-07 16:17:10 -07002360# GN target: //src/traced/probes/android_game_intervention_list:android_game_intervention_list
2361perfetto_filegroup(
2362 name = "src_traced_probes_android_game_intervention_list_android_game_intervention_list",
2363 srcs = [
2364 "src/traced/probes/android_game_intervention_list/android_game_intervention_list_data_source.cc",
2365 "src/traced/probes/android_game_intervention_list/android_game_intervention_list_data_source.h",
2366 ],
2367)
2368
Primiano Tucci1d409982019-09-19 10:15:18 +01002369# GN target: //src/traced/probes/android_log:android_log
Harvey Yang321c4fc2021-10-25 14:11:50 +08002370perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002371 name = "src_traced_probes_android_log_android_log",
2372 srcs = [
2373 "src/traced/probes/android_log/android_log_data_source.cc",
2374 "src/traced/probes/android_log/android_log_data_source.h",
2375 ],
2376)
2377
Simon MacMullenf0a6b382022-07-06 16:35:55 +00002378# GN target: //src/traced/probes/android_system_property:android_system_property
2379perfetto_filegroup(
2380 name = "src_traced_probes_android_system_property_android_system_property",
2381 srcs = [
2382 "src/traced/probes/android_system_property/android_system_property_data_source.cc",
2383 "src/traced/probes/android_system_property/android_system_property_data_source.h",
2384 ],
2385)
2386
Rafal Slawik8053a682020-04-08 17:26:40 +01002387# GN target: //src/traced/probes/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002388perfetto_filegroup(
Rafal Slawik8053a682020-04-08 17:26:40 +01002389 name = "src_traced_probes_common_common",
2390 srcs = [
2391 "src/traced/probes/common/cpu_freq_info.cc",
2392 "src/traced/probes/common/cpu_freq_info.h",
2393 ],
2394)
2395
Primiano Tucci1d409982019-09-19 10:15:18 +01002396# GN target: //src/traced/probes/filesystem:filesystem
Harvey Yang321c4fc2021-10-25 14:11:50 +08002397perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002398 name = "src_traced_probes_filesystem_filesystem",
2399 srcs = [
2400 "src/traced/probes/filesystem/file_scanner.cc",
2401 "src/traced/probes/filesystem/file_scanner.h",
2402 "src/traced/probes/filesystem/fs_mount.cc",
2403 "src/traced/probes/filesystem/fs_mount.h",
2404 "src/traced/probes/filesystem/inode_file_data_source.cc",
2405 "src/traced/probes/filesystem/inode_file_data_source.h",
2406 "src/traced/probes/filesystem/lru_inode_cache.cc",
2407 "src/traced/probes/filesystem/lru_inode_cache.h",
2408 "src/traced/probes/filesystem/prefix_finder.cc",
2409 "src/traced/probes/filesystem/prefix_finder.h",
2410 "src/traced/probes/filesystem/range_tree.cc",
2411 "src/traced/probes/filesystem/range_tree.h",
2412 ],
2413)
2414
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002415# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002416perfetto_filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002417 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01002418 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002419 "src/traced/probes/ftrace/format_parser/format_parser.cc",
2420 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002421 ],
2422)
2423
2424# GN target: //src/traced/probes/ftrace:ftrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002425perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002426 name = "src_traced_probes_ftrace_ftrace",
2427 srcs = [
2428 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
2429 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
2430 "src/traced/probes/ftrace/atrace_wrapper.cc",
2431 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01002432 "src/traced/probes/ftrace/compact_sched.cc",
2433 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002434 "src/traced/probes/ftrace/cpu_reader.cc",
2435 "src/traced/probes/ftrace/cpu_reader.h",
2436 "src/traced/probes/ftrace/cpu_stats_parser.cc",
2437 "src/traced/probes/ftrace/cpu_stats_parser.h",
2438 "src/traced/probes/ftrace/event_info.cc",
2439 "src/traced/probes/ftrace/event_info.h",
2440 "src/traced/probes/ftrace/event_info_constants.cc",
2441 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002442 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
2443 "src/traced/probes/ftrace/ftrace_config_muxer.h",
2444 "src/traced/probes/ftrace/ftrace_config_utils.cc",
2445 "src/traced/probes/ftrace/ftrace_config_utils.h",
2446 "src/traced/probes/ftrace/ftrace_controller.cc",
2447 "src/traced/probes/ftrace/ftrace_controller.h",
2448 "src/traced/probes/ftrace/ftrace_data_source.cc",
2449 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002450 "src/traced/probes/ftrace/ftrace_metadata.h",
Daniele Di Proietto5c4b4432022-10-05 14:54:11 +01002451 "src/traced/probes/ftrace/ftrace_print_filter.cc",
2452 "src/traced/probes/ftrace/ftrace_print_filter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002453 "src/traced/probes/ftrace/ftrace_stats.cc",
2454 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00002455 "src/traced/probes/ftrace/printk_formats_parser.cc",
2456 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002457 "src/traced/probes/ftrace/proto_translation_table.cc",
2458 "src/traced/probes/ftrace/proto_translation_table.h",
Daniele Di Proietto9ffc5bf2022-10-03 10:03:24 +00002459 "src/traced/probes/ftrace/vendor_tracepoints.cc",
2460 "src/traced/probes/ftrace/vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002461 ],
2462)
2463
Ryan Savitskiec35afb2021-01-29 18:39:36 +00002464# GN target: //src/traced/probes/ftrace:ftrace_procfs
Harvey Yang321c4fc2021-10-25 14:11:50 +08002465perfetto_filegroup(
Ryan Savitskiec35afb2021-01-29 18:39:36 +00002466 name = "src_traced_probes_ftrace_ftrace_procfs",
2467 srcs = [
2468 "src/traced/probes/ftrace/ftrace_procfs.cc",
2469 "src/traced/probes/ftrace/ftrace_procfs.h",
2470 ],
2471)
2472
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002473# GN target: //src/traced/probes/initial_display_state:initial_display_state
Harvey Yang321c4fc2021-10-25 14:11:50 +08002474perfetto_filegroup(
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002475 name = "src_traced_probes_initial_display_state_initial_display_state",
2476 srcs = [
2477 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
2478 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
2479 ],
2480)
2481
Primiano Tucci1d409982019-09-19 10:15:18 +01002482# GN target: //src/traced/probes/metatrace:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002483perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002484 name = "src_traced_probes_metatrace_metatrace",
2485 srcs = [
2486 "src/traced/probes/metatrace/metatrace_data_source.cc",
2487 "src/traced/probes/metatrace/metatrace_data_source.h",
2488 ],
2489)
2490
2491# GN target: //src/traced/probes/packages_list:packages_list
Harvey Yang321c4fc2021-10-25 14:11:50 +08002492perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002493 name = "src_traced_probes_packages_list_packages_list",
2494 srcs = [
2495 "src/traced/probes/packages_list/packages_list_data_source.cc",
2496 "src/traced/probes/packages_list/packages_list_data_source.h",
2497 ],
2498)
2499
Florian Mayer29e17182020-12-23 10:59:02 +00002500# GN target: //src/traced/probes/packages_list:packages_list_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002501perfetto_filegroup(
Florian Mayer29e17182020-12-23 10:59:02 +00002502 name = "src_traced_probes_packages_list_packages_list_parser",
2503 srcs = [
2504 "src/traced/probes/packages_list/packages_list_parser.cc",
2505 "src/traced/probes/packages_list/packages_list_parser.h",
2506 ],
2507)
2508
Primiano Tucci1d409982019-09-19 10:15:18 +01002509# GN target: //src/traced/probes/power:power
Harvey Yang321c4fc2021-10-25 14:11:50 +08002510perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002511 name = "src_traced_probes_power_power",
2512 srcs = [
2513 "src/traced/probes/power/android_power_data_source.cc",
2514 "src/traced/probes/power/android_power_data_source.h",
Chinglin Yu819ef1a2021-11-15 22:25:05 +08002515 "src/traced/probes/power/linux_power_sysfs_data_source.cc",
2516 "src/traced/probes/power/linux_power_sysfs_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002517 ],
2518)
2519
2520# GN target: //src/traced/probes/ps:ps
Harvey Yang321c4fc2021-10-25 14:11:50 +08002521perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002522 name = "src_traced_probes_ps_ps",
2523 srcs = [
2524 "src/traced/probes/ps/process_stats_data_source.cc",
2525 "src/traced/probes/ps/process_stats_data_source.h",
2526 ],
2527)
2528
Hector Dearman09db5b02022-07-11 13:35:23 +01002529# GN target: //src/traced/probes/statsd_client:statsd_client
2530perfetto_filegroup(
2531 name = "src_traced_probes_statsd_client_statsd_client",
2532 srcs = [
Hector Dearman7d7193a2023-03-20 14:10:06 +00002533 "src/traced/probes/statsd_client/common.cc",
2534 "src/traced/probes/statsd_client/common.h",
Hector Dearmanff7abd42023-03-22 19:11:35 +00002535 "src/traced/probes/statsd_client/statsd_binder_data_source.cc",
2536 "src/traced/probes/statsd_client/statsd_binder_data_source.h",
Hector Dearman09db5b02022-07-11 13:35:23 +01002537 ],
2538)
2539
Primiano Tucci1d409982019-09-19 10:15:18 +01002540# GN target: //src/traced/probes/sys_stats:sys_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +08002541perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002542 name = "src_traced_probes_sys_stats_sys_stats",
2543 srcs = [
2544 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
2545 "src/traced/probes/sys_stats/sys_stats_data_source.h",
2546 ],
2547)
2548
Rafal Slawikb013a112020-04-03 16:12:02 +01002549# GN target: //src/traced/probes/system_info:system_info
Harvey Yang321c4fc2021-10-25 14:11:50 +08002550perfetto_filegroup(
Rafal Slawikb013a112020-04-03 16:12:02 +01002551 name = "src_traced_probes_system_info_system_info",
2552 srcs = [
2553 "src/traced/probes/system_info/system_info_data_source.cc",
2554 "src/traced/probes/system_info/system_info_data_source.h",
2555 ],
2556)
2557
Primiano Tucci1d409982019-09-19 10:15:18 +01002558# GN target: //src/traced/probes:data_source
Harvey Yang321c4fc2021-10-25 14:11:50 +08002559perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002560 name = "src_traced_probes_data_source",
2561 srcs = [
2562 "src/traced/probes/probes_data_source.cc",
2563 "src/traced/probes/probes_data_source.h",
2564 ],
2565)
2566
2567# GN target: //src/traced/probes:probes
Harvey Yang321c4fc2021-10-25 14:11:50 +08002568perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002569 name = "src_traced_probes_probes",
2570 srcs = [
2571 "src/traced/probes/probes.cc",
2572 ],
2573)
2574
2575# GN target: //src/traced/probes:probes_src
Harvey Yang321c4fc2021-10-25 14:11:50 +08002576perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002577 name = "src_traced_probes_probes_src",
2578 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05002579 "src/traced/probes/kmem_activity_trigger.cc",
2580 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002581 "src/traced/probes/probes_producer.cc",
2582 "src/traced/probes/probes_producer.h",
2583 ],
2584)
2585
2586# GN target: //src/traced/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002587perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002588 name = "src_traced_service_service",
2589 srcs = [
2590 "src/traced/service/builtin_producer.cc",
2591 "src/traced/service/builtin_producer.h",
2592 "src/traced/service/service.cc",
2593 ],
2594)
2595
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002596# GN target: //src/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +08002597perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002598 name = "src_tracing_core_core",
2599 srcs = [
Primiano Tuccicc1f28b2023-04-11 15:57:30 +02002600 "src/tracing/core/histogram.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002601 "src/tracing/core/id_allocator.cc",
2602 "src/tracing/core/id_allocator.h",
2603 "src/tracing/core/null_trace_writer.cc",
2604 "src/tracing/core/null_trace_writer.h",
2605 "src/tracing/core/patch_list.h",
2606 "src/tracing/core/shared_memory_abi.cc",
2607 "src/tracing/core/shared_memory_arbiter_impl.cc",
2608 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002609 "src/tracing/core/trace_packet.cc",
2610 "src/tracing/core/trace_writer_impl.cc",
2611 "src/tracing/core/trace_writer_impl.h",
2612 "src/tracing/core/virtual_destructors.cc",
2613 ],
2614)
2615
2616# GN target: //src/tracing/core:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002617perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002618 name = "src_tracing_core_service",
2619 srcs = [
2620 "src/tracing/core/metatrace_writer.cc",
2621 "src/tracing/core/metatrace_writer.h",
2622 "src/tracing/core/packet_stream_validator.cc",
2623 "src/tracing/core/packet_stream_validator.h",
2624 "src/tracing/core/trace_buffer.cc",
2625 "src/tracing/core/trace_buffer.h",
2626 "src/tracing/core/tracing_service_impl.cc",
2627 "src/tracing/core/tracing_service_impl.h",
2628 ],
2629)
2630
2631# GN target: //src/tracing/ipc/consumer:consumer
Harvey Yang321c4fc2021-10-25 14:11:50 +08002632perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002633 name = "src_tracing_ipc_consumer_consumer",
2634 srcs = [
2635 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
2636 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
2637 ],
2638)
2639
2640# GN target: //src/tracing/ipc/producer:producer
Harvey Yang321c4fc2021-10-25 14:11:50 +08002641perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002642 name = "src_tracing_ipc_producer_producer",
2643 srcs = [
2644 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
2645 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
2646 ],
2647)
2648
2649# GN target: //src/tracing/ipc/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002650perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002651 name = "src_tracing_ipc_service_service",
2652 srcs = [
2653 "src/tracing/ipc/service/consumer_ipc_service.cc",
2654 "src/tracing/ipc/service/consumer_ipc_service.h",
2655 "src/tracing/ipc/service/producer_ipc_service.cc",
2656 "src/tracing/ipc/service/producer_ipc_service.h",
2657 "src/tracing/ipc/service/service_ipc_host_impl.cc",
2658 "src/tracing/ipc/service/service_ipc_host_impl.h",
2659 ],
2660)
2661
2662# GN target: //src/tracing/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002663perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002664 name = "src_tracing_ipc_common",
2665 srcs = [
Eric Seckler14a22db2020-02-03 13:47:08 +00002666 "src/tracing/ipc/memfd.cc",
2667 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002668 "src/tracing/ipc/posix_shared_memory.cc",
2669 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01002670 "src/tracing/ipc/shared_memory_windows.cc",
2671 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002672 ],
2673)
2674
Primiano Tucci8761a312021-11-25 17:17:23 +00002675# GN target: //src/tracing/ipc:default_socket
2676perfetto_filegroup(
2677 name = "src_tracing_ipc_default_socket",
2678 srcs = [
2679 "src/tracing/ipc/default_socket.cc",
2680 ],
2681)
2682
Primiano Tucci3feec552020-02-04 11:14:42 +00002683# GN target: //src/tracing:client_api_without_backends
Harvey Yang321c4fc2021-10-25 14:11:50 +08002684perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00002685 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002686 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002687 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002688 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00002689 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00002690 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00002691 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00002692 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00002693 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00002694 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00002695 "src/tracing/internal/tracing_muxer_fake.cc",
2696 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002697 "src/tracing/internal/tracing_muxer_impl.cc",
2698 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01002699 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00002700 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002701 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00002702 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002703 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01002704 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00002705 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01002706 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00002707 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002708 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002709 "src/tracing/virtual_destructors.cc",
2710 ],
2711)
2712
Primiano Tucci1d409982019-09-19 10:15:18 +01002713# GN target: //src/tracing:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002714perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002715 name = "src_tracing_common",
2716 srcs = [
2717 "src/tracing/trace_writer_base.cc",
2718 ],
2719)
2720
Primiano Tucci55b4d912020-01-28 11:17:51 +00002721# GN target: //src/tracing:in_process_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08002722perfetto_filegroup(
Primiano Tucci55b4d912020-01-28 11:17:51 +00002723 name = "src_tracing_in_process_backend",
2724 srcs = [
2725 "src/tracing/internal/in_process_tracing_backend.cc",
2726 ],
2727)
2728
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01002729# GN target: //src/tracing:platform_impl
Harvey Yang321c4fc2021-10-25 14:11:50 +08002730perfetto_filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01002731 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002732 srcs = [
2733 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01002734 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002735 ],
2736)
2737
Primiano Tucci3feec552020-02-04 11:14:42 +00002738# GN target: //src/tracing:system_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08002739perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00002740 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00002741 srcs = [
2742 "src/tracing/internal/system_tracing_backend.cc",
2743 ],
2744)
2745
Primiano Tucci1d409982019-09-19 10:15:18 +01002746# ##############################################################################
2747# Proto libraries
2748# ##############################################################################
2749
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002750# GN target: [//protos/perfetto/config:source_set]
2751perfetto_proto_library(
2752 name = "config_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002753 visibility = [
2754 "//visibility:public",
2755 ],
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002756 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002757 ":protos_perfetto_common_protos",
2758 ":protos_perfetto_config_android_protos",
2759 ":protos_perfetto_config_ftrace_protos",
2760 ":protos_perfetto_config_gpu_protos",
2761 ":protos_perfetto_config_inode_file_protos",
2762 ":protos_perfetto_config_interceptors_protos",
2763 ":protos_perfetto_config_power_protos",
2764 ":protos_perfetto_config_process_stats_protos",
2765 ":protos_perfetto_config_profiling_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002766 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002767 ":protos_perfetto_config_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002768 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01002769 ":protos_perfetto_config_system_info_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002770 ":protos_perfetto_config_track_event_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002771 ],
2772)
2773
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002774# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002775perfetto_cc_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002776 name = "config_cc_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002777 visibility = [
2778 "//visibility:public",
2779 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002780 deps = [
2781 ":config_proto",
2782 ],
2783)
2784
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002785# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002786perfetto_java_proto_library(
2787 name = "config_java_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002788 visibility = [
2789 "//visibility:public",
2790 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002791 deps = [
2792 ":config_proto",
2793 ],
2794)
2795
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002796# GN target: [//protos/perfetto/config:source_set]
2797perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002798 name = "config_java_proto_lite",
Lalit Maganti7d418712023-04-13 13:45:14 +01002799 visibility = [
2800 "//visibility:public",
2801 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002802 deps = [
2803 ":config_proto",
2804 ],
2805)
2806
Lalit Maganti06f638c2022-04-01 18:44:14 +01002807# GN target: [//protos/perfetto/config:source_set]
2808perfetto_py_proto_library(
2809 name = "config_py_pb2",
Lalit Maganti7d418712023-04-13 13:45:14 +01002810 visibility = [
2811 "//visibility:public",
2812 ],
Lalit Maganti06f638c2022-04-01 18:44:14 +01002813 deps = [
2814 ":config_proto",
2815 ],
2816)
2817
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002818# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2819perfetto_proto_library(
2820 name = "trace_proto",
2821 visibility = PERFETTO_CONFIG.public_visibility,
2822 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002823 ":protos_perfetto_common_protos",
2824 ":protos_perfetto_config_android_protos",
2825 ":protos_perfetto_config_ftrace_protos",
2826 ":protos_perfetto_config_gpu_protos",
2827 ":protos_perfetto_config_inode_file_protos",
2828 ":protos_perfetto_config_interceptors_protos",
2829 ":protos_perfetto_config_power_protos",
2830 ":protos_perfetto_config_process_stats_protos",
2831 ":protos_perfetto_config_profiling_protos",
2832 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002833 ":protos_perfetto_config_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002834 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01002835 ":protos_perfetto_config_system_info_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002836 ":protos_perfetto_config_track_event_protos",
2837 ":protos_perfetto_trace_android_protos",
2838 ":protos_perfetto_trace_chrome_protos",
2839 ":protos_perfetto_trace_filesystem_protos",
2840 ":protos_perfetto_trace_ftrace_protos",
2841 ":protos_perfetto_trace_gpu_protos",
2842 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002843 ":protos_perfetto_trace_minimal_protos",
2844 ":protos_perfetto_trace_non_minimal_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002845 ":protos_perfetto_trace_perfetto_protos",
2846 ":protos_perfetto_trace_power_protos",
2847 ":protos_perfetto_trace_profiling_protos",
2848 ":protos_perfetto_trace_ps_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002849 ":protos_perfetto_trace_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002850 ":protos_perfetto_trace_sys_stats_protos",
2851 ":protos_perfetto_trace_system_info_protos",
2852 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00002853 ":protos_perfetto_trace_translation_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002854 ],
2855)
2856
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002857# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002858perfetto_cc_proto_library(
2859 name = "trace_cc_proto",
2860 visibility = PERFETTO_CONFIG.public_visibility,
2861 deps = [
2862 ":trace_proto",
2863 ],
2864)
2865
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002866# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002867perfetto_java_proto_library(
2868 name = "trace_java_proto",
2869 visibility = PERFETTO_CONFIG.public_visibility,
2870 deps = [
2871 ":trace_proto",
2872 ],
2873)
2874
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002875# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2876perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002877 name = "trace_java_proto_lite",
2878 visibility = PERFETTO_CONFIG.public_visibility,
2879 deps = [
2880 ":trace_proto",
2881 ],
2882)
2883
Lalit Maganti06f638c2022-04-01 18:44:14 +01002884# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2885perfetto_py_proto_library(
2886 name = "trace_py_pb2",
2887 visibility = PERFETTO_CONFIG.public_visibility,
2888 deps = [
2889 ":trace_proto",
2890 ],
2891)
2892
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002893# GN target: [//protos/perfetto/metrics:source_set]
2894perfetto_proto_library(
2895 name = "metrics_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002896 visibility = [
2897 "//visibility:public",
2898 ],
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002899 deps = [
2900 ":protos_perfetto_metrics_android_protos",
2901 ":protos_perfetto_metrics_protos",
2902 ],
2903)
2904
2905# GN target: [//protos/perfetto/metrics:source_set]
2906perfetto_cc_proto_library(
2907 name = "metrics_cc_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002908 visibility = [
2909 "//visibility:public",
2910 ],
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002911 deps = [
2912 ":metrics_proto",
2913 ],
2914)
2915
2916# GN target: [//protos/perfetto/metrics:source_set]
2917perfetto_java_proto_library(
2918 name = "metrics_java_proto",
Lalit Maganti7d418712023-04-13 13:45:14 +01002919 visibility = [
2920 "//visibility:public",
2921 ],
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002922 deps = [
2923 ":metrics_proto",
2924 ],
2925)
2926
2927# GN target: [//protos/perfetto/metrics:source_set]
2928perfetto_java_lite_proto_library(
2929 name = "metrics_java_proto_lite",
Lalit Maganti7d418712023-04-13 13:45:14 +01002930 visibility = [
2931 "//visibility:public",
2932 ],
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002933 deps = [
2934 ":metrics_proto",
2935 ],
2936)
2937
Lalit Maganti06f638c2022-04-01 18:44:14 +01002938# GN target: [//protos/perfetto/metrics:source_set]
2939perfetto_py_proto_library(
2940 name = "metrics_py_pb2",
Lalit Maganti7d418712023-04-13 13:45:14 +01002941 visibility = [
2942 "//visibility:public",
2943 ],
Lalit Maganti06f638c2022-04-01 18:44:14 +01002944 deps = [
2945 ":metrics_proto",
2946 ],
2947)
2948
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002949# GN target: [//protos/third_party/chromium:source_set]
2950perfetto_proto_library(
2951 name = "chromium_proto",
2952 visibility = PERFETTO_CONFIG.public_visibility,
2953 deps = [
2954 ":protos_perfetto_trace_track_event_protos",
2955 ":protos_third_party_chromium_protos",
2956 ],
2957)
2958
2959# GN target: [//protos/third_party/chromium:source_set]
2960perfetto_cc_proto_library(
2961 name = "chromium_cc_proto",
2962 visibility = PERFETTO_CONFIG.public_visibility,
2963 deps = [
2964 ":chromium_proto",
2965 ],
2966)
2967
2968# GN target: [//protos/third_party/chromium:source_set]
2969perfetto_java_proto_library(
2970 name = "chromium_java_proto",
2971 visibility = PERFETTO_CONFIG.public_visibility,
2972 deps = [
2973 ":chromium_proto",
2974 ],
2975)
2976
2977# GN target: [//protos/third_party/chromium:source_set]
2978perfetto_java_lite_proto_library(
2979 name = "chromium_java_proto_lite",
2980 visibility = PERFETTO_CONFIG.public_visibility,
2981 deps = [
2982 ":chromium_proto",
2983 ],
2984)
2985
Lalit Maganti06f638c2022-04-01 18:44:14 +01002986# GN target: [//protos/third_party/chromium:source_set]
2987perfetto_py_proto_library(
2988 name = "chromium_py_pb2",
2989 visibility = PERFETTO_CONFIG.public_visibility,
2990 deps = [
2991 ":chromium_proto",
2992 ],
2993)
2994
Igor Kraskevich833f3cb2022-03-29 14:47:35 +00002995# GN target: [//protos/perfetto/metrics/chrome:source_set]
2996perfetto_proto_library(
2997 name = "chrome_metrics_proto",
2998 visibility = PERFETTO_CONFIG.public_visibility,
2999 deps = [
3000 ":protos_perfetto_metrics_android_protos",
3001 ":protos_perfetto_metrics_chrome_protos",
3002 ":protos_perfetto_metrics_custom_options_protos",
3003 ":protos_perfetto_metrics_protos",
3004 ],
3005)
3006
3007# GN target: [//protos/perfetto/metrics/chrome:source_set]
3008perfetto_cc_proto_library(
3009 name = "chrome_metrics_cc_proto",
3010 visibility = PERFETTO_CONFIG.public_visibility,
3011 deps = [
3012 ":chrome_metrics_proto",
3013 ],
3014)
3015
3016# GN target: [//protos/perfetto/metrics/chrome:source_set]
3017perfetto_java_proto_library(
3018 name = "chrome_metrics_java_proto",
3019 visibility = PERFETTO_CONFIG.public_visibility,
3020 deps = [
3021 ":chrome_metrics_proto",
3022 ],
3023)
3024
3025# GN target: [//protos/perfetto/metrics/chrome:source_set]
3026perfetto_java_lite_proto_library(
3027 name = "chrome_metrics_java_proto_lite",
3028 visibility = PERFETTO_CONFIG.public_visibility,
3029 deps = [
3030 ":chrome_metrics_proto",
3031 ],
3032)
3033
Lalit Maganti06f638c2022-04-01 18:44:14 +01003034# GN target: [//protos/perfetto/metrics/chrome:source_set]
3035perfetto_py_proto_library(
3036 name = "chrome_metrics_py_pb2",
3037 visibility = PERFETTO_CONFIG.public_visibility,
3038 deps = [
3039 ":chrome_metrics_proto",
3040 ],
3041)
3042
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003043# GN target: //protos/perfetto/common:cpp
3044perfetto_cc_protocpp_library(
3045 name = "protos_perfetto_common_cpp",
Lalit Maganti16c28ca2022-02-17 12:20:07 +00003046 deps = [
3047 ":protos_perfetto_common_protos",
3048 ],
3049)
3050
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003051# GN target: //protos/perfetto/common:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003052perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003053 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003054 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003055 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003056 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01003057 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003058 "protos/perfetto/common/commit_data_request.proto",
3059 "protos/perfetto/common/data_source_descriptor.proto",
3060 "protos/perfetto/common/descriptor.proto",
Daniele Di Proietto97c33812022-02-21 13:49:52 +00003061 "protos/perfetto/common/ftrace_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003062 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00003063 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003064 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00003065 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003066 "protos/perfetto/common/sys_stats_counters.proto",
3067 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00003068 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003069 "protos/perfetto/common/tracing_service_state.proto",
3070 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003071 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003072 visibility = [
3073 PERFETTO_CONFIG.proto_library_visibility,
3074 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003075)
3076
3077# GN target: //protos/perfetto/common:zero
3078perfetto_cc_protozero_library(
3079 name = "protos_perfetto_common_zero",
3080 deps = [
3081 ":protos_perfetto_common_protos",
3082 ],
3083)
3084
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003085# GN target: //protos/perfetto/config/android:cpp
3086perfetto_cc_protocpp_library(
3087 name = "protos_perfetto_config_android_cpp",
3088 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003089 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003090 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003091 ],
3092)
3093
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003094# GN target: //protos/perfetto/config/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003095perfetto_proto_library(
3096 name = "protos_perfetto_config_android_protos",
3097 srcs = [
Andy Yu2e3c9b62022-05-31 11:23:18 -07003098 "protos/perfetto/config/android/android_game_intervention_list_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003099 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01003100 "protos/perfetto/config/android/android_polled_state_config.proto",
Simon MacMullenf0a6b382022-07-06 16:35:55 +00003101 "protos/perfetto/config/android/android_system_property_config.proto",
Ryan Zuklie1c0a5002022-11-18 17:03:37 -08003102 "protos/perfetto/config/android/network_trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003103 "protos/perfetto/config/android/packages_list_config.proto",
3104 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003105 visibility = [
3106 PERFETTO_CONFIG.proto_library_visibility,
3107 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003108 deps = [
3109 ":protos_perfetto_common_protos",
3110 ],
3111)
3112
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003113# GN target: //protos/perfetto/config/android:zero
3114perfetto_cc_protozero_library(
3115 name = "protos_perfetto_config_android_zero",
3116 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003117 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003118 ":protos_perfetto_config_android_protos",
3119 ],
3120)
3121
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003122# GN target: //protos/perfetto/config:cpp
3123perfetto_cc_protocpp_library(
3124 name = "protos_perfetto_config_cpp",
3125 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01003126 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003127 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003128 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003129 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003130 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003131 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003132 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003133 ":protos_perfetto_config_process_stats_cpp",
3134 ":protos_perfetto_config_profiling_cpp",
3135 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003136 ":protos_perfetto_config_statsd_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003137 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003138 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003139 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003140 ],
3141)
3142
Hector Dearmana1d75242020-10-02 09:47:24 +01003143# GN target: //protos/perfetto/config:descriptor
3144perfetto_proto_descriptor(
3145 name = "protos_perfetto_config_descriptor",
3146 deps = [
3147 ":protos_perfetto_config_protos",
3148 ],
3149 outs = [
3150 "protos_perfetto_config_descriptor.bin",
3151 ],
3152)
3153
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003154# GN target: //protos/perfetto/config/ftrace:cpp
3155perfetto_cc_protocpp_library(
3156 name = "protos_perfetto_config_ftrace_cpp",
3157 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003158 ":protos_perfetto_config_ftrace_protos",
3159 ],
3160)
3161
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003162# GN target: //protos/perfetto/config/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003163perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003164 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003165 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003166 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003167 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003168 visibility = [
3169 PERFETTO_CONFIG.proto_library_visibility,
3170 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003171)
3172
3173# GN target: //protos/perfetto/config/ftrace:zero
3174perfetto_cc_protozero_library(
3175 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003176 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003177 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003178 ],
3179)
3180
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003181# GN target: //protos/perfetto/config/gpu:cpp
3182perfetto_cc_protocpp_library(
3183 name = "protos_perfetto_config_gpu_cpp",
3184 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003185 ":protos_perfetto_config_gpu_protos",
3186 ],
3187)
3188
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003189# GN target: //protos/perfetto/config/gpu:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003190perfetto_proto_library(
3191 name = "protos_perfetto_config_gpu_protos",
3192 srcs = [
3193 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05003194 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003195 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003196 visibility = [
3197 PERFETTO_CONFIG.proto_library_visibility,
3198 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003199)
3200
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003201# GN target: //protos/perfetto/config/gpu:zero
3202perfetto_cc_protozero_library(
3203 name = "protos_perfetto_config_gpu_zero",
3204 deps = [
3205 ":protos_perfetto_config_gpu_protos",
3206 ],
3207)
3208
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003209# GN target: //protos/perfetto/config/inode_file:cpp
3210perfetto_cc_protocpp_library(
3211 name = "protos_perfetto_config_inode_file_cpp",
3212 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003213 ":protos_perfetto_config_inode_file_protos",
3214 ],
3215)
3216
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003217# GN target: //protos/perfetto/config/inode_file:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003218perfetto_proto_library(
3219 name = "protos_perfetto_config_inode_file_protos",
3220 srcs = [
3221 "protos/perfetto/config/inode_file/inode_file_config.proto",
3222 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003223 visibility = [
3224 PERFETTO_CONFIG.proto_library_visibility,
3225 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003226)
3227
3228# GN target: //protos/perfetto/config/inode_file:zero
3229perfetto_cc_protozero_library(
3230 name = "protos_perfetto_config_inode_file_zero",
3231 deps = [
3232 ":protos_perfetto_config_inode_file_protos",
3233 ],
3234)
3235
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003236# GN target: //protos/perfetto/config/interceptors:cpp
3237perfetto_cc_protocpp_library(
3238 name = "protos_perfetto_config_interceptors_cpp",
3239 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003240 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003241 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003242 ],
3243)
3244
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003245# GN target: //protos/perfetto/config/interceptors:source_set
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003246perfetto_proto_library(
3247 name = "protos_perfetto_config_interceptors_protos",
3248 srcs = [
3249 "protos/perfetto/config/interceptors/console_config.proto",
3250 ],
3251 visibility = [
3252 PERFETTO_CONFIG.proto_library_visibility,
3253 ],
3254 deps = [
3255 ":protos_perfetto_common_protos",
3256 ],
3257)
3258
3259# GN target: //protos/perfetto/config/interceptors:zero
3260perfetto_cc_protozero_library(
3261 name = "protos_perfetto_config_interceptors_zero",
3262 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003263 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003264 ":protos_perfetto_config_interceptors_protos",
3265 ],
3266)
3267
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003268# GN target: //protos/perfetto/config/power:cpp
3269perfetto_cc_protocpp_library(
3270 name = "protos_perfetto_config_power_cpp",
3271 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003272 ":protos_perfetto_config_power_protos",
3273 ],
3274)
3275
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003276# GN target: //protos/perfetto/config/power:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003277perfetto_proto_library(
3278 name = "protos_perfetto_config_power_protos",
3279 srcs = [
3280 "protos/perfetto/config/power/android_power_config.proto",
3281 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003282 visibility = [
3283 PERFETTO_CONFIG.proto_library_visibility,
3284 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003285)
3286
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003287# GN target: //protos/perfetto/config/power:zero
3288perfetto_cc_protozero_library(
3289 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003290 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003291 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003292 ],
3293)
3294
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003295# GN target: //protos/perfetto/config/process_stats:cpp
3296perfetto_cc_protocpp_library(
3297 name = "protos_perfetto_config_process_stats_cpp",
3298 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003299 ":protos_perfetto_config_process_stats_protos",
3300 ],
3301)
3302
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003303# GN target: //protos/perfetto/config/process_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003304perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003305 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003306 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003307 "protos/perfetto/config/process_stats/process_stats_config.proto",
3308 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003309 visibility = [
3310 PERFETTO_CONFIG.proto_library_visibility,
3311 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003312)
3313
3314# GN target: //protos/perfetto/config/process_stats:zero
3315perfetto_cc_protozero_library(
3316 name = "protos_perfetto_config_process_stats_zero",
3317 deps = [
3318 ":protos_perfetto_config_process_stats_protos",
3319 ],
3320)
3321
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003322# GN target: //protos/perfetto/config/profiling:cpp
3323perfetto_cc_protocpp_library(
3324 name = "protos_perfetto_config_profiling_cpp",
3325 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00003326 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003327 ":protos_perfetto_config_profiling_protos",
3328 ],
3329)
3330
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003331# GN target: //protos/perfetto/config/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003332perfetto_proto_library(
3333 name = "protos_perfetto_config_profiling_protos",
3334 srcs = [
3335 "protos/perfetto/config/profiling/heapprofd_config.proto",
3336 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00003337 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003338 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003339 visibility = [
3340 PERFETTO_CONFIG.proto_library_visibility,
3341 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00003342 deps = [
3343 ":protos_perfetto_common_protos",
3344 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003345)
3346
3347# GN target: //protos/perfetto/config/profiling:zero
3348perfetto_cc_protozero_library(
3349 name = "protos_perfetto_config_profiling_zero",
3350 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003351 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003352 ":protos_perfetto_config_profiling_protos",
3353 ],
3354)
3355
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003356# GN target: //protos/perfetto/config:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003357perfetto_proto_library(
3358 name = "protos_perfetto_config_protos",
3359 srcs = [
3360 "protos/perfetto/config/chrome/chrome_config.proto",
Etienne Pierre-dorayd8663352023-02-28 21:24:56 +00003361 "protos/perfetto/config/chrome/scenario_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003362 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00003363 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02003364 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003365 "protos/perfetto/config/test_config.proto",
3366 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003367 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003368 visibility = [
3369 PERFETTO_CONFIG.proto_library_visibility,
3370 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003371 deps = [
3372 ":protos_perfetto_common_protos",
3373 ":protos_perfetto_config_android_protos",
3374 ":protos_perfetto_config_ftrace_protos",
3375 ":protos_perfetto_config_gpu_protos",
3376 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003377 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003378 ":protos_perfetto_config_power_protos",
3379 ":protos_perfetto_config_process_stats_protos",
3380 ":protos_perfetto_config_profiling_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003381 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003382 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003383 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003384 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003385 ],
3386)
3387
Hector Dearman5974de02022-06-23 15:31:40 +01003388# GN target: //protos/perfetto/config/statsd:cpp
3389perfetto_cc_protocpp_library(
3390 name = "protos_perfetto_config_statsd_cpp",
3391 deps = [
3392 ":protos_perfetto_config_statsd_protos",
3393 ],
3394)
3395
3396# GN target: //protos/perfetto/config/statsd:source_set
3397perfetto_proto_library(
3398 name = "protos_perfetto_config_statsd_protos",
3399 srcs = [
3400 "protos/perfetto/config/statsd/atom_ids.proto",
3401 "protos/perfetto/config/statsd/statsd_tracing_config.proto",
3402 ],
3403 visibility = [
3404 PERFETTO_CONFIG.proto_library_visibility,
3405 ],
3406)
3407
3408# GN target: //protos/perfetto/config/statsd:zero
3409perfetto_cc_protozero_library(
3410 name = "protos_perfetto_config_statsd_zero",
3411 deps = [
3412 ":protos_perfetto_config_statsd_protos",
3413 ],
3414)
3415
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003416# GN target: //protos/perfetto/config/sys_stats:cpp
3417perfetto_cc_protocpp_library(
3418 name = "protos_perfetto_config_sys_stats_cpp",
3419 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003420 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003421 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003422 ],
3423)
3424
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003425# GN target: //protos/perfetto/config/sys_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003426perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003427 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003428 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003429 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003430 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003431 visibility = [
3432 PERFETTO_CONFIG.proto_library_visibility,
3433 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003434 deps = [
3435 ":protos_perfetto_common_protos",
3436 ],
3437)
3438
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003439# GN target: //protos/perfetto/config/sys_stats:zero
3440perfetto_cc_protozero_library(
3441 name = "protos_perfetto_config_sys_stats_zero",
3442 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003443 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003444 ":protos_perfetto_config_sys_stats_protos",
3445 ],
3446)
3447
Hector Dearman48047d12022-08-02 14:00:46 +01003448# GN target: //protos/perfetto/config/system_info:cpp
3449perfetto_cc_protocpp_library(
3450 name = "protos_perfetto_config_system_info_cpp",
3451 deps = [
3452 ":protos_perfetto_common_cpp",
3453 ":protos_perfetto_config_system_info_protos",
3454 ],
3455)
3456
3457# GN target: //protos/perfetto/config/system_info:source_set
3458perfetto_proto_library(
3459 name = "protos_perfetto_config_system_info_protos",
3460 srcs = [
3461 "protos/perfetto/config/system_info/system_info.proto",
3462 ],
3463 visibility = [
3464 PERFETTO_CONFIG.proto_library_visibility,
3465 ],
3466 deps = [
3467 ":protos_perfetto_common_protos",
3468 ],
3469)
3470
3471# GN target: //protos/perfetto/config/system_info:zero
3472perfetto_cc_protozero_library(
3473 name = "protos_perfetto_config_system_info_zero",
3474 deps = [
3475 ":protos_perfetto_common_zero",
3476 ":protos_perfetto_config_system_info_protos",
3477 ],
3478)
3479
Sami Kyostila38cd0412020-02-12 17:09:52 +00003480# GN target: //protos/perfetto/config/track_event:cpp
3481perfetto_cc_protocpp_library(
3482 name = "protos_perfetto_config_track_event_cpp",
3483 deps = [
3484 ":protos_perfetto_config_track_event_protos",
3485 ],
3486)
3487
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003488# GN target: //protos/perfetto/config/track_event:source_set
Sami Kyostila38cd0412020-02-12 17:09:52 +00003489perfetto_proto_library(
3490 name = "protos_perfetto_config_track_event_protos",
3491 srcs = [
3492 "protos/perfetto/config/track_event/track_event_config.proto",
3493 ],
3494 visibility = [
3495 PERFETTO_CONFIG.proto_library_visibility,
3496 ],
3497)
3498
3499# GN target: //protos/perfetto/config/track_event:zero
3500perfetto_cc_protozero_library(
3501 name = "protos_perfetto_config_track_event_zero",
3502 deps = [
3503 ":protos_perfetto_config_track_event_protos",
3504 ],
3505)
3506
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003507# GN target: //protos/perfetto/config:zero
3508perfetto_cc_protozero_library(
3509 name = "protos_perfetto_config_zero",
3510 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003511 ":protos_perfetto_common_zero",
3512 ":protos_perfetto_config_android_zero",
3513 ":protos_perfetto_config_ftrace_zero",
3514 ":protos_perfetto_config_gpu_zero",
3515 ":protos_perfetto_config_inode_file_zero",
3516 ":protos_perfetto_config_interceptors_zero",
3517 ":protos_perfetto_config_power_zero",
3518 ":protos_perfetto_config_process_stats_zero",
3519 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003520 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003521 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003522 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01003523 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003524 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003525 ],
3526)
3527
Primiano Tuccie8020f92019-11-26 13:24:01 +00003528# GN target: //protos/perfetto/ipc:cpp
3529perfetto_cc_protocpp_library(
3530 name = "protos_perfetto_ipc_cpp",
3531 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00003532 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003533 ":protos_perfetto_config_android_cpp",
3534 ":protos_perfetto_config_cpp",
3535 ":protos_perfetto_config_ftrace_cpp",
3536 ":protos_perfetto_config_gpu_cpp",
3537 ":protos_perfetto_config_inode_file_cpp",
3538 ":protos_perfetto_config_interceptors_cpp",
3539 ":protos_perfetto_config_power_cpp",
3540 ":protos_perfetto_config_process_stats_cpp",
3541 ":protos_perfetto_config_profiling_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +01003542 ":protos_perfetto_config_statsd_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003543 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003544 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003545 ":protos_perfetto_config_track_event_cpp",
3546 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003547 ],
3548)
3549
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003550# GN target: //protos/perfetto/ipc:ipc
3551perfetto_cc_ipc_library(
3552 name = "protos_perfetto_ipc_ipc",
3553 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00003554 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003555 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003556 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003557 ":protos_perfetto_config_ftrace_cpp",
3558 ":protos_perfetto_config_gpu_cpp",
3559 ":protos_perfetto_config_inode_file_cpp",
3560 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003561 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003562 ":protos_perfetto_config_process_stats_cpp",
3563 ":protos_perfetto_config_profiling_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +01003564 ":protos_perfetto_config_statsd_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003565 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003566 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003567 ":protos_perfetto_config_track_event_cpp",
3568 ":protos_perfetto_ipc_cpp",
3569 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003570 ],
3571)
3572
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003573# GN target: //protos/perfetto/ipc:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003574perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00003575 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003576 srcs = [
3577 "protos/perfetto/ipc/consumer_port.proto",
3578 "protos/perfetto/ipc/producer_port.proto",
3579 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003580 visibility = [
3581 PERFETTO_CONFIG.proto_library_visibility,
3582 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003583 deps = [
3584 ":protos_perfetto_common_protos",
3585 ":protos_perfetto_config_android_protos",
3586 ":protos_perfetto_config_ftrace_protos",
3587 ":protos_perfetto_config_gpu_protos",
3588 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003589 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003590 ":protos_perfetto_config_power_protos",
3591 ":protos_perfetto_config_process_stats_protos",
3592 ":protos_perfetto_config_profiling_protos",
3593 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003594 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003595 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003596 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003597 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003598 ],
3599)
3600
Primiano Tuccib3e08d02019-11-19 11:10:11 +00003601# GN target: //protos/perfetto/ipc:wire_protocol_cpp
3602perfetto_cc_protocpp_library(
3603 name = "protos_perfetto_ipc_wire_protocol_cpp",
3604 deps = [
3605 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00003606 ],
3607)
3608
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003609# GN target: //protos/perfetto/ipc:wire_protocol_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003610perfetto_proto_library(
3611 name = "protos_perfetto_ipc_wire_protocol_protos",
3612 srcs = [
3613 "protos/perfetto/ipc/wire_protocol.proto",
3614 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003615 visibility = [
3616 PERFETTO_CONFIG.proto_library_visibility,
3617 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003618)
3619
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003620# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003621perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003622 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003623 srcs = [
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00003624 "protos/perfetto/metrics/android/android_blocking_calls_cuj_metric.proto",
Shihhsun Ho7edcbe62022-05-09 13:55:52 +08003625 "protos/perfetto/metrics/android/android_frame_timeline_metric.proto",
David LeGare20d39c42022-01-20 20:38:43 +00003626 "protos/perfetto/metrics/android/android_trusty_workqueues.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003627 "protos/perfetto/metrics/android/batt_metric.proto",
Jon Spivackb0974a72022-04-27 16:07:10 -07003628 "protos/perfetto/metrics/android/binder_metric.proto",
Lalit Maganti262252a2021-10-15 12:17:53 +01003629 "protos/perfetto/metrics/android/camera_metric.proto",
Lalit Magantic16c7212021-12-16 17:32:55 +00003630 "protos/perfetto/metrics/android/camera_unagg_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003631 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08003632 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07003633 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Luke Chang476e9442021-11-09 23:14:34 +08003634 "protos/perfetto/metrics/android/dvfs_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08003635 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08003636 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07003637 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08003638 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05003639 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003640 "protos/perfetto/metrics/android/ion_metric.proto",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08003641 "protos/perfetto/metrics/android/irq_runtime_metric.proto",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01003642 "protos/perfetto/metrics/android/jank_cuj_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00003643 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00003644 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003645 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00003646 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003647 "protos/perfetto/metrics/android/mem_metric.proto",
3648 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Hector Dearman19b76ac2023-03-23 10:04:54 +00003649 "protos/perfetto/metrics/android/monitor_contention_metric.proto",
Adam Bookatzd5aa7632021-08-25 16:13:44 -07003650 "protos/perfetto/metrics/android/multiuser_metric.proto",
Luke Change25d2c42021-12-07 16:08:32 +08003651 "protos/perfetto/metrics/android/network_metric.proto",
Daniele Di Proietto0767bff2022-04-05 11:07:15 +01003652 "protos/perfetto/metrics/android/other_traces.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003653 "protos/perfetto/metrics/android/package_list.proto",
3654 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00003655 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01003656 "protos/perfetto/metrics/android/profiler_smaps.proto",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08003657 "protos/perfetto/metrics/android/rt_runtime_metric.proto",
Wiwit Rifa'ia944ed62021-09-29 15:11:18 +08003658 "protos/perfetto/metrics/android/simpleperf.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003659 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01003660 "protos/perfetto/metrics/android/surfaceflinger.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00003661 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01003662 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01003663 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003664 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003665 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003666 visibility = [
3667 PERFETTO_CONFIG.proto_library_visibility,
3668 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003669)
3670
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003671# GN target: //protos/perfetto/metrics/chrome:descriptor
3672perfetto_proto_descriptor(
3673 name = "protos_perfetto_metrics_chrome_descriptor",
3674 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003675 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003676 ],
3677 outs = [
3678 "protos_perfetto_metrics_chrome_descriptor.bin",
3679 ],
3680)
3681
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003682# GN target: //protos/perfetto/metrics/chrome:source_set
3683perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003684 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003685 srcs = [
3686 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Violetta Fedotovaae0f6142022-11-22 12:14:17 +00003687 "protos/perfetto/metrics/chrome/args_class_names.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01003688 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mingjing Zhang309a1c02021-11-04 22:41:40 -04003689 "protos/perfetto/metrics/chrome/dropped_frames.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00003690 "protos/perfetto/metrics/chrome/frame_times.proto",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00003691 "protos/perfetto/metrics/chrome/histogram_hashes.proto",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04003692 "protos/perfetto/metrics/chrome/long_latency.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01003693 "protos/perfetto/metrics/chrome/media_metric.proto",
Igor Kraskevichf7cf8182022-04-04 11:41:28 +00003694 "protos/perfetto/metrics/chrome/performance_mark_hashes.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00003695 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01003696 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Tushar Agarwal941318a2023-03-13 21:31:34 +00003697 "protos/perfetto/metrics/chrome/scroll_jank_v2.proto",
Igor Kraskevich1888cff2022-04-07 11:07:37 +00003698 "protos/perfetto/metrics/chrome/slice_names.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003699 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
Dan Elphick08baa102021-09-02 16:06:44 +01003700 "protos/perfetto/metrics/chrome/touch_jank.proto",
Igor Kraskevich92c7c5a2022-06-23 16:24:17 +00003701 "protos/perfetto/metrics/chrome/unsymbolized_args.proto",
Igor Kraskevich32214832022-03-25 13:12:53 +00003702 "protos/perfetto/metrics/chrome/user_event_hashes.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003703 ],
3704 visibility = [
3705 PERFETTO_CONFIG.proto_library_visibility,
3706 ],
3707 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003708 ":protos_perfetto_metrics_android_protos",
3709 ":protos_perfetto_metrics_custom_options_protos",
3710 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003711 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
3712)
3713
3714# GN target: //protos/perfetto/metrics:custom_options_source_set
3715perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003716 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003717 srcs = [
3718 "protos/perfetto/metrics/custom_options.proto",
3719 ],
3720 visibility = [
3721 PERFETTO_CONFIG.proto_library_visibility,
3722 ],
3723 deps = [
3724 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
3725)
3726
Lalit Maganti117272f2020-09-11 14:01:18 +01003727# GN target: //protos/perfetto/metrics:descriptor
3728perfetto_proto_descriptor(
3729 name = "protos_perfetto_metrics_descriptor",
3730 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003731 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01003732 ],
3733 outs = [
3734 "protos_perfetto_metrics_descriptor.bin",
3735 ],
3736)
3737
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003738# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003739perfetto_proto_library(
3740 name = "protos_perfetto_metrics_protos",
3741 srcs = [
3742 "protos/perfetto/metrics/metrics.proto",
3743 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003744 visibility = [
3745 PERFETTO_CONFIG.proto_library_visibility,
3746 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003747 deps = [
3748 ":protos_perfetto_metrics_android_protos",
3749 ],
3750)
3751
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00003752# GN target: //protos/perfetto/metrics/webview:descriptor
3753perfetto_proto_descriptor(
3754 name = "protos_perfetto_metrics_webview_descriptor",
3755 deps = [
3756 ":protos_perfetto_metrics_webview_protos",
3757 ],
3758 outs = [
3759 "protos_perfetto_metrics_webview_descriptor.bin",
3760 ],
3761)
3762
3763# GN target: //protos/perfetto/metrics/webview:source_set
3764perfetto_proto_library(
3765 name = "protos_perfetto_metrics_webview_protos",
3766 srcs = [
3767 "protos/perfetto/metrics/webview/all_webview_metrics.proto",
3768 "protos/perfetto/metrics/webview/webview_jank_approximation.proto",
3769 ],
3770 visibility = [
3771 PERFETTO_CONFIG.proto_library_visibility,
3772 ],
3773 deps = [
3774 ":protos_perfetto_metrics_android_protos",
3775 ":protos_perfetto_metrics_protos",
3776 ],
3777)
3778
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003779# GN target: //protos/perfetto/trace/android:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003780perfetto_proto_library(
3781 name = "protos_perfetto_trace_android_protos",
3782 srcs = [
Andy Yu2e3c9b62022-05-31 11:23:18 -07003783 "protos/perfetto/trace/android/android_game_intervention_list.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003784 "protos/perfetto/trace/android/android_log.proto",
Simon MacMullenf0a6b382022-07-06 16:35:55 +00003785 "protos/perfetto/trace/android/android_system_property.proto",
Michael Eastwoodeb86b892022-01-20 15:59:09 -08003786 "protos/perfetto/trace/android/camera_event.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08003787 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07003788 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003789 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01003790 "protos/perfetto/trace/android/initial_display_state.proto",
Ryan Zuklie1c0a5002022-11-18 17:03:37 -08003791 "protos/perfetto/trace/android/network_trace.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003792 "protos/perfetto/trace/android/packages_list.proto",
3793 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003794 visibility = [
3795 PERFETTO_CONFIG.proto_library_visibility,
3796 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003797 deps = [
3798 ":protos_perfetto_common_protos",
3799 ],
3800)
3801
3802# GN target: //protos/perfetto/trace/android:zero
3803perfetto_cc_protozero_library(
3804 name = "protos_perfetto_trace_android_zero",
3805 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003806 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003807 ":protos_perfetto_trace_android_protos",
3808 ],
3809)
3810
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003811# GN target: //protos/perfetto/trace/chrome:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003812perfetto_proto_library(
3813 name = "protos_perfetto_trace_chrome_protos",
3814 srcs = [
3815 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
3816 "protos/perfetto/trace/chrome/chrome_metadata.proto",
3817 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
3818 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003819 visibility = [
3820 PERFETTO_CONFIG.proto_library_visibility,
3821 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003822)
3823
3824# GN target: //protos/perfetto/trace/chrome:zero
3825perfetto_cc_protozero_library(
3826 name = "protos_perfetto_trace_chrome_zero",
3827 deps = [
3828 ":protos_perfetto_trace_chrome_protos",
3829 ],
3830)
3831
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003832# GN target: //protos/perfetto/trace:descriptor
3833perfetto_proto_descriptor(
3834 name = "protos_perfetto_trace_descriptor",
3835 deps = [
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003836 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003837 ],
3838 outs = [
3839 "protos_perfetto_trace_descriptor.bin",
3840 ],
3841)
3842
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003843# GN target: //protos/perfetto/trace/filesystem:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003844perfetto_proto_library(
3845 name = "protos_perfetto_trace_filesystem_protos",
3846 srcs = [
3847 "protos/perfetto/trace/filesystem/inode_file_map.proto",
3848 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003849 visibility = [
3850 PERFETTO_CONFIG.proto_library_visibility,
3851 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003852)
3853
3854# GN target: //protos/perfetto/trace/filesystem:zero
3855perfetto_cc_protozero_library(
3856 name = "protos_perfetto_trace_filesystem_zero",
3857 deps = [
3858 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003859 ],
3860)
3861
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003862# GN target: //protos/perfetto/trace/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003863perfetto_proto_library(
3864 name = "protos_perfetto_trace_ftrace_protos",
3865 srcs = [
Rahul Dandamudic8169462022-09-11 13:36:37 -04003866 "protos/perfetto/trace/ftrace/android_fs.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003867 "protos/perfetto/trace/ftrace/binder.proto",
3868 "protos/perfetto/trace/ftrace/block.proto",
3869 "protos/perfetto/trace/ftrace/cgroup.proto",
3870 "protos/perfetto/trace/ftrace/clk.proto",
Martin Liu2a4a27f2022-11-11 15:47:47 +08003871 "protos/perfetto/trace/ftrace/cma.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003872 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01003873 "protos/perfetto/trace/ftrace/cpuhp.proto",
Harvey Yangcb9754b2022-02-09 18:13:06 +08003874 "protos/perfetto/trace/ftrace/cros_ec.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003875 "protos/perfetto/trace/ftrace/dma_fence.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07003876 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00003877 "protos/perfetto/trace/ftrace/dpu.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003878 "protos/perfetto/trace/ftrace/drm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003879 "protos/perfetto/trace/ftrace/ext4.proto",
3880 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01003881 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003882 "protos/perfetto/trace/ftrace/fence.proto",
3883 "protos/perfetto/trace/ftrace/filemap.proto",
3884 "protos/perfetto/trace/ftrace/ftrace.proto",
3885 "protos/perfetto/trace/ftrace/ftrace_event.proto",
3886 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
3887 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00003888 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003889 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07003890 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003891 "protos/perfetto/trace/ftrace/gpu_scheduler.proto",
Nikita Ioffe02035142023-03-02 16:57:35 +00003892 "protos/perfetto/trace/ftrace/hyp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003893 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01003894 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003895 "protos/perfetto/trace/ftrace/ipi.proto",
3896 "protos/perfetto/trace/ftrace/irq.proto",
3897 "protos/perfetto/trace/ftrace/kmem.proto",
Primiano Tuccif954f862022-03-04 13:58:18 +00003898 "protos/perfetto/trace/ftrace/kvm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003899 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Nick Chung8f4dd962022-12-14 12:08:07 +00003900 "protos/perfetto/trace/ftrace/lwis.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00003901 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003902 "protos/perfetto/trace/ftrace/mdss.proto",
3903 "protos/perfetto/trace/ftrace/mm_event.proto",
Luke Chang496f94a2021-12-03 17:13:00 +08003904 "protos/perfetto/trace/ftrace/net.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003905 "protos/perfetto/trace/ftrace/oom.proto",
Jeremy DeHaan57d8b862022-09-02 22:08:43 +00003906 "protos/perfetto/trace/ftrace/panel.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003907 "protos/perfetto/trace/ftrace/power.proto",
Hector Dearmanae5a60e2022-03-30 19:30:43 +01003908 "protos/perfetto/trace/ftrace/printk.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003909 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
3910 "protos/perfetto/trace/ftrace/regulator.proto",
3911 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01003912 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00003913 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003914 "protos/perfetto/trace/ftrace/signal.proto",
Luke Changd041e6e2022-02-25 13:24:42 +08003915 "protos/perfetto/trace/ftrace/skb.proto",
Luke Chang1b904072022-01-26 09:33:19 +08003916 "protos/perfetto/trace/ftrace/sock.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003917 "protos/perfetto/trace/ftrace/sync.proto",
Kalesh Singh84f62e42021-11-15 19:01:23 -08003918 "protos/perfetto/trace/ftrace/synthetic.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003919 "protos/perfetto/trace/ftrace/systrace.proto",
3920 "protos/perfetto/trace/ftrace/task.proto",
Luke Chang4eb23ab2022-01-27 16:31:46 +08003921 "protos/perfetto/trace/ftrace/tcp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003922 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01003923 "protos/perfetto/trace/ftrace/thermal.proto",
Padmanabha V0e45bba2022-10-20 05:26:21 +00003924 "protos/perfetto/trace/ftrace/trusty.proto",
YH Linbce42862022-03-15 02:45:18 +08003925 "protos/perfetto/trace/ftrace/ufs.proto",
Bartłomiej Grzesik6b257532022-08-08 09:34:15 +00003926 "protos/perfetto/trace/ftrace/v4l2.proto",
Rob Clark50b20aa2022-11-29 14:24:18 -08003927 "protos/perfetto/trace/ftrace/virtio_gpu.proto",
Bartłomiej Grzesikfa4c9c92022-10-03 11:12:18 +00003928 "protos/perfetto/trace/ftrace/virtio_video.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003929 "protos/perfetto/trace/ftrace/vmscan.proto",
3930 "protos/perfetto/trace/ftrace/workqueue.proto",
3931 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003932 visibility = [
3933 PERFETTO_CONFIG.proto_library_visibility,
3934 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003935)
3936
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003937# GN target: //protos/perfetto/trace/ftrace:zero
3938perfetto_cc_protozero_library(
3939 name = "protos_perfetto_trace_ftrace_zero",
3940 deps = [
3941 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003942 ],
3943)
3944
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003945# GN target: //protos/perfetto/trace/gpu:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003946perfetto_proto_library(
3947 name = "protos_perfetto_trace_gpu_protos",
3948 srcs = [
3949 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07003950 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003951 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08003952 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003953 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
3954 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003955 visibility = [
3956 PERFETTO_CONFIG.proto_library_visibility,
3957 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003958 deps = [
3959 ":protos_perfetto_common_protos",
3960 ],
3961)
3962
3963# GN target: //protos/perfetto/trace/gpu:zero
3964perfetto_cc_protozero_library(
3965 name = "protos_perfetto_trace_gpu_zero",
3966 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003967 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003968 ":protos_perfetto_trace_gpu_protos",
3969 ],
3970)
3971
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003972# GN target: //protos/perfetto/trace/interned_data:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003973perfetto_proto_library(
3974 name = "protos_perfetto_trace_interned_data_protos",
3975 srcs = [
3976 "protos/perfetto/trace/interned_data/interned_data.proto",
3977 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003978 visibility = [
3979 PERFETTO_CONFIG.proto_library_visibility,
3980 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003981 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07003982 ":protos_perfetto_common_protos",
Ryan Zukliefdb6c8c2023-03-02 07:12:49 -08003983 ":protos_perfetto_trace_android_protos",
Raymond Chiu37532e62020-04-06 16:15:48 -07003984 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003985 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003986 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003987 ],
3988)
3989
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003990# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01003991perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003992 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003993 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003994 ":protos_perfetto_common_zero",
Ryan Zukliefdb6c8c2023-03-02 07:12:49 -08003995 ":protos_perfetto_trace_android_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003996 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003997 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003998 ":protos_perfetto_trace_profiling_zero",
3999 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004000 ],
4001)
4002
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004003# GN target: //protos/perfetto/trace:minimal_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004004perfetto_proto_library(
4005 name = "protos_perfetto_trace_minimal_protos",
4006 srcs = [
4007 "protos/perfetto/trace/clock_snapshot.proto",
4008 "protos/perfetto/trace/system_info.proto",
Primiano Tucci7c327c22022-11-23 12:24:49 +00004009 "protos/perfetto/trace/trace_uuid.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004010 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01004011 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004012 visibility = [
4013 PERFETTO_CONFIG.proto_library_visibility,
4014 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01004015 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004016 ":protos_perfetto_common_protos",
4017 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004018 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004019 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004020 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004021 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004022 ":protos_perfetto_config_power_protos",
4023 ":protos_perfetto_config_process_stats_protos",
4024 ":protos_perfetto_config_profiling_protos",
4025 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01004026 ":protos_perfetto_config_statsd_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004027 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01004028 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004029 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004030 ],
4031)
4032
4033# GN target: //protos/perfetto/trace:minimal_zero
4034perfetto_cc_protozero_library(
4035 name = "protos_perfetto_trace_minimal_zero",
4036 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004037 ":protos_perfetto_common_zero",
4038 ":protos_perfetto_config_android_zero",
4039 ":protos_perfetto_config_ftrace_zero",
4040 ":protos_perfetto_config_gpu_zero",
4041 ":protos_perfetto_config_inode_file_zero",
4042 ":protos_perfetto_config_interceptors_zero",
4043 ":protos_perfetto_config_power_zero",
4044 ":protos_perfetto_config_process_stats_zero",
4045 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004046 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004047 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004048 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004049 ":protos_perfetto_config_track_event_zero",
4050 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004051 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004052 ],
4053)
4054
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004055# GN target: //protos/perfetto/trace:non_minimal_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01004056perfetto_proto_library(
4057 name = "protos_perfetto_trace_non_minimal_protos",
4058 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01004059 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02004060 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01004061 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00004062 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01004063 "protos/perfetto/trace/trace.proto",
4064 "protos/perfetto/trace/trace_packet.proto",
4065 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01004066 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01004067 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00004068 visibility = [
4069 PERFETTO_CONFIG.proto_library_visibility,
4070 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01004071 deps = [
4072 ":protos_perfetto_common_protos",
4073 ":protos_perfetto_config_android_protos",
4074 ":protos_perfetto_config_ftrace_protos",
4075 ":protos_perfetto_config_gpu_protos",
4076 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004077 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004078 ":protos_perfetto_config_power_protos",
4079 ":protos_perfetto_config_process_stats_protos",
4080 ":protos_perfetto_config_profiling_protos",
4081 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01004082 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004083 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01004084 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004085 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004086 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004087 ":protos_perfetto_trace_chrome_protos",
4088 ":protos_perfetto_trace_filesystem_protos",
4089 ":protos_perfetto_trace_ftrace_protos",
4090 ":protos_perfetto_trace_gpu_protos",
4091 ":protos_perfetto_trace_interned_data_protos",
4092 ":protos_perfetto_trace_minimal_protos",
4093 ":protos_perfetto_trace_perfetto_protos",
4094 ":protos_perfetto_trace_power_protos",
4095 ":protos_perfetto_trace_profiling_protos",
4096 ":protos_perfetto_trace_ps_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01004097 ":protos_perfetto_trace_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004098 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01004099 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004100 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004101 ":protos_perfetto_trace_translation_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01004102 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00004103 exports = [
4104 ":protos_perfetto_trace_track_event_protos",
4105 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01004106)
4107
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004108# GN target: //protos/perfetto/trace:non_minimal_zero
4109perfetto_cc_protozero_library(
4110 name = "protos_perfetto_trace_non_minimal_zero",
4111 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004112 ":protos_perfetto_common_zero",
4113 ":protos_perfetto_config_android_zero",
4114 ":protos_perfetto_config_ftrace_zero",
4115 ":protos_perfetto_config_gpu_zero",
4116 ":protos_perfetto_config_inode_file_zero",
4117 ":protos_perfetto_config_interceptors_zero",
4118 ":protos_perfetto_config_power_zero",
4119 ":protos_perfetto_config_process_stats_zero",
4120 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004121 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004122 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004123 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004124 ":protos_perfetto_config_track_event_zero",
4125 ":protos_perfetto_config_zero",
4126 ":protos_perfetto_trace_android_zero",
4127 ":protos_perfetto_trace_chrome_zero",
4128 ":protos_perfetto_trace_filesystem_zero",
4129 ":protos_perfetto_trace_ftrace_zero",
4130 ":protos_perfetto_trace_gpu_zero",
4131 ":protos_perfetto_trace_interned_data_zero",
4132 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004133 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01004134 ":protos_perfetto_trace_perfetto_zero",
4135 ":protos_perfetto_trace_power_zero",
4136 ":protos_perfetto_trace_profiling_zero",
4137 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004138 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004139 ":protos_perfetto_trace_sys_stats_zero",
4140 ":protos_perfetto_trace_system_info_zero",
4141 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004142 ":protos_perfetto_trace_translation_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004143 ],
4144)
4145
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004146# GN target: //protos/perfetto/trace/perfetto:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004147perfetto_proto_library(
4148 name = "protos_perfetto_trace_perfetto_protos",
4149 srcs = [
4150 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01004151 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004152 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004153 visibility = [
4154 PERFETTO_CONFIG.proto_library_visibility,
4155 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004156)
4157
4158# GN target: //protos/perfetto/trace/perfetto:zero
4159perfetto_cc_protozero_library(
4160 name = "protos_perfetto_trace_perfetto_zero",
4161 deps = [
4162 ":protos_perfetto_trace_perfetto_protos",
4163 ],
4164)
4165
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004166# GN target: //protos/perfetto/trace/power:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004167perfetto_proto_library(
4168 name = "protos_perfetto_trace_power_protos",
4169 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08004170 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Simon MacMullen1777bde2023-02-17 14:54:01 +00004171 "protos/perfetto/trace/power/android_entity_state_residency.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004172 "protos/perfetto/trace/power/battery_counters.proto",
4173 "protos/perfetto/trace/power/power_rails.proto",
4174 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004175 visibility = [
4176 PERFETTO_CONFIG.proto_library_visibility,
4177 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08004178 deps = [
4179 ":protos_perfetto_common_protos",
4180 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004181)
4182
4183# GN target: //protos/perfetto/trace/power:zero
4184perfetto_cc_protozero_library(
4185 name = "protos_perfetto_trace_power_zero",
4186 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004187 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004188 ":protos_perfetto_trace_power_protos",
4189 ],
4190)
4191
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004192# GN target: //protos/perfetto/trace_processor:metrics_impl_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004193perfetto_proto_library(
4194 name = "protos_perfetto_trace_processor_metrics_impl_protos",
4195 srcs = [
4196 "protos/perfetto/trace_processor/metrics_impl.proto",
4197 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004198 visibility = [
4199 PERFETTO_CONFIG.proto_library_visibility,
4200 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004201)
4202
4203# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
4204perfetto_cc_protozero_library(
4205 name = "protos_perfetto_trace_processor_metrics_impl_zero",
4206 deps = [
4207 ":protos_perfetto_trace_processor_metrics_impl_protos",
4208 ],
4209)
4210
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004211# GN target: //protos/perfetto/trace_processor:source_set
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004212perfetto_proto_library(
4213 name = "protos_perfetto_trace_processor_protos",
4214 srcs = [
Alexander Timinb5102912022-10-12 22:18:35 +01004215 "protos/perfetto/trace_processor/metatrace_categories.proto",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00004216 "protos/perfetto/trace_processor/stack.proto",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004217 "protos/perfetto/trace_processor/trace_processor.proto",
4218 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004219 visibility = [
4220 PERFETTO_CONFIG.proto_library_visibility,
4221 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04004222 deps = [
4223 ":protos_perfetto_common_protos",
4224 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004225)
4226
4227# GN target: //protos/perfetto/trace_processor:zero
4228perfetto_cc_protozero_library(
4229 name = "protos_perfetto_trace_processor_zero",
4230 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004231 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004232 ":protos_perfetto_trace_processor_protos",
4233 ],
4234)
4235
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004236# GN target: //protos/perfetto/trace/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004237perfetto_proto_library(
4238 name = "protos_perfetto_trace_profiling_protos",
4239 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01004240 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004241 "protos/perfetto/trace/profiling/heap_graph.proto",
4242 "protos/perfetto/trace/profiling/profile_common.proto",
4243 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02004244 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004245 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004246 visibility = [
4247 PERFETTO_CONFIG.proto_library_visibility,
4248 ],
Ryan Savitski45517322021-03-09 16:38:19 +00004249 deps = [
4250 ":protos_perfetto_common_protos",
4251 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004252)
4253
4254# GN target: //protos/perfetto/trace/profiling:zero
4255perfetto_cc_protozero_library(
4256 name = "protos_perfetto_trace_profiling_zero",
4257 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004258 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004259 ":protos_perfetto_trace_profiling_protos",
4260 ],
4261)
4262
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004263# GN target: //protos/perfetto/trace/ps:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004264perfetto_proto_library(
4265 name = "protos_perfetto_trace_ps_protos",
4266 srcs = [
4267 "protos/perfetto/trace/ps/process_stats.proto",
4268 "protos/perfetto/trace/ps/process_tree.proto",
4269 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004270 visibility = [
4271 PERFETTO_CONFIG.proto_library_visibility,
4272 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004273)
4274
4275# GN target: //protos/perfetto/trace/ps:zero
4276perfetto_cc_protozero_library(
4277 name = "protos_perfetto_trace_ps_zero",
4278 deps = [
4279 ":protos_perfetto_trace_ps_protos",
4280 ],
4281)
4282
Hector Dearman09db5b02022-07-11 13:35:23 +01004283# GN target: //protos/perfetto/trace/statsd:cpp
4284perfetto_cc_protocpp_library(
4285 name = "protos_perfetto_trace_statsd_cpp",
4286 deps = [
4287 ":protos_perfetto_common_cpp",
4288 ":protos_perfetto_trace_statsd_protos",
4289 ],
4290)
4291
Hector Dearman5974de02022-06-23 15:31:40 +01004292# GN target: //protos/perfetto/trace/statsd:source_set
4293perfetto_proto_library(
4294 name = "protos_perfetto_trace_statsd_protos",
4295 srcs = [
4296 "protos/perfetto/trace/statsd/statsd_atom.proto",
4297 ],
4298 visibility = [
4299 PERFETTO_CONFIG.proto_library_visibility,
4300 ],
4301 deps = [
4302 ":protos_perfetto_common_protos",
4303 ],
4304)
4305
4306# GN target: //protos/perfetto/trace/statsd:zero
4307perfetto_cc_protozero_library(
4308 name = "protos_perfetto_trace_statsd_zero",
4309 deps = [
4310 ":protos_perfetto_common_zero",
4311 ":protos_perfetto_trace_statsd_protos",
4312 ],
4313)
4314
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004315# GN target: //protos/perfetto/trace/sys_stats:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004316perfetto_proto_library(
4317 name = "protos_perfetto_trace_sys_stats_protos",
4318 srcs = [
4319 "protos/perfetto/trace/sys_stats/sys_stats.proto",
4320 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004321 visibility = [
4322 PERFETTO_CONFIG.proto_library_visibility,
4323 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004324 deps = [
4325 ":protos_perfetto_common_protos",
4326 ],
4327)
4328
4329# GN target: //protos/perfetto/trace/sys_stats:zero
4330perfetto_cc_protozero_library(
4331 name = "protos_perfetto_trace_sys_stats_zero",
4332 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004333 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004334 ":protos_perfetto_trace_sys_stats_protos",
4335 ],
4336)
4337
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004338# GN target: //protos/perfetto/trace/system_info:source_set
Rafal Slawikb013a112020-04-03 16:12:02 +01004339perfetto_proto_library(
4340 name = "protos_perfetto_trace_system_info_protos",
4341 srcs = [
4342 "protos/perfetto/trace/system_info/cpu_info.proto",
4343 ],
4344 visibility = [
4345 PERFETTO_CONFIG.proto_library_visibility,
4346 ],
4347)
4348
4349# GN target: //protos/perfetto/trace/system_info:zero
4350perfetto_cc_protozero_library(
4351 name = "protos_perfetto_trace_system_info_zero",
4352 deps = [
4353 ":protos_perfetto_trace_system_info_protos",
4354 ],
4355)
4356
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004357# GN target: //protos/perfetto/trace/track_event:cpp
4358perfetto_cc_protocpp_library(
4359 name = "protos_perfetto_trace_track_event_cpp",
4360 deps = [
4361 ":protos_perfetto_trace_track_event_protos",
4362 ],
4363)
4364
Lalit Magantic21a4a82022-02-15 16:08:46 +00004365# GN target: //protos/perfetto/trace/track_event:descriptor
4366perfetto_proto_descriptor(
4367 name = "protos_perfetto_trace_track_event_descriptor",
4368 deps = [
4369 ":protos_perfetto_trace_track_event_protos",
4370 ],
4371 outs = [
4372 "protos_perfetto_trace_track_event_descriptor.bin",
4373 ],
4374)
4375
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004376# GN target: //protos/perfetto/trace/track_event:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004377perfetto_proto_library(
4378 name = "protos_perfetto_trace_track_event_protos",
4379 srcs = [
Igor Kraskevichebf48602022-10-25 10:28:36 +00004380 "protos/perfetto/trace/track_event/chrome_active_processes.proto",
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08004381 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00004382 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08004383 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04004384 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08004385 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004386 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00004387 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004388 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07004389 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07004390 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00004391 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01004392 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00004393 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004394 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07004395 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00004396 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004397 "protos/perfetto/trace/track_event/debug_annotation.proto",
4398 "protos/perfetto/trace/track_event/log_message.proto",
4399 "protos/perfetto/trace/track_event/process_descriptor.proto",
Igor Kraskevich49756332022-12-01 18:05:57 +00004400 "protos/perfetto/trace/track_event/range_of_interest.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004401 "protos/perfetto/trace/track_event/source_location.proto",
4402 "protos/perfetto/trace/track_event/task_execution.proto",
4403 "protos/perfetto/trace/track_event/thread_descriptor.proto",
4404 "protos/perfetto/trace/track_event/track_descriptor.proto",
4405 "protos/perfetto/trace/track_event/track_event.proto",
4406 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004407 visibility = [
4408 PERFETTO_CONFIG.proto_library_visibility,
4409 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004410)
4411
4412# GN target: //protos/perfetto/trace/track_event:zero
4413perfetto_cc_protozero_library(
4414 name = "protos_perfetto_trace_track_event_zero",
4415 deps = [
4416 ":protos_perfetto_trace_track_event_protos",
4417 ],
4418)
4419
Igor Kraskevich49b42882022-03-21 13:03:02 +00004420# GN target: //protos/perfetto/trace/translation:source_set
4421perfetto_proto_library(
4422 name = "protos_perfetto_trace_translation_protos",
4423 srcs = [
4424 "protos/perfetto/trace/translation/translation_table.proto",
4425 ],
4426 visibility = [
4427 PERFETTO_CONFIG.proto_library_visibility,
4428 ],
4429)
4430
4431# GN target: //protos/perfetto/trace/translation:zero
4432perfetto_cc_protozero_library(
4433 name = "protos_perfetto_trace_translation_zero",
4434 deps = [
4435 ":protos_perfetto_trace_translation_protos",
4436 ],
4437)
4438
Lalit Magantic21a4a82022-02-15 16:08:46 +00004439# GN target: //protos/third_party/chromium:descriptor
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004440perfetto_proto_descriptor(
Lalit Magantic21a4a82022-02-15 16:08:46 +00004441 name = "protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004442 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00004443 ":protos_third_party_chromium_protos",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004444 ],
4445 outs = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00004446 "protos_third_party_chromium_descriptor.bin",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004447 ],
4448)
4449
Lalit Magantic21a4a82022-02-15 16:08:46 +00004450# GN target: //protos/third_party/chromium:source_set
ssid3d81d4d2021-06-21 16:08:02 -07004451perfetto_proto_library(
4452 name = "protos_third_party_chromium_protos",
4453 srcs = [
4454 "protos/third_party/chromium/chrome_track_event.proto",
4455 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00004456 visibility = [
4457 PERFETTO_CONFIG.proto_library_visibility,
4458 ],
ssid3d81d4d2021-06-21 16:08:02 -07004459 deps = [
4460 ":protos_perfetto_trace_track_event_protos",
4461 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00004462 exports = [
4463 ":protos_perfetto_trace_track_event_protos",
4464 ],
ssid3d81d4d2021-06-21 16:08:02 -07004465)
4466
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004467# GN target: //protos/third_party/pprof:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004468perfetto_proto_library(
4469 name = "protos_third_party_pprof_protos",
4470 srcs = [
4471 "protos/third_party/pprof/profile.proto",
4472 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004473 visibility = [
4474 PERFETTO_CONFIG.proto_library_visibility,
4475 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004476)
4477
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004478# GN target: //protos/third_party/pprof:zero
4479perfetto_cc_protozero_library(
4480 name = "protos_third_party_pprof_zero",
4481 deps = [
4482 ":protos_third_party_pprof_protos",
4483 ],
4484)
4485
Hector Dearman09db5b02022-07-11 13:35:23 +01004486# GN target: //protos/third_party/statsd:config_source_set
4487perfetto_proto_library(
4488 name = "protos_third_party_statsd_config_protos",
4489 srcs = [
4490 "protos/third_party/statsd/shell_config.proto",
Hector Dearmanff7abd42023-03-22 19:11:35 +00004491 "protos/third_party/statsd/shell_data.proto",
Hector Dearman09db5b02022-07-11 13:35:23 +01004492 ],
4493 visibility = [
4494 PERFETTO_CONFIG.proto_library_visibility,
4495 ],
4496)
4497
4498# GN target: //protos/third_party/statsd:config_zero
4499perfetto_cc_protozero_library(
4500 name = "protos_third_party_statsd_config_zero",
4501 deps = [
4502 ":protos_third_party_statsd_config_protos",
4503 ],
4504)
4505
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004506# GN target: //src/perfetto_cmd:protos_cpp
Hector Dearman040f9582019-12-03 18:06:33 +00004507perfetto_cc_protocpp_library(
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004508 name = "src_perfetto_cmd_protos_cpp",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004509 deps = [
4510 ":src_perfetto_cmd_protos_protos",
4511 ],
4512)
4513
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004514# GN target: //src/perfetto_cmd:protos_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004515perfetto_proto_library(
4516 name = "src_perfetto_cmd_protos_protos",
4517 srcs = [
4518 "src/perfetto_cmd/perfetto_cmd_state.proto",
4519 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004520 visibility = [
4521 PERFETTO_CONFIG.proto_library_visibility,
4522 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004523)
4524
Primiano Tucci1d409982019-09-19 10:15:18 +01004525# ##############################################################################
4526# Public targets
4527# ##############################################################################
4528
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004529# GN target: //:libperfetto_client_experimental
4530perfetto_cc_library(
4531 name = "libperfetto_client_experimental",
4532 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00004533 ":src_android_stats_android_stats",
4534 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01004535 ":src_protozero_filtering_bytecode_common",
4536 ":src_protozero_filtering_bytecode_parser",
4537 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00004538 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004539 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004540 ":src_tracing_core_core",
4541 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00004542 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004543 ":src_tracing_ipc_common",
4544 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00004545 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004546 ":src_tracing_ipc_producer_producer",
4547 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01004548 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00004549 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004550 ],
4551 hdrs = [
4552 ":include_perfetto_base_base",
4553 ":include_perfetto_ext_base_base",
4554 ":include_perfetto_ext_ipc_ipc",
4555 ":include_perfetto_ext_tracing_core_core",
4556 ":include_perfetto_ext_tracing_ipc_ipc",
4557 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004558 ":include_perfetto_public_abi_base",
4559 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004560 ":include_perfetto_public_protozero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004561 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00004562 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004563 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00004564 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004565 ],
4566 visibility = [
4567 "//visibility:public",
4568 ],
4569 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02004570 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004571 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004572 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004573 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004574 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004575 ":protos_perfetto_config_cpp",
4576 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004577 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004578 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004579 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004580 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004581 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004582 ":protos_perfetto_config_interceptors_cpp",
4583 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004584 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004585 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004586 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004587 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004588 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004589 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004590 ":protos_perfetto_config_statsd_cpp",
4591 ":protos_perfetto_config_statsd_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004592 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004593 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004594 ":protos_perfetto_config_system_info_cpp",
4595 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004596 ":protos_perfetto_config_track_event_cpp",
4597 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004598 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004599 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004600 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004601 ":protos_perfetto_trace_android_zero",
4602 ":protos_perfetto_trace_chrome_zero",
4603 ":protos_perfetto_trace_filesystem_zero",
4604 ":protos_perfetto_trace_ftrace_zero",
4605 ":protos_perfetto_trace_gpu_zero",
4606 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004607 ":protos_perfetto_trace_minimal_zero",
4608 ":protos_perfetto_trace_non_minimal_zero",
4609 ":protos_perfetto_trace_perfetto_zero",
4610 ":protos_perfetto_trace_power_zero",
4611 ":protos_perfetto_trace_profiling_zero",
4612 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004613 ":protos_perfetto_trace_statsd_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004614 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004615 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004616 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004617 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004618 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004619 ":protozero",
4620 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004621 ":src_base_version",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004622 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00004623 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004624)
4625
Primiano Tucci1d409982019-09-19 10:15:18 +01004626# GN target: //src/perfetto_cmd:perfetto
4627perfetto_cc_binary(
4628 name = "perfetto",
4629 srcs = [
4630 ":include_perfetto_base_base",
4631 ":include_perfetto_ext_base_base",
4632 ":include_perfetto_ext_ipc_ipc",
4633 ":include_perfetto_ext_traced_traced",
4634 ":include_perfetto_ext_tracing_core_core",
4635 ":include_perfetto_ext_tracing_ipc_ipc",
4636 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004637 ":include_perfetto_public_abi_base",
4638 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004639 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +01004640 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00004641 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01004642 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00004643 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00004644 ":src_android_stats_perfetto_atoms",
Primiano Tucci3970dfd2023-03-28 13:02:27 +01004645 ":src_perfetto_cmd_bugreport_path",
Primiano Tucci1d409982019-09-19 10:15:18 +01004646 ":src_perfetto_cmd_perfetto_cmd",
4647 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01004648 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004649 ":src_tracing_core_core",
4650 ":src_tracing_ipc_common",
4651 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00004652 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004653 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01004654 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01004655 ],
4656 visibility = [
4657 "//visibility:public",
4658 ],
4659 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02004660 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004661 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004662 ":protos_perfetto_common_zero",
4663 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004664 ":protos_perfetto_config_android_zero",
4665 ":protos_perfetto_config_cpp",
4666 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004667 ":protos_perfetto_config_ftrace_zero",
4668 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004669 ":protos_perfetto_config_gpu_zero",
4670 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004671 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004672 ":protos_perfetto_config_interceptors_cpp",
4673 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004674 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004675 ":protos_perfetto_config_power_zero",
4676 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004677 ":protos_perfetto_config_process_stats_zero",
4678 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004679 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004680 ":protos_perfetto_config_statsd_cpp",
4681 ":protos_perfetto_config_statsd_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004682 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004683 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004684 ":protos_perfetto_config_system_info_cpp",
4685 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004686 ":protos_perfetto_config_track_event_cpp",
4687 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004688 ":protos_perfetto_config_zero",
4689 ":protos_perfetto_ipc_cpp",
4690 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004691 ":protos_perfetto_trace_android_zero",
4692 ":protos_perfetto_trace_chrome_zero",
4693 ":protos_perfetto_trace_filesystem_zero",
4694 ":protos_perfetto_trace_ftrace_zero",
4695 ":protos_perfetto_trace_gpu_zero",
4696 ":protos_perfetto_trace_interned_data_zero",
4697 ":protos_perfetto_trace_minimal_zero",
4698 ":protos_perfetto_trace_non_minimal_zero",
4699 ":protos_perfetto_trace_perfetto_zero",
4700 ":protos_perfetto_trace_power_zero",
4701 ":protos_perfetto_trace_profiling_zero",
4702 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004703 ":protos_perfetto_trace_statsd_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004704 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004705 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004706 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004707 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004708 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004709 ":protozero",
4710 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004711 ":src_base_version",
Lalit Maganti2939c082021-03-11 17:25:44 +00004712 ":src_perfetto_cmd_gen_cc_config_descriptor",
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004713 ":src_perfetto_cmd_protos_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004714 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01004715)
4716
4717# GN target: //src/trace_processor:trace_processor
4718perfetto_cc_library(
4719 name = "trace_processor",
4720 srcs = [
Ryan Zuklieec18eb32022-07-25 15:51:59 -07004721 ":src_kernel_utils_syscall_table",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004722 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00004723 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004724 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004725 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00004726 ":src_trace_processor_importers_common_parser_types",
4727 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004728 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
4729 ":src_trace_processor_importers_ftrace_full",
4730 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00004731 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00004732 ":src_trace_processor_importers_fuchsia_full",
4733 ":src_trace_processor_importers_fuchsia_minimal",
4734 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004735 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004736 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004737 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004738 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00004739 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004740 ":src_trace_processor_importers_proto_full",
4741 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00004742 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004743 ":src_trace_processor_importers_proto_proto_importer_module",
4744 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004745 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00004746 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004747 ":src_trace_processor_importers_systrace_systrace_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01004748 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004749 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004750 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00004751 ":src_trace_processor_prelude_functions_functions",
4752 ":src_trace_processor_prelude_operators_operators",
Lalit Maganti84aa9022023-03-17 20:29:56 +00004753 ":src_trace_processor_prelude_table_functions_table_functions",
Lalit Maganti3df8a7e2023-04-25 14:18:17 +01004754 ":src_trace_processor_prelude_table_functions_tables",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00004755 ":src_trace_processor_sorter_sorter",
Primiano Tucci1d409982019-09-19 10:15:18 +01004756 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01004757 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004758 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004759 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004760 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00004761 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004762 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00004763 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01004764 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01004765 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004766 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004767 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004768 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004769 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004770 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004771 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00004772 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004773 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00004774 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01004775 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004776 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01004777 ":src_trace_processor_views_views",
Primiano Tucci1d409982019-09-19 10:15:18 +01004778 ],
4779 hdrs = [
4780 ":include_perfetto_base_base",
4781 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004782 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01004783 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004784 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01004785 ":include_perfetto_ext_traced_sys_stats_counters",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004786 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004787 ":include_perfetto_public_abi_base",
4788 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004789 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004790 ":include_perfetto_trace_processor_basic_types",
4791 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004792 ":include_perfetto_trace_processor_trace_processor",
4793 ],
4794 visibility = [
4795 "//visibility:public",
4796 ],
4797 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004798 ":protos_perfetto_common_zero",
4799 ":protos_perfetto_config_android_zero",
4800 ":protos_perfetto_config_ftrace_zero",
4801 ":protos_perfetto_config_gpu_zero",
4802 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004803 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004804 ":protos_perfetto_config_power_zero",
4805 ":protos_perfetto_config_process_stats_zero",
4806 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004807 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004808 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004809 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004810 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004811 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004812 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004813 ":protos_perfetto_trace_chrome_zero",
4814 ":protos_perfetto_trace_filesystem_zero",
4815 ":protos_perfetto_trace_ftrace_zero",
4816 ":protos_perfetto_trace_gpu_zero",
4817 ":protos_perfetto_trace_interned_data_zero",
4818 ":protos_perfetto_trace_minimal_zero",
4819 ":protos_perfetto_trace_non_minimal_zero",
4820 ":protos_perfetto_trace_perfetto_zero",
4821 ":protos_perfetto_trace_power_zero",
4822 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04004823 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004824 ":protos_perfetto_trace_profiling_zero",
4825 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004826 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004827 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004828 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004829 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004830 ":protos_perfetto_trace_translation_zero",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004831 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004832 ":protozero",
4833 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004834 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00004835 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
4836 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004837 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004838 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00004839 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004840 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00004841 ":src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004842 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004843 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
Lalit Maganti8ac54f52023-04-24 15:22:22 +01004844 ":src_trace_processor_prelude_tables_views_tables_views",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004845 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Lalit Maganti65600342019-09-19 21:35:35 +01004846 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01004847 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004848 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00004849 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00004850 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Magantif9c004d2020-01-06 14:44:34 +00004851 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01004852)
4853
4854# GN target: //src/trace_processor:trace_processor_shell
4855perfetto_cc_binary(
4856 name = "trace_processor_shell",
4857 srcs = [
4858 ":include_perfetto_base_base",
4859 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004860 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01004861 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004862 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01004863 ":include_perfetto_ext_traced_sys_stats_counters",
4864 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004865 ":include_perfetto_public_abi_base",
4866 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004867 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004868 ":include_perfetto_trace_processor_basic_types",
4869 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004870 ":include_perfetto_trace_processor_trace_processor",
Ryan Zuklieec18eb32022-07-25 15:51:59 -07004871 ":src_kernel_utils_syscall_table",
Florian Mayerf4255a42020-12-14 19:12:34 +00004872 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00004873 ":src_profiling_symbolizer_symbolize_database",
4874 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01004875 ":src_protozero_proto_ring_buffer",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004876 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00004877 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004878 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004879 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00004880 ":src_trace_processor_importers_common_parser_types",
4881 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004882 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
4883 ":src_trace_processor_importers_ftrace_full",
4884 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00004885 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00004886 ":src_trace_processor_importers_fuchsia_full",
4887 ":src_trace_processor_importers_fuchsia_minimal",
4888 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004889 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004890 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004891 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004892 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00004893 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004894 ":src_trace_processor_importers_proto_full",
4895 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00004896 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004897 ":src_trace_processor_importers_proto_proto_importer_module",
4898 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004899 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00004900 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004901 ":src_trace_processor_importers_systrace_systrace_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01004902 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004903 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004904 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00004905 ":src_trace_processor_prelude_functions_functions",
4906 ":src_trace_processor_prelude_operators_operators",
Lalit Maganti84aa9022023-03-17 20:29:56 +00004907 ":src_trace_processor_prelude_table_functions_table_functions",
Lalit Maganti3df8a7e2023-04-25 14:18:17 +01004908 ":src_trace_processor_prelude_table_functions_tables",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004909 ":src_trace_processor_rpc_httpd",
4910 ":src_trace_processor_rpc_rpc",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00004911 ":src_trace_processor_sorter_sorter",
Primiano Tucci1d409982019-09-19 10:15:18 +01004912 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01004913 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004914 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004915 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004916 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00004917 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004918 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00004919 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01004920 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01004921 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004922 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004923 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004924 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004925 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004926 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004927 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00004928 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004929 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00004930 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01004931 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004932 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01004933 ":src_trace_processor_views_views",
Primiano Tucci34bc5592021-02-19 17:53:36 +01004934 "src/trace_processor/trace_processor_shell.cc",
4935 "src/trace_processor/util/proto_to_json.cc",
4936 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01004937 ],
4938 visibility = [
4939 "//visibility:public",
4940 ],
4941 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004942 ":protos_perfetto_common_zero",
4943 ":protos_perfetto_config_android_zero",
4944 ":protos_perfetto_config_ftrace_zero",
4945 ":protos_perfetto_config_gpu_zero",
4946 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004947 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004948 ":protos_perfetto_config_power_zero",
4949 ":protos_perfetto_config_process_stats_zero",
4950 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004951 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004952 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004953 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004954 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004955 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004956 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004957 ":protos_perfetto_trace_chrome_zero",
4958 ":protos_perfetto_trace_filesystem_zero",
4959 ":protos_perfetto_trace_ftrace_zero",
4960 ":protos_perfetto_trace_gpu_zero",
4961 ":protos_perfetto_trace_interned_data_zero",
4962 ":protos_perfetto_trace_minimal_zero",
4963 ":protos_perfetto_trace_non_minimal_zero",
4964 ":protos_perfetto_trace_perfetto_zero",
4965 ":protos_perfetto_trace_power_zero",
4966 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004967 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004968 ":protos_perfetto_trace_profiling_zero",
4969 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004970 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004971 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004972 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004973 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004974 ":protos_perfetto_trace_translation_zero",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004975 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004976 ":protozero",
4977 ":src_base_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +00004978 ":src_base_http_http",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004979 ":src_base_version",
Ryan7ad6b7d2021-04-22 17:03:54 +01004980 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00004981 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
4982 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004983 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004984 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00004985 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004986 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00004987 ":src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004988 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004989 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
Lalit Maganti8ac54f52023-04-24 15:22:22 +01004990 ":src_trace_processor_prelude_tables_views_tables_views",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004991 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004992 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01004993 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01004994 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01004995 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004996 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00004997 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00004998 PERFETTO_CONFIG.deps.demangle_wrapper,
Primiano Tucci1d409982019-09-19 10:15:18 +01004999)
5000
Hector Dearmana9545e52022-05-17 12:23:25 +01005001# GN target: //src/traceconv:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01005002perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02005003 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01005004 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00005005 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00005006 ":src_profiling_symbolizer_symbolize_database",
5007 ":src_profiling_symbolizer_symbolizer",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00005008 ":src_trace_processor_util_stack_traces_util",
Hector Dearmana9545e52022-05-17 12:23:25 +01005009 ":src_traceconv_pprofbuilder",
5010 ":src_traceconv_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01005011 ],
5012 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01005013 ":include_perfetto_base_base",
5014 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00005015 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01005016 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01005017 ":include_perfetto_public_abi_base",
5018 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00005019 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00005020 ":include_perfetto_trace_processor_basic_types",
5021 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01005022 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01005023 ],
5024 visibility = [
5025 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01005026 ],
5027 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005028 ":protos_perfetto_common_zero",
5029 ":protos_perfetto_config_android_zero",
5030 ":protos_perfetto_config_ftrace_zero",
5031 ":protos_perfetto_config_gpu_zero",
5032 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00005033 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005034 ":protos_perfetto_config_power_zero",
5035 ":protos_perfetto_config_process_stats_zero",
5036 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005037 ":protos_perfetto_config_statsd_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005038 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01005039 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00005040 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005041 ":protos_perfetto_config_zero",
5042 ":protos_perfetto_trace_android_zero",
5043 ":protos_perfetto_trace_chrome_zero",
5044 ":protos_perfetto_trace_filesystem_zero",
5045 ":protos_perfetto_trace_ftrace_zero",
5046 ":protos_perfetto_trace_gpu_zero",
5047 ":protos_perfetto_trace_interned_data_zero",
5048 ":protos_perfetto_trace_minimal_zero",
5049 ":protos_perfetto_trace_non_minimal_zero",
5050 ":protos_perfetto_trace_perfetto_zero",
5051 ":protos_perfetto_trace_power_zero",
5052 ":protos_perfetto_trace_profiling_zero",
5053 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005054 ":protos_perfetto_trace_statsd_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005055 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01005056 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005057 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00005058 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005059 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00005060 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01005061 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005062 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00005063 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01005064)
5065
Hector Dearmana9545e52022-05-17 12:23:25 +01005066# GN target: //src/traceconv:traceconv
Lalit Maganti65600342019-09-19 21:35:35 +01005067perfetto_cc_binary(
Hector Dearmana9545e52022-05-17 12:23:25 +01005068 name = "traceconv",
Lalit Maganti65600342019-09-19 21:35:35 +01005069 srcs = [
5070 ":include_perfetto_base_base",
5071 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00005072 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01005073 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01005074 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01005075 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00005076 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01005077 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01005078 ":include_perfetto_public_abi_base",
5079 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00005080 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00005081 ":include_perfetto_trace_processor_basic_types",
5082 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01005083 ":include_perfetto_trace_processor_trace_processor",
Ryan Zuklieec18eb32022-07-25 15:51:59 -07005084 ":src_kernel_utils_syscall_table",
Florian Mayer3be55fb2019-11-22 13:08:47 +00005085 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00005086 ":src_profiling_symbolizer_symbolize_database",
5087 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01005088 ":src_protozero_proto_ring_buffer",
Lalit Maganti1534bb72021-04-23 14:11:26 +01005089 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00005090 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01005091 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01005092 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00005093 ":src_trace_processor_importers_common_parser_types",
5094 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005095 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
5096 ":src_trace_processor_importers_ftrace_full",
5097 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00005098 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00005099 ":src_trace_processor_importers_fuchsia_full",
5100 ":src_trace_processor_importers_fuchsia_minimal",
5101 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005102 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00005103 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005104 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01005105 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00005106 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00005107 ":src_trace_processor_importers_proto_full",
5108 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00005109 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005110 ":src_trace_processor_importers_proto_proto_importer_module",
5111 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00005112 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00005113 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005114 ":src_trace_processor_importers_systrace_systrace_parser",
Lalit Maganti65600342019-09-19 21:35:35 +01005115 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01005116 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00005117 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00005118 ":src_trace_processor_prelude_functions_functions",
5119 ":src_trace_processor_prelude_operators_operators",
Lalit Maganti84aa9022023-03-17 20:29:56 +00005120 ":src_trace_processor_prelude_table_functions_table_functions",
Lalit Maganti3df8a7e2023-04-25 14:18:17 +01005121 ":src_trace_processor_prelude_table_functions_tables",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00005122 ":src_trace_processor_sorter_sorter",
Lalit Maganti65600342019-09-19 21:35:35 +01005123 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01005124 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00005125 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00005126 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01005127 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00005128 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00005129 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00005130 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01005131 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01005132 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01005133 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00005134 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00005135 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00005136 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00005137 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04005138 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00005139 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00005140 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00005141 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01005142 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01005143 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01005144 ":src_trace_processor_views_views",
Hector Dearmana9545e52022-05-17 12:23:25 +01005145 ":src_traceconv_lib",
5146 ":src_traceconv_main",
5147 ":src_traceconv_pprofbuilder",
5148 ":src_traceconv_utils",
Lalit Maganti65600342019-09-19 21:35:35 +01005149 ],
5150 visibility = [
5151 "//visibility:public",
5152 ],
5153 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01005154 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005155 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005156 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005157 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005158 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00005159 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005160 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005161 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005162 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005163 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005164 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01005165 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00005166 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005167 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005168 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005169 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005170 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005171 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005172 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005173 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005174 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005175 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005176 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005177 ":protos_perfetto_trace_power_zero",
5178 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04005179 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005180 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005181 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005182 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005183 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01005184 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005185 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00005186 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005187 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02005188 ":protozero",
5189 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01005190 ":src_base_version",
Ryan7ad6b7d2021-04-22 17:03:54 +01005191 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00005192 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
5193 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00005194 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005195 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00005196 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01005197 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Oksana Zhuravlova62ef13f2023-04-20 14:19:17 +00005198 ":src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01005199 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00005200 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
Lalit Maganti8ac54f52023-04-24 15:22:22 +01005201 ":src_trace_processor_prelude_tables_views_tables_views",
Lalit Magantie277dcb2022-11-09 15:57:58 +00005202 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Hector Dearmana9545e52022-05-17 12:23:25 +01005203 ":src_traceconv_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01005204 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01005205 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01005206 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00005207 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00005208 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Maganti65600342019-09-19 21:35:35 +01005209)
5210
Hector Dearmana9545e52022-05-17 12:23:25 +01005211# GN target: //src/traced/probes:traced_probes
5212perfetto_cc_binary(
5213 name = "traced_probes",
5214 srcs = [
5215 ":include_perfetto_ext_traced_traced",
5216 "src/traced/probes/main.cc",
5217 ],
5218 visibility = [
5219 "//visibility:public",
5220 ],
5221 deps = [
5222 ":libperfetto",
5223 ],
5224)
5225
5226# GN target: //src/traced/service:traced
5227perfetto_cc_binary(
5228 name = "traced",
5229 srcs = [
5230 ":include_perfetto_ext_traced_traced",
5231 "src/traced/service/main.cc",
5232 ],
5233 visibility = [
5234 "//visibility:public",
5235 ],
5236 deps = [
5237 ":libperfetto",
5238 ],
5239)
5240
Primiano Tucci1d409982019-09-19 10:15:18 +01005241# Content from BUILD.extras
5242
5243build_config_dir_ = "include/perfetto/base/build_configs/bazel"
5244
5245# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
5246# This is pulled as a default dep by all targets.
Harvey Yang321c4fc2021-10-25 14:11:50 +08005247perfetto_build_config_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01005248 name = "build_config_hdr",
5249 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
5250 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02005251)
5252
Primiano Tucci1d409982019-09-19 10:15:18 +01005253perfetto_py_binary(
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005254 name = "gen_amalgamated_sql_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01005255 srcs = [
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005256 "tools/gen_amalgamated_sql.py",
Lalit Magantiab619fa2019-05-02 12:56:37 +01005257 ],
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005258 main = "tools/gen_amalgamated_sql.py",
Lalit Magantic449f772020-06-03 14:20:10 +01005259 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01005260)
Lalit Maganti65600342019-09-19 21:35:35 +01005261
Lalit Maganti117272f2020-09-11 14:01:18 +01005262perfetto_py_binary(
5263 name = "gen_cc_proto_descriptor_py",
5264 srcs = [
5265 "tools/gen_cc_proto_descriptor.py",
5266 ],
5267 main = "tools/gen_cc_proto_descriptor.py",
5268 python_version = "PY3",
5269)
5270
Lalit Maganti225ae652022-06-27 21:28:21 +01005271perfetto_go_proto_library(
5272 name = "protos_perfetto_trace_non_minimal_protos_go_proto",
5273 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01005274 deps = [
Lalit Maganti225ae652022-06-27 21:28:21 +01005275 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti65600342019-09-19 21:35:35 +01005276 ],
5277)
5278
Lalit Maganti225ae652022-06-27 21:28:21 +01005279perfetto_go_proto_library(
5280 name = "protos_perfetto_trace_track_event_protos_go_proto",
5281 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01005282 deps = [
Lalit Maganti225ae652022-06-27 21:28:21 +01005283 ":protos_perfetto_trace_track_event_protos",
Lalit Maganti65600342019-09-19 21:35:35 +01005284 ],
Lalit Maganti46e2bda2020-05-06 12:51:33 +01005285)
5286
Lalit Maganti66732a02022-10-06 11:53:46 +01005287perfetto_go_proto_library(
5288 name = "protos_perfetto_metrics_protos_go_proto",
5289 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
5290 deps = [
5291 ":protos_perfetto_metrics_protos",
5292 ],
5293)
5294
5295perfetto_go_proto_library(
5296 name = "protos_perfetto_metrics_android_protos_go_proto",
5297 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
5298 deps = [
5299 ":protos_perfetto_metrics_android_protos",
5300 ],
5301)
5302
Primiano Tucciec590132020-11-16 14:16:44 +01005303# This is overridden in google internal builds via
5304# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
5305perfetto_cc_library(
5306 name = "cc_perfetto_version_header",
5307 hdrs = ["perfetto_version.gen.h"],
5308)
5309
5310perfetto_py_binary(
5311 name = "gen_version_header_py",
5312 srcs = ["tools/write_version_header.py"],
5313 data = ["CHANGELOG"],
5314 main = "tools/write_version_header.py",
5315 python_version = "PY3",
5316)