blob: 1d80406ad3af977313c6eab97a2f4b3d94cba328 [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",
133 "src/protozero/message_handle.cc",
134 "src/protozero/packed_repeated_fields.cc",
135 "src/protozero/proto_decoder.cc",
136 "src/protozero/scattered_heap_buffer.cc",
137 "src/protozero/scattered_stream_null_delegate.cc",
138 "src/protozero/scattered_stream_writer.cc",
139 "src/protozero/static_buffer.cc",
140 "src/protozero/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100141 ],
142 hdrs = [
143 ":include_perfetto_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100144 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100145 ":include_perfetto_public_abi_base",
146 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000147 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100148 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200149 deps = [
150 ":src_base_base",
151 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000152 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100153)
154
Hector Dearman772a7e02022-05-12 15:47:54 +0100155# GN target: //src/tools/proto_filter:proto_filter
156perfetto_cc_binary(
157 name = "proto_filter",
158 srcs = [
159 ":src_protozero_filtering_bytecode_common",
160 ":src_protozero_filtering_bytecode_generator",
161 ":src_protozero_filtering_bytecode_parser",
162 ":src_protozero_filtering_filter_util",
163 ":src_protozero_filtering_message_filter",
164 "src/tools/proto_filter/proto_filter.cc",
165 ],
166 deps = [
167 ":protozero",
168 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100169 ":src_base_version",
Hector Dearman772a7e02022-05-12 15:47:54 +0100170 ] + PERFETTO_CONFIG.deps.protobuf_full,
171)
172
173# GN target: //src/tools/proto_merger:proto_merger
174perfetto_cc_binary(
175 name = "proto_merger",
176 srcs = [
177 "src/tools/proto_merger/allowlist.cc",
178 "src/tools/proto_merger/allowlist.h",
179 "src/tools/proto_merger/main.cc",
180 "src/tools/proto_merger/proto_file.cc",
181 "src/tools/proto_merger/proto_file.h",
182 "src/tools/proto_merger/proto_file_serializer.cc",
183 "src/tools/proto_merger/proto_file_serializer.h",
184 "src/tools/proto_merger/proto_merger.cc",
185 "src/tools/proto_merger/proto_merger.h",
186 ],
187 deps = [
188 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100189 ":src_base_version",
Hector Dearman772a7e02022-05-12 15:47:54 +0100190 ] + PERFETTO_CONFIG.deps.protobuf_full,
191)
192
Lalit Maganti01deefa2019-12-19 14:20:12 +0000193# GN target: //test:client_api_example
194perfetto_cc_binary(
195 name = "client_api_example",
196 srcs = [
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000197 ":include_perfetto_base_base",
198 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100199 ":include_perfetto_public_abi_base",
200 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000201 ":include_perfetto_public_protozero",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000202 ":include_perfetto_tracing_core_forward_decls",
203 ":include_perfetto_tracing_tracing",
Primiano Tucci34bc5592021-02-19 17:53:36 +0100204 "test/client_api_example.cc",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000205 ],
206 deps = [
207 ":libperfetto_client_experimental",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000208 ":protos_perfetto_common_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000209 ":protos_perfetto_common_zero",
210 ":protos_perfetto_config_android_zero",
211 ":protos_perfetto_config_ftrace_zero",
212 ":protos_perfetto_config_gpu_zero",
213 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000214 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000215 ":protos_perfetto_config_power_zero",
216 ":protos_perfetto_config_process_stats_zero",
217 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100218 ":protos_perfetto_config_statsd_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000219 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +0100220 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000221 ":protos_perfetto_config_track_event_cpp",
222 ":protos_perfetto_config_track_event_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000223 ":protos_perfetto_config_zero",
224 ":protos_perfetto_trace_android_zero",
225 ":protos_perfetto_trace_chrome_zero",
226 ":protos_perfetto_trace_filesystem_zero",
227 ":protos_perfetto_trace_ftrace_zero",
228 ":protos_perfetto_trace_gpu_zero",
229 ":protos_perfetto_trace_interned_data_zero",
230 ":protos_perfetto_trace_minimal_zero",
231 ":protos_perfetto_trace_non_minimal_zero",
232 ":protos_perfetto_trace_perfetto_zero",
233 ":protos_perfetto_trace_power_zero",
234 ":protos_perfetto_trace_profiling_zero",
235 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100236 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000237 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100238 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100239 ":protos_perfetto_trace_track_event_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000240 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000241 ":protos_perfetto_trace_translation_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000242 ],
243)
244
Primiano Tucci1d409982019-09-19 10:15:18 +0100245# GN target: //:libperfetto
246perfetto_cc_library(
247 name = "libperfetto",
248 srcs = [
249 ":src_android_internal_headers",
250 ":src_android_internal_lazy_library_loader",
Lalit Magantiea7631b2021-01-13 12:33:55 +0000251 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +0000252 ":src_android_stats_perfetto_atoms",
Ryan Savitskidc218882020-11-16 18:02:02 +0000253 ":src_kallsyms_kallsyms",
Ryan Zuklieec18eb32022-07-25 15:51:59 -0700254 ":src_kernel_utils_syscall_table",
Primiano Tuccif18ab812021-05-14 23:01:19 +0100255 ":src_protozero_filtering_bytecode_common",
256 ":src_protozero_filtering_bytecode_parser",
257 ":src_protozero_filtering_message_filter",
Hector Dearman09db5b02022-07-11 13:35:23 +0100258 ":src_protozero_proto_ring_buffer",
Andy Yu2b0a2132022-04-07 16:17:10 -0700259 ":src_traced_probes_android_game_intervention_list_android_game_intervention_list",
Primiano Tucci1d409982019-09-19 10:15:18 +0100260 ":src_traced_probes_android_log_android_log",
Simon MacMullenf0a6b382022-07-06 16:35:55 +0000261 ":src_traced_probes_android_system_property_android_system_property",
Rafal Slawik8053a682020-04-08 17:26:40 +0100262 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100263 ":src_traced_probes_data_source",
264 ":src_traced_probes_filesystem_filesystem",
Primiano Tucci65a4fb12020-12-21 18:35:15 +0100265 ":src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100266 ":src_traced_probes_ftrace_ftrace",
Ryan Savitskiec35afb2021-01-29 18:39:36 +0000267 ":src_traced_probes_ftrace_ftrace_procfs",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100268 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100269 ":src_traced_probes_metatrace_metatrace",
270 ":src_traced_probes_packages_list_packages_list",
Florian Mayer29e17182020-12-23 10:59:02 +0000271 ":src_traced_probes_packages_list_packages_list_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100272 ":src_traced_probes_power_power",
273 ":src_traced_probes_probes",
274 ":src_traced_probes_probes_src",
275 ":src_traced_probes_ps_ps",
Hector Dearman09db5b02022-07-11 13:35:23 +0100276 ":src_traced_probes_statsd_client_statsd_client",
Primiano Tucci1d409982019-09-19 10:15:18 +0100277 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100278 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100279 ":src_traced_service_service",
280 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000281 ":src_tracing_core_core",
282 ":src_tracing_core_service",
283 ":src_tracing_ipc_common",
Primiano Tucci8761a312021-11-25 17:17:23 +0000284 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000285 ":src_tracing_ipc_producer_producer",
286 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100287 ],
288 hdrs = [
289 ":include_perfetto_base_base",
290 ":include_perfetto_ext_base_base",
291 ":include_perfetto_ext_ipc_ipc",
292 ":include_perfetto_ext_traced_sys_stats_counters",
293 ":include_perfetto_ext_traced_traced",
294 ":include_perfetto_ext_tracing_core_core",
295 ":include_perfetto_ext_tracing_ipc_ipc",
296 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100297 ":include_perfetto_public_abi_base",
298 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000299 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100300 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000301 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100302 ":include_perfetto_tracing_tracing",
303 ],
304 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200305 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100306 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100307 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100308 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100309 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100310 ":protos_perfetto_config_cpp",
311 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100312 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100313 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100314 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100315 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100316 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000317 ":protos_perfetto_config_interceptors_cpp",
318 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100319 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100320 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100321 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100322 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100323 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100324 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +0100325 ":protos_perfetto_config_statsd_cpp",
326 ":protos_perfetto_config_statsd_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100327 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100328 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +0100329 ":protos_perfetto_config_system_info_cpp",
330 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000331 ":protos_perfetto_config_track_event_cpp",
332 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100333 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000334 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100335 ":protos_perfetto_ipc_ipc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100336 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100337 ":protos_perfetto_trace_chrome_zero",
338 ":protos_perfetto_trace_filesystem_zero",
339 ":protos_perfetto_trace_ftrace_zero",
340 ":protos_perfetto_trace_gpu_zero",
341 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100342 ":protos_perfetto_trace_minimal_zero",
343 ":protos_perfetto_trace_non_minimal_zero",
344 ":protos_perfetto_trace_perfetto_zero",
345 ":protos_perfetto_trace_power_zero",
346 ":protos_perfetto_trace_profiling_zero",
347 ":protos_perfetto_trace_ps_zero",
Hector Dearman09db5b02022-07-11 13:35:23 +0100348 ":protos_perfetto_trace_statsd_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +0100349 ":protos_perfetto_trace_statsd_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100350 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100351 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100352 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100353 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000354 ":protos_perfetto_trace_translation_zero",
Hector Dearman09db5b02022-07-11 13:35:23 +0100355 ":protos_third_party_statsd_config_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200356 ":protozero",
357 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100358 ":src_base_version",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000359 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000360 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100361)
362
363# GN target: //include/perfetto/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800364perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100365 name = "include_perfetto_base_base",
366 srcs = [
367 "include/perfetto/base/build_config.h",
368 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100369 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000370 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100371 "include/perfetto/base/logging.h",
Primiano Tuccif9460fa2020-12-09 01:28:33 +0100372 "include/perfetto/base/platform_handle.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000373 "include/perfetto/base/proc_utils.h",
Primiano Tuccidf440312020-10-30 16:43:58 +0100374 "include/perfetto/base/status.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100375 "include/perfetto/base/task_runner.h",
Alexander Timinba53cc72021-02-05 15:46:57 +0000376 "include/perfetto/base/template_util.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000377 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100378 "include/perfetto/base/time.h",
379 ],
380)
381
Primiano Tucci44a15be2021-11-06 21:40:18 +0000382# GN target: //include/perfetto/ext/base/http:http
383perfetto_filegroup(
384 name = "include_perfetto_ext_base_http_http",
385 srcs = [
386 "include/perfetto/ext/base/http/http_server.h",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000387 "include/perfetto/ext/base/http/sha1.h",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000388 ],
389)
390
Primiano Tucci1d409982019-09-19 10:15:18 +0100391# GN target: //include/perfetto/ext/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800392perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100393 name = "include_perfetto_ext_base_base",
394 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000395 "include/perfetto/ext/base/android_utils.h",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000396 "include/perfetto/ext/base/base64.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100397 "include/perfetto/ext/base/circular_queue.h",
398 "include/perfetto/ext/base/container_annotations.h",
Primiano Tucciab699b72021-10-15 11:53:00 +0100399 "include/perfetto/ext/base/crash_keys.h",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100400 "include/perfetto/ext/base/ctrl_c_handler.h",
Primiano Tucciabbc9fd2020-10-08 22:09:07 +0200401 "include/perfetto/ext/base/endian.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100402 "include/perfetto/ext/base/event_fd.h",
403 "include/perfetto/ext/base/file_utils.h",
Primiano Tuccic986ca12021-11-18 20:51:24 +0000404 "include/perfetto/ext/base/flat_hash_map.h",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100405 "include/perfetto/ext/base/getopt.h",
406 "include/perfetto/ext/base/getopt_compat.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100407 "include/perfetto/ext/base/hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100408 "include/perfetto/ext/base/metatrace.h",
409 "include/perfetto/ext/base/metatrace_events.h",
410 "include/perfetto/ext/base/no_destructor.h",
411 "include/perfetto/ext/base/optional.h",
412 "include/perfetto/ext/base/paged_memory.h",
Primiano Tuccidac91702021-04-30 15:47:51 +0100413 "include/perfetto/ext/base/periodic_task.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100414 "include/perfetto/ext/base/pipe.h",
Lalit Maganti52f13362023-01-23 16:38:01 +0000415 "include/perfetto/ext/base/platform.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100416 "include/perfetto/ext/base/scoped_file.h",
417 "include/perfetto/ext/base/small_set.h",
Primiano Tucci34abb8d2021-11-16 13:38:01 +0000418 "include/perfetto/ext/base/small_vector.h",
Lalit Maganti8ef27df2023-01-10 21:38:46 +0000419 "include/perfetto/ext/base/status_or.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100420 "include/perfetto/ext/base/string_splitter.h",
421 "include/perfetto/ext/base/string_utils.h",
422 "include/perfetto/ext/base/string_view.h",
423 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000424 "include/perfetto/ext/base/subprocess.h",
Primiano Tuccibc44c3c2022-01-14 12:59:01 +0000425 "include/perfetto/ext/base/sys_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100426 "include/perfetto/ext/base/temp_file.h",
427 "include/perfetto/ext/base/thread_annotations.h",
428 "include/perfetto/ext/base/thread_checker.h",
429 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100430 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100431 "include/perfetto/ext/base/unix_socket.h",
432 "include/perfetto/ext/base/unix_task_runner.h",
433 "include/perfetto/ext/base/utils.h",
434 "include/perfetto/ext/base/uuid.h",
435 "include/perfetto/ext/base/waitable_event.h",
436 "include/perfetto/ext/base/watchdog.h",
437 "include/perfetto/ext/base/watchdog_noop.h",
438 "include/perfetto/ext/base/watchdog_posix.h",
439 "include/perfetto/ext/base/weak_ptr.h",
440 ],
441)
442
Daniele Di Proietto15b801e2022-06-30 12:56:13 +0100443# GN target: //include/perfetto/ext/base:version
444perfetto_filegroup(
445 name = "include_perfetto_ext_base_version",
446 srcs = [
447 "include/perfetto/ext/base/version.h",
448 ],
449)
450
Primiano Tucci1d409982019-09-19 10:15:18 +0100451# GN target: //include/perfetto/ext/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800452perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100453 name = "include_perfetto_ext_ipc_ipc",
454 srcs = [
455 "include/perfetto/ext/ipc/async_result.h",
456 "include/perfetto/ext/ipc/basic_types.h",
457 "include/perfetto/ext/ipc/client.h",
458 "include/perfetto/ext/ipc/client_info.h",
459 "include/perfetto/ext/ipc/codegen_helpers.h",
460 "include/perfetto/ext/ipc/deferred.h",
461 "include/perfetto/ext/ipc/host.h",
462 "include/perfetto/ext/ipc/service.h",
463 "include/perfetto/ext/ipc/service_descriptor.h",
464 "include/perfetto/ext/ipc/service_proxy.h",
465 ],
466)
467
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100468# GN target: //include/perfetto/ext/trace_processor/importers/memory_tracker:memory_tracker
Harvey Yang321c4fc2021-10-25 14:11:50 +0800469perfetto_filegroup(
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100470 name = "include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
471 srcs = [
472 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph.h",
473 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h",
474 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_allocator_node_id.h",
475 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_graph_edge.h",
476 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_memory_graph_node.h",
477 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_process_memory_node.h",
478 ],
479)
480
Ryan Savitskie65c4052022-03-24 18:22:19 +0000481# GN target: //include/perfetto/ext/trace_processor:demangle
482perfetto_filegroup(
483 name = "include_perfetto_ext_trace_processor_demangle",
484 srcs = [
485 "include/perfetto/ext/trace_processor/demangle.h",
486 ],
487)
488
Eric Seckler7fb1d232019-10-23 14:42:43 +0100489# GN target: //include/perfetto/ext/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +0800490perfetto_filegroup(
Eric Seckler7fb1d232019-10-23 14:42:43 +0100491 name = "include_perfetto_ext_trace_processor_export_json",
492 srcs = [
493 "include/perfetto/ext/trace_processor/export_json.h",
494 ],
495)
496
Primiano Tucci1d409982019-09-19 10:15:18 +0100497# GN target: //include/perfetto/ext/traced:sys_stats_counters
Harvey Yang321c4fc2021-10-25 14:11:50 +0800498perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100499 name = "include_perfetto_ext_traced_sys_stats_counters",
500 srcs = [
501 "include/perfetto/ext/traced/sys_stats_counters.h",
502 ],
503)
504
505# GN target: //include/perfetto/ext/traced:traced
Harvey Yang321c4fc2021-10-25 14:11:50 +0800506perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100507 name = "include_perfetto_ext_traced_traced",
508 srcs = [
509 "include/perfetto/ext/traced/data_source_types.h",
510 "include/perfetto/ext/traced/traced.h",
511 ],
512)
513
514# GN target: //include/perfetto/ext/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800515perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100516 name = "include_perfetto_ext_tracing_core_core",
517 srcs = [
518 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100519 "include/perfetto/ext/tracing/core/commit_data_request.h",
520 "include/perfetto/ext/tracing/core/consumer.h",
521 "include/perfetto/ext/tracing/core/observable_events.h",
522 "include/perfetto/ext/tracing/core/producer.h",
523 "include/perfetto/ext/tracing/core/shared_memory.h",
524 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
525 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
526 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100527 "include/perfetto/ext/tracing/core/trace_packet.h",
528 "include/perfetto/ext/tracing/core/trace_stats.h",
529 "include/perfetto/ext/tracing/core/trace_writer.h",
530 "include/perfetto/ext/tracing/core/tracing_service.h",
531 ],
532)
533
534# GN target: //include/perfetto/ext/tracing/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800535perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100536 name = "include_perfetto_ext_tracing_ipc_ipc",
537 srcs = [
538 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
539 "include/perfetto/ext/tracing/ipc/default_socket.h",
540 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
541 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
542 ],
543)
544
Florian Mayerbd88ff82019-12-18 16:36:37 +0000545# GN target: //include/perfetto/profiling:pprof_builder
Harvey Yang321c4fc2021-10-25 14:11:50 +0800546perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000547 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100548 srcs = [
549 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100550 ],
551)
552
Primiano Tucci1d409982019-09-19 10:15:18 +0100553# GN target: //include/perfetto/protozero:protozero
Harvey Yang321c4fc2021-10-25 14:11:50 +0800554perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100555 name = "include_perfetto_protozero_protozero",
556 srcs = [
557 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000558 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000559 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100560 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000561 "include/perfetto/protozero/field_writer.h",
Daniele Di Proiettoa8559af2022-12-15 16:20:17 +0000562 "include/perfetto/protozero/gen_field_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100563 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200564 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100565 "include/perfetto/protozero/message_handle.h",
566 "include/perfetto/protozero/packed_repeated_fields.h",
567 "include/perfetto/protozero/proto_decoder.h",
568 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200569 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100570 "include/perfetto/protozero/scattered_heap_buffer.h",
571 "include/perfetto/protozero/scattered_stream_null_delegate.h",
572 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000573 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100574 ],
575)
576
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100577# GN target: //include/perfetto/public/abi:base
578perfetto_filegroup(
579 name = "include_perfetto_public_abi_base",
580 srcs = [
Daniele Di Proietto713ab932022-04-22 15:59:57 +0100581 "include/perfetto/public/abi/atomic.h",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +0100582 "include/perfetto/public/abi/export.h",
583 ],
584)
585
586# GN target: //include/perfetto/public:base
587perfetto_filegroup(
588 name = "include_perfetto_public_base",
589 srcs = [
590 "include/perfetto/public/compiler.h",
591 ],
592)
593
Daniele Di Proietto7451ea62023-01-09 11:31:16 +0000594# GN target: //include/perfetto/public:protozero
595perfetto_filegroup(
596 name = "include_perfetto_public_protozero",
597 srcs = [
598 "include/perfetto/public/pb_utils.h",
599 ],
600)
601
Eric Secklera7870e62019-11-01 10:11:58 +0000602# GN target: //include/perfetto/trace_processor:basic_types
Harvey Yang321c4fc2021-10-25 14:11:50 +0800603perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000604 name = "include_perfetto_trace_processor_basic_types",
605 srcs = [
606 "include/perfetto/trace_processor/basic_types.h",
607 "include/perfetto/trace_processor/status.h",
608 ],
609)
610
611# GN target: //include/perfetto/trace_processor:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +0800612perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000613 name = "include_perfetto_trace_processor_storage",
614 srcs = [
Primiano Tucci3264b592021-11-08 18:20:51 +0000615 "include/perfetto/trace_processor/trace_blob.h",
616 "include/perfetto/trace_processor/trace_blob_view.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000617 "include/perfetto/trace_processor/trace_processor_storage.h",
618 ],
619)
620
Primiano Tucci1d409982019-09-19 10:15:18 +0100621# GN target: //include/perfetto/trace_processor:trace_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800622perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100623 name = "include_perfetto_trace_processor_trace_processor",
624 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100625 "include/perfetto/trace_processor/iterator.h",
Alexander Timinbaf9b872022-11-09 23:46:46 +0000626 "include/perfetto/trace_processor/metatrace_config.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100627 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci8b970aa2021-11-09 20:21:33 +0000628 "include/perfetto/trace_processor/ref_counted.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100629 "include/perfetto/trace_processor/trace_processor.h",
630 ],
631)
632
633# GN target: //include/perfetto/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800634perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100635 name = "include_perfetto_tracing_core_core",
636 srcs = [
637 "include/perfetto/tracing/core/chrome_config.h",
638 "include/perfetto/tracing/core/data_source_config.h",
639 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100640 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000641 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100642 "include/perfetto/tracing/core/tracing_service_state.h",
643 ],
644)
645
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000646# GN target: //include/perfetto/tracing/core:forward_decls
Harvey Yang321c4fc2021-10-25 14:11:50 +0800647perfetto_filegroup(
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000648 name = "include_perfetto_tracing_core_forward_decls",
649 srcs = [
650 "include/perfetto/tracing/core/forward_decls.h",
651 ],
652)
653
Primiano Tucci1d409982019-09-19 10:15:18 +0100654# GN target: //include/perfetto/tracing:tracing
Harvey Yang321c4fc2021-10-25 14:11:50 +0800655perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100656 name = "include_perfetto_tracing_tracing",
657 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100658 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100659 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000660 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100661 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000662 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000663 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000664 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100665 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000666 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000667 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100668 "include/perfetto/tracing/internal/data_source_internal.h",
Daniele Di Proietto1cb3efc2022-05-06 19:45:52 +0100669 "include/perfetto/tracing/internal/data_source_type.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000670 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000671 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000672 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000673 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100674 "include/perfetto/tracing/internal/tracing_muxer.h",
675 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700676 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100677 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000678 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100679 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000680 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100681 "include/perfetto/tracing/locked_handle.h",
682 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000683 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100684 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000685 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000686 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000687 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100688 "include/perfetto/tracing/tracing.h",
689 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100690 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000691 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700692 "include/perfetto/tracing/track_event.h",
Alexander Timin84af38b2021-10-05 17:10:31 +0100693 "include/perfetto/tracing/track_event_args.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100694 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000695 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000696 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000697 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100698 ],
699)
700
701# GN target: //src/android_internal:headers
Harvey Yang321c4fc2021-10-25 14:11:50 +0800702perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100703 name = "src_android_internal_headers",
704 srcs = [
705 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100706 "src/android_internal/health_hal.h",
707 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000708 "src/android_internal/power_stats.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
Lalit Maganti88e64de2022-11-21 18:29:57 +0000907# GN target: //src/perfetto_cmd:gen_cc_config_descriptor
Lalit Maganti2939c082021-03-11 17:25:44 +0000908perfetto_cc_proto_descriptor(
909 name = "src_perfetto_cmd_gen_cc_config_descriptor",
910 deps = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000911 ":protos_perfetto_config_descriptor",
Lalit Maganti2939c082021-03-11 17:25:44 +0000912 ],
913 outs = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000914 "src/perfetto_cmd/config.descriptor.h",
Lalit Maganti2939c082021-03-11 17:25:44 +0000915 ],
916)
917
Primiano Tucci1d409982019-09-19 10:15:18 +0100918# GN target: //src/perfetto_cmd:perfetto_cmd
Harvey Yang321c4fc2021-10-25 14:11:50 +0800919perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100920 name = "src_perfetto_cmd_perfetto_cmd",
921 srcs = [
922 "src/perfetto_cmd/config.cc",
923 "src/perfetto_cmd/config.h",
924 "src/perfetto_cmd/packet_writer.cc",
925 "src/perfetto_cmd/packet_writer.h",
926 "src/perfetto_cmd/pbtxt_to_pb.cc",
927 "src/perfetto_cmd/pbtxt_to_pb.h",
928 "src/perfetto_cmd/perfetto_cmd.cc",
929 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100930 "src/perfetto_cmd/rate_limiter.cc",
931 "src/perfetto_cmd/rate_limiter.h",
932 ],
933)
934
935# GN target: //src/perfetto_cmd:trigger_producer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800936perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100937 name = "src_perfetto_cmd_trigger_producer",
938 srcs = [
939 "src/perfetto_cmd/trigger_producer.cc",
940 "src/perfetto_cmd/trigger_producer.h",
941 ],
942)
943
Florian Mayerbd88ff82019-12-18 16:36:37 +0000944# GN target: //src/profiling/symbolizer:symbolize_database
Harvey Yang321c4fc2021-10-25 14:11:50 +0800945perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000946 name = "src_profiling_symbolizer_symbolize_database",
947 srcs = [
948 "src/profiling/symbolizer/symbolize_database.cc",
949 "src/profiling/symbolizer/symbolize_database.h",
950 ],
951)
952
953# GN target: //src/profiling/symbolizer:symbolizer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800954perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000955 name = "src_profiling_symbolizer_symbolizer",
956 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000957 "src/profiling/symbolizer/breakpad_parser.cc",
958 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000959 "src/profiling/symbolizer/breakpad_symbolizer.cc",
960 "src/profiling/symbolizer/breakpad_symbolizer.h",
Daniele Di Proietto25f80692021-09-17 10:14:41 +0000961 "src/profiling/symbolizer/elf.h",
Daniele Di Proiettocb426002023-02-16 12:14:38 +0000962 "src/profiling/symbolizer/filesystem.h",
963 "src/profiling/symbolizer/filesystem_posix.cc",
964 "src/profiling/symbolizer/filesystem_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000965 "src/profiling/symbolizer/local_symbolizer.cc",
966 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800967 "src/profiling/symbolizer/scoped_read_mmap.h",
968 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800969 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800970 "src/profiling/symbolizer/subprocess.h",
971 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800972 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000973 "src/profiling/symbolizer/symbolizer.cc",
974 "src/profiling/symbolizer/symbolizer.h",
975 ],
976)
977
Florian Mayer3be55fb2019-11-22 13:08:47 +0000978# GN target: //src/profiling:deobfuscator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800979perfetto_filegroup(
Florian Mayer3be55fb2019-11-22 13:08:47 +0000980 name = "src_profiling_deobfuscator",
981 srcs = [
982 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000983 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000984 ],
985)
986
Primiano Tuccif18ab812021-05-14 23:01:19 +0100987# GN target: //src/protozero/filtering:bytecode_common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800988perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100989 name = "src_protozero_filtering_bytecode_common",
990 srcs = [
991 "src/protozero/filtering/filter_bytecode_common.h",
992 ],
993)
994
Lalit Magantiff9b3262021-07-01 22:24:01 +0100995# GN target: //src/protozero/filtering:bytecode_generator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800996perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100997 name = "src_protozero_filtering_bytecode_generator",
998 srcs = [
999 "src/protozero/filtering/filter_bytecode_generator.cc",
1000 "src/protozero/filtering/filter_bytecode_generator.h",
1001 ],
1002)
1003
Primiano Tuccif18ab812021-05-14 23:01:19 +01001004# GN target: //src/protozero/filtering:bytecode_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001005perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +01001006 name = "src_protozero_filtering_bytecode_parser",
1007 srcs = [
1008 "src/protozero/filtering/filter_bytecode_parser.cc",
1009 "src/protozero/filtering/filter_bytecode_parser.h",
1010 ],
1011)
1012
Lalit Magantiff9b3262021-07-01 22:24:01 +01001013# GN target: //src/protozero/filtering:filter_util
Harvey Yang321c4fc2021-10-25 14:11:50 +08001014perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +01001015 name = "src_protozero_filtering_filter_util",
1016 srcs = [
1017 "src/protozero/filtering/filter_util.cc",
1018 "src/protozero/filtering/filter_util.h",
1019 ],
1020)
1021
Primiano Tuccif18ab812021-05-14 23:01:19 +01001022# GN target: //src/protozero/filtering:message_filter
Harvey Yang321c4fc2021-10-25 14:11:50 +08001023perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +01001024 name = "src_protozero_filtering_message_filter",
1025 srcs = [
1026 "src/protozero/filtering/message_filter.cc",
1027 "src/protozero/filtering/message_filter.h",
1028 "src/protozero/filtering/message_tokenizer.h",
1029 ],
1030)
1031
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01001032# GN target: //src/protozero:proto_ring_buffer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001033perfetto_filegroup(
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01001034 name = "src_protozero_proto_ring_buffer",
1035 srcs = [
1036 "src/protozero/proto_ring_buffer.cc",
1037 "src/protozero/proto_ring_buffer.h",
1038 ],
1039)
1040
Lalit Maganti2aa88582019-12-17 17:06:49 +00001041# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +01001042perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +00001043 name = "src_trace_processor_containers_containers",
1044 srcs = [
1045 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001046 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +01001047 "src/trace_processor/containers/row_map.cc",
1048 "src/trace_processor/containers/string_pool.cc",
1049 ],
1050 hdrs = [
1051 ":include_perfetto_base_base",
1052 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01001053 ":include_perfetto_public_abi_base",
1054 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00001055 ":include_perfetto_public_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01001056 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001057 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +00001058 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +01001059 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001060 "src/trace_processor/containers/row_map.h",
Lalit Maganti2572ddc2022-05-05 00:25:37 +01001061 "src/trace_processor/containers/row_map_algorithms.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +00001062 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +00001063 ],
Ryan0331ac02021-04-26 15:41:47 +01001064 deps = [
1065 ":src_base_base",
1066 ],
1067 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +00001068)
1069
Lalit Maganti1534bb72021-04-23 14:11:26 +01001070# GN target: //src/trace_processor/db:db
Harvey Yang321c4fc2021-10-25 14:11:50 +08001071perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001072 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +01001073 srcs = [
Lalit Maganti03376e52022-05-24 01:23:34 +01001074 "src/trace_processor/db/base_id.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001075 "src/trace_processor/db/column.cc",
1076 "src/trace_processor/db/column.h",
Lalit Maganti0fc85432022-06-17 15:26:22 +01001077 "src/trace_processor/db/column_storage.cc",
1078 "src/trace_processor/db/column_storage.h",
Lalit Magantic57ab902022-07-08 15:35:48 +01001079 "src/trace_processor/db/column_storage_overlay.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +00001080 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001081 "src/trace_processor/db/table.cc",
1082 "src/trace_processor/db/table.h",
1083 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +00001084 "src/trace_processor/db/typed_column_internal.h",
Lalit Maganti2410f202022-05-27 20:57:53 +01001085 "src/trace_processor/db/view.cc",
1086 "src/trace_processor/db/view.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001087 ],
1088)
1089
Lalit Maganti3927af82022-05-09 20:23:40 +01001090# GN target: //src/trace_processor/dynamic:dynamic
1091perfetto_filegroup(
1092 name = "src_trace_processor_dynamic_dynamic",
1093 srcs = [
1094 "src/trace_processor/dynamic/ancestor_generator.cc",
1095 "src/trace_processor/dynamic/ancestor_generator.h",
1096 "src/trace_processor/dynamic/connected_flow_generator.cc",
1097 "src/trace_processor/dynamic/connected_flow_generator.h",
1098 "src/trace_processor/dynamic/descendant_generator.cc",
1099 "src/trace_processor/dynamic/descendant_generator.h",
Lalit Maganti3927af82022-05-09 20:23:40 +01001100 "src/trace_processor/dynamic/dynamic_table_generator.cc",
1101 "src/trace_processor/dynamic/dynamic_table_generator.h",
1102 "src/trace_processor/dynamic/experimental_annotated_stack_generator.cc",
1103 "src/trace_processor/dynamic/experimental_annotated_stack_generator.h",
1104 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
1105 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
1106 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
1107 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
1108 "src/trace_processor/dynamic/experimental_flat_slice_generator.cc",
1109 "src/trace_processor/dynamic/experimental_flat_slice_generator.h",
1110 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
1111 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
1112 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
1113 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
1114 "src/trace_processor/dynamic/flamegraph_construction_algorithms.cc",
1115 "src/trace_processor/dynamic/flamegraph_construction_algorithms.h",
Lalit Maganti66127e82022-05-31 18:35:46 +01001116 "src/trace_processor/dynamic/view_generator.cc",
1117 "src/trace_processor/dynamic/view_generator.h",
Lalit Maganti3927af82022-05-09 20:23:40 +01001118 ],
1119)
1120
Primiano Tuccic9d912e2022-07-28 23:30:11 +01001121# GN target: //src/trace_processor/importers/android_bugreport:android_bugreport
1122perfetto_filegroup(
1123 name = "src_trace_processor_importers_android_bugreport_android_bugreport",
1124 srcs = [
1125 "src/trace_processor/importers/android_bugreport/android_bugreport_parser.cc",
1126 "src/trace_processor/importers/android_bugreport/android_bugreport_parser.h",
1127 "src/trace_processor/importers/android_bugreport/android_log_parser.cc",
1128 "src/trace_processor/importers/android_bugreport/android_log_parser.h",
1129 ],
1130)
1131
Lalit Maganti1534bb72021-04-23 14:11:26 +01001132# GN target: //src/trace_processor/importers/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001133perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001134 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001135 srcs = [
1136 "src/trace_processor/importers/common/args_tracker.cc",
1137 "src/trace_processor/importers/common/args_tracker.h",
Igor Kraskevichbadba0b2022-03-22 19:44:20 +00001138 "src/trace_processor/importers/common/args_translation_table.cc",
1139 "src/trace_processor/importers/common/args_translation_table.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001140 "src/trace_processor/importers/common/async_track_set_tracker.cc",
1141 "src/trace_processor/importers/common/async_track_set_tracker.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +01001142 "src/trace_processor/importers/common/chunked_trace_reader.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001143 "src/trace_processor/importers/common/clock_tracker.cc",
1144 "src/trace_processor/importers/common/clock_tracker.h",
Violetta Fedotovaffe20e62022-11-23 11:00:08 +00001145 "src/trace_processor/importers/common/deobfuscation_mapping_table.cc",
1146 "src/trace_processor/importers/common/deobfuscation_mapping_table.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001147 "src/trace_processor/importers/common/event_tracker.cc",
1148 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001149 "src/trace_processor/importers/common/flow_tracker.cc",
1150 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001151 "src/trace_processor/importers/common/global_args_tracker.cc",
1152 "src/trace_processor/importers/common/global_args_tracker.h",
1153 "src/trace_processor/importers/common/process_tracker.cc",
1154 "src/trace_processor/importers/common/process_tracker.h",
1155 "src/trace_processor/importers/common/slice_tracker.cc",
1156 "src/trace_processor/importers/common/slice_tracker.h",
Igor Kraskevich4f062ad2022-04-11 16:29:06 +00001157 "src/trace_processor/importers/common/slice_translation_table.cc",
1158 "src/trace_processor/importers/common/slice_translation_table.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001159 "src/trace_processor/importers/common/system_info_tracker.cc",
1160 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantieb2645a2022-11-25 15:49:35 +00001161 "src/trace_processor/importers/common/trace_parser.cc",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001162 "src/trace_processor/importers/common/track_tracker.cc",
1163 "src/trace_processor/importers/common/track_tracker.h",
1164 ],
1165)
1166
Lalit Magantieb2645a2022-11-25 15:49:35 +00001167# GN target: //src/trace_processor/importers/common:parser_types
Lalit Magantife2519b2022-11-24 21:12:05 +00001168perfetto_filegroup(
Lalit Magantieb2645a2022-11-25 15:49:35 +00001169 name = "src_trace_processor_importers_common_parser_types",
1170 srcs = [
1171 "src/trace_processor/importers/common/parser_types.h",
1172 ],
1173)
1174
1175# GN target: //src/trace_processor/importers/common:trace_parser_hdr
1176perfetto_filegroup(
1177 name = "src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantife2519b2022-11-24 21:12:05 +00001178 srcs = [
1179 "src/trace_processor/importers/common/trace_parser.h",
1180 ],
1181)
1182
Lalit Magantib9a5b432022-12-01 16:13:11 +00001183# GN target: //src/trace_processor/importers/ftrace:ftrace_descriptors
1184perfetto_filegroup(
1185 name = "src_trace_processor_importers_ftrace_ftrace_descriptors",
1186 srcs = [
1187 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1188 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1189 ],
1190)
1191
1192# GN target: //src/trace_processor/importers/ftrace:full
1193perfetto_filegroup(
1194 name = "src_trace_processor_importers_ftrace_full",
1195 srcs = [
1196 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1197 "src/trace_processor/importers/ftrace/binder_tracker.h",
1198 "src/trace_processor/importers/ftrace/drm_tracker.cc",
1199 "src/trace_processor/importers/ftrace/drm_tracker.h",
1200 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1201 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1202 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1203 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1204 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1205 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
1206 "src/trace_processor/importers/ftrace/iostat_tracker.cc",
1207 "src/trace_processor/importers/ftrace/iostat_tracker.h",
Devika Krishnadasab3673c2022-12-20 23:55:20 +00001208 "src/trace_processor/importers/ftrace/mali_gpu_event_tracker.cc",
1209 "src/trace_processor/importers/ftrace/mali_gpu_event_tracker.h",
Nikita Ioffe02035142023-03-02 16:57:35 +00001210 "src/trace_processor/importers/ftrace/pkvm_hyp_cpu_tracker.cc",
1211 "src/trace_processor/importers/ftrace/pkvm_hyp_cpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001212 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1213 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
1214 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1215 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
1216 "src/trace_processor/importers/ftrace/thread_state_tracker.cc",
1217 "src/trace_processor/importers/ftrace/thread_state_tracker.h",
1218 "src/trace_processor/importers/ftrace/v4l2_tracker.cc",
1219 "src/trace_processor/importers/ftrace/v4l2_tracker.h",
Rob Clark50b20aa2022-11-29 14:24:18 -08001220 "src/trace_processor/importers/ftrace/virtio_gpu_tracker.cc",
1221 "src/trace_processor/importers/ftrace/virtio_gpu_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001222 "src/trace_processor/importers/ftrace/virtio_video_tracker.cc",
1223 "src/trace_processor/importers/ftrace/virtio_video_tracker.h",
1224 ],
1225)
1226
1227# GN target: //src/trace_processor/importers/ftrace:minimal
1228perfetto_filegroup(
1229 name = "src_trace_processor_importers_ftrace_minimal",
1230 srcs = [
1231 "src/trace_processor/importers/ftrace/ftrace_module.cc",
1232 "src/trace_processor/importers/ftrace/ftrace_module.h",
1233 ],
1234)
1235
Lalit Magantife2519b2022-11-24 21:12:05 +00001236# GN target: //src/trace_processor/importers/fuchsia:fuchsia_record
1237perfetto_filegroup(
1238 name = "src_trace_processor_importers_fuchsia_fuchsia_record",
1239 srcs = [
1240 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1241 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
1242 ],
1243)
1244
Lalit Magantiecf23662022-12-02 18:34:37 +00001245# GN target: //src/trace_processor/importers/fuchsia:full
1246perfetto_filegroup(
1247 name = "src_trace_processor_importers_fuchsia_full",
1248 srcs = [
1249 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1250 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1251 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1252 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1253 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
1254 ],
1255)
1256
1257# GN target: //src/trace_processor/importers/fuchsia:minimal
1258perfetto_filegroup(
1259 name = "src_trace_processor_importers_fuchsia_minimal",
1260 srcs = [
1261 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
1262 ],
1263)
1264
1265# GN target: //src/trace_processor/importers/gzip:full
1266perfetto_filegroup(
1267 name = "src_trace_processor_importers_gzip_full",
1268 srcs = [
1269 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1270 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
1271 ],
1272)
1273
Lalit Magantib9a5b432022-12-01 16:13:11 +00001274# GN target: //src/trace_processor/importers/i2c:full
1275perfetto_filegroup(
1276 name = "src_trace_processor_importers_i2c_full",
1277 srcs = [
1278 "src/trace_processor/importers/i2c/i2c_tracker.cc",
1279 "src/trace_processor/importers/i2c/i2c_tracker.h",
1280 ],
1281)
1282
Lalit Magantiecf23662022-12-02 18:34:37 +00001283# GN target: //src/trace_processor/importers/json:full
1284perfetto_filegroup(
1285 name = "src_trace_processor_importers_json_full",
1286 srcs = [
1287 "src/trace_processor/importers/json/json_trace_parser.cc",
1288 "src/trace_processor/importers/json/json_trace_parser.h",
1289 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1290 "src/trace_processor/importers/json/json_trace_tokenizer.h",
1291 ],
1292)
1293
Lalit Magantib9a5b432022-12-01 16:13:11 +00001294# GN target: //src/trace_processor/importers/json:minimal
1295perfetto_filegroup(
1296 name = "src_trace_processor_importers_json_minimal",
1297 srcs = [
1298 "src/trace_processor/importers/json/json_utils.cc",
1299 "src/trace_processor/importers/json/json_utils.h",
1300 ],
1301)
1302
Lalit Maganti1534bb72021-04-23 14:11:26 +01001303# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +08001304perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001305 name = "src_trace_processor_importers_memory_tracker_graph_processor",
1306 srcs = [
1307 "src/trace_processor/importers/memory_tracker/graph.cc",
1308 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
1309 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
1310 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
1311 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
1312 ],
1313)
1314
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00001315# GN target: //src/trace_processor/importers/ninja:ninja
1316perfetto_filegroup(
1317 name = "src_trace_processor_importers_ninja_ninja",
1318 srcs = [
1319 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1320 "src/trace_processor/importers/ninja/ninja_log_parser.h",
1321 ],
1322)
1323
Lalit Magantib7ad13b2022-11-25 15:55:38 +00001324# GN target: //src/trace_processor/importers/proto:full
Lalit Magantiba07dcf2022-11-25 13:58:09 +00001325perfetto_filegroup(
Lalit Magantib7ad13b2022-11-25 15:55:38 +00001326 name = "src_trace_processor_importers_proto_full",
Lalit Maganti3927af82022-05-09 20:23:40 +01001327 srcs = [
Lalit Magantiecf23662022-12-02 18:34:37 +00001328 "src/trace_processor/importers/proto/additional_modules.cc",
1329 "src/trace_processor/importers/proto/additional_modules.h",
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001330 "src/trace_processor/importers/proto/android_camera_event_module.cc",
1331 "src/trace_processor/importers/proto/android_camera_event_module.h",
1332 "src/trace_processor/importers/proto/android_probes_module.cc",
1333 "src/trace_processor/importers/proto/android_probes_module.h",
1334 "src/trace_processor/importers/proto/android_probes_parser.cc",
1335 "src/trace_processor/importers/proto/android_probes_parser.h",
1336 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1337 "src/trace_processor/importers/proto/android_probes_tracker.h",
1338 "src/trace_processor/importers/proto/content_analyzer.cc",
1339 "src/trace_processor/importers/proto/content_analyzer.h",
1340 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1341 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
1342 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1343 "src/trace_processor/importers/proto/gpu_event_parser.h",
1344 "src/trace_processor/importers/proto/graphics_event_module.cc",
1345 "src/trace_processor/importers/proto/graphics_event_module.h",
1346 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1347 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
1348 "src/trace_processor/importers/proto/heap_graph_module.cc",
1349 "src/trace_processor/importers/proto/heap_graph_module.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001350 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1351 "src/trace_processor/importers/proto/heap_graph_tracker.h",
1352 "src/trace_processor/importers/proto/metadata_module.cc",
1353 "src/trace_processor/importers/proto/metadata_module.h",
1354 "src/trace_processor/importers/proto/statsd_module.cc",
1355 "src/trace_processor/importers/proto/statsd_module.h",
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001356 "src/trace_processor/importers/proto/system_probes_module.cc",
1357 "src/trace_processor/importers/proto/system_probes_module.h",
1358 "src/trace_processor/importers/proto/system_probes_parser.cc",
1359 "src/trace_processor/importers/proto/system_probes_parser.h",
1360 "src/trace_processor/importers/proto/translation_table_module.cc",
1361 "src/trace_processor/importers/proto/translation_table_module.h",
1362 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1363 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001364 ],
1365)
1366
Lalit Magantiecf23662022-12-02 18:34:37 +00001367# GN target: //src/trace_processor/importers/proto:gen_cc_chrome_track_event_descriptor
1368perfetto_cc_proto_descriptor(
1369 name = "src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
1370 deps = [
1371 ":protos_third_party_chromium_descriptor",
1372 ],
1373 outs = [
1374 "src/trace_processor/importers/proto/chrome_track_event.descriptor.h",
1375 ],
1376)
1377
1378# GN target: //src/trace_processor/importers/proto:gen_cc_config_descriptor
1379perfetto_cc_proto_descriptor(
1380 name = "src_trace_processor_importers_proto_gen_cc_config_descriptor",
1381 deps = [
1382 ":protos_perfetto_config_descriptor",
1383 ],
1384 outs = [
1385 "src/trace_processor/importers/proto/config.descriptor.h",
1386 ],
1387)
1388
Lalit Magantib9a5b432022-12-01 16:13:11 +00001389# GN target: //src/trace_processor/importers/proto:gen_cc_statsd_atoms_descriptor
1390perfetto_cc_proto_descriptor(
1391 name = "src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
1392 deps = [
1393 "src/trace_processor/importers/proto/atoms.descriptor",
1394 ],
1395 outs = [
1396 "src/trace_processor/importers/proto/atoms.descriptor.h",
1397 ],
1398)
1399
1400# GN target: //src/trace_processor/importers/proto:gen_cc_trace_descriptor
1401perfetto_cc_proto_descriptor(
1402 name = "src_trace_processor_importers_proto_gen_cc_trace_descriptor",
1403 deps = [
1404 ":protos_perfetto_trace_descriptor",
1405 ],
1406 outs = [
1407 "src/trace_processor/importers/proto/trace.descriptor.h",
1408 ],
1409)
1410
Lalit Magantiecf23662022-12-02 18:34:37 +00001411# GN target: //src/trace_processor/importers/proto:gen_cc_track_event_descriptor
1412perfetto_cc_proto_descriptor(
1413 name = "src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
1414 deps = [
1415 ":protos_perfetto_trace_track_event_descriptor",
1416 ],
1417 outs = [
1418 "src/trace_processor/importers/proto/track_event.descriptor.h",
1419 ],
1420)
1421
Lalit Magantib9a5b432022-12-01 16:13:11 +00001422# GN target: //src/trace_processor/importers/proto:minimal
1423perfetto_filegroup(
1424 name = "src_trace_processor_importers_proto_minimal",
1425 srcs = [
1426 "src/trace_processor/importers/proto/active_chrome_processes_tracker.cc",
1427 "src/trace_processor/importers/proto/active_chrome_processes_tracker.h",
1428 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1429 "src/trace_processor/importers/proto/chrome_string_lookup.h",
1430 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1431 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1432 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1433 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Lalit Magantiecf23662022-12-02 18:34:37 +00001434 "src/trace_processor/importers/proto/default_modules.cc",
1435 "src/trace_processor/importers/proto/default_modules.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001436 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1437 "src/trace_processor/importers/proto/heap_profile_tracker.h",
1438 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1439 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1440 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1441 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
1442 "src/trace_processor/importers/proto/metadata_minimal_module.cc",
1443 "src/trace_processor/importers/proto/metadata_minimal_module.h",
1444 "src/trace_processor/importers/proto/metadata_tracker.cc",
1445 "src/trace_processor/importers/proto/metadata_tracker.h",
Ryan Zuklie3338cc22023-03-09 15:37:56 -08001446 "src/trace_processor/importers/proto/network_trace_module.cc",
1447 "src/trace_processor/importers/proto/network_trace_module.h",
Etienne Pierre-doray53971a42023-01-18 19:10:03 +00001448 "src/trace_processor/importers/proto/packet_analyzer.cc",
1449 "src/trace_processor/importers/proto/packet_analyzer.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001450 "src/trace_processor/importers/proto/packet_sequence_state.h",
1451 "src/trace_processor/importers/proto/packet_sequence_state_generation.cc",
1452 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1453 "src/trace_processor/importers/proto/perf_sample_tracker.h",
1454 "src/trace_processor/importers/proto/profile_module.cc",
1455 "src/trace_processor/importers/proto/profile_module.h",
1456 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1457 "src/trace_processor/importers/proto/profile_packet_utils.h",
1458 "src/trace_processor/importers/proto/profiler_util.cc",
1459 "src/trace_processor/importers/proto/profiler_util.h",
1460 "src/trace_processor/importers/proto/proto_incremental_state.h",
1461 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1462 "src/trace_processor/importers/proto/proto_trace_parser.h",
1463 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1464 "src/trace_processor/importers/proto/proto_trace_reader.h",
1465 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1466 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
1467 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1468 "src/trace_processor/importers/proto/stack_profile_tracker.h",
1469 "src/trace_processor/importers/proto/track_event_module.cc",
1470 "src/trace_processor/importers/proto/track_event_module.h",
1471 "src/trace_processor/importers/proto/track_event_parser.cc",
1472 "src/trace_processor/importers/proto/track_event_parser.h",
1473 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1474 "src/trace_processor/importers/proto/track_event_tokenizer.h",
1475 "src/trace_processor/importers/proto/track_event_tracker.cc",
1476 "src/trace_processor/importers/proto/track_event_tracker.h",
1477 ],
1478)
1479
1480# GN target: //src/trace_processor/importers/proto:packet_sequence_state_generation_hdr
1481perfetto_filegroup(
1482 name = "src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
1483 srcs = [
1484 "src/trace_processor/importers/proto/packet_sequence_state_generation.h",
1485 ],
1486)
1487
1488# GN target: //src/trace_processor/importers/proto:proto_importer_module
1489perfetto_filegroup(
1490 name = "src_trace_processor_importers_proto_proto_importer_module",
1491 srcs = [
1492 "src/trace_processor/importers/proto/proto_importer_module.cc",
1493 "src/trace_processor/importers/proto/proto_importer_module.h",
1494 ],
1495)
1496
1497# GN target: //src/trace_processor/importers/syscalls:full
1498perfetto_filegroup(
1499 name = "src_trace_processor_importers_syscalls_full",
1500 srcs = [
Lalit Magantiecd5c3d2022-11-30 15:56:14 +00001501 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1502 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Magantib9a5b432022-12-01 16:13:11 +00001503 ],
1504)
1505
Lalit Magantiecf23662022-12-02 18:34:37 +00001506# GN target: //src/trace_processor/importers/systrace:full
1507perfetto_filegroup(
1508 name = "src_trace_processor_importers_systrace_full",
1509 srcs = [
1510 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1511 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1512 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1513 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
1514 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1515 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
1516 ],
1517)
1518
Lalit Magantib9a5b432022-12-01 16:13:11 +00001519# GN target: //src/trace_processor/importers/systrace:systrace_line
1520perfetto_filegroup(
1521 name = "src_trace_processor_importers_systrace_systrace_line",
1522 srcs = [
1523 "src/trace_processor/importers/systrace/systrace_line.h",
1524 ],
1525)
1526
1527# GN target: //src/trace_processor/importers/systrace:systrace_parser
1528perfetto_filegroup(
1529 name = "src_trace_processor_importers_systrace_systrace_parser",
1530 srcs = [
1531 "src/trace_processor/importers/systrace/systrace_parser.cc",
1532 "src/trace_processor/importers/systrace/systrace_parser.h",
1533 ],
1534)
1535
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001536# GN target: //src/trace_processor/metrics/sql/android:android
1537perfetto_filegroup(
1538 name = "src_trace_processor_metrics_sql_android_android",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001539 srcs = [
1540 "src/trace_processor/metrics/sql/android/android_batt.sql",
Jon Spivackb0974a72022-04-27 16:07:10 -07001541 "src/trace_processor/metrics/sql/android/android_binder.sql",
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00001542 "src/trace_processor/metrics/sql/android/android_blocking_calls_cuj_metric.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001543 "src/trace_processor/metrics/sql/android/android_camera.sql",
Lalit Magantic16c7212021-12-16 17:32:55 +00001544 "src/trace_processor/metrics/sql/android/android_camera_unagg.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001545 "src/trace_processor/metrics/sql/android/android_cpu.sql",
1546 "src/trace_processor/metrics/sql/android/android_cpu_agg.sql",
1547 "src/trace_processor/metrics/sql/android/android_cpu_raw_metrics_per_core.sql",
1548 "src/trace_processor/metrics/sql/android/android_dma_heap.sql",
Luke Chang476e9442021-11-09 23:14:34 +08001549 "src/trace_processor/metrics/sql/android/android_dvfs.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001550 "src/trace_processor/metrics/sql/android/android_fastrpc.sql",
Shihhsun Ho7edcbe62022-05-09 13:55:52 +08001551 "src/trace_processor/metrics/sql/android/android_frame_timeline_metric.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001552 "src/trace_processor/metrics/sql/android/android_gpu.sql",
1553 "src/trace_processor/metrics/sql/android/android_hwcomposer.sql",
1554 "src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
1555 "src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
1556 "src/trace_processor/metrics/sql/android/android_ion.sql",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08001557 "src/trace_processor/metrics/sql/android/android_irq_runtime.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001558 "src/trace_processor/metrics/sql/android/android_jank_cuj.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001559 "src/trace_processor/metrics/sql/android/android_lmk.sql",
1560 "src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
1561 "src/trace_processor/metrics/sql/android/android_mem.sql",
1562 "src/trace_processor/metrics/sql/android/android_mem_unagg.sql",
1563 "src/trace_processor/metrics/sql/android/android_multiuser.sql",
1564 "src/trace_processor/metrics/sql/android/android_multiuser_populator.sql",
Luke Change25d2c42021-12-07 16:08:32 +08001565 "src/trace_processor/metrics/sql/android/android_netperf.sql",
Daniele Di Proietto0767bff2022-04-05 11:07:15 +01001566 "src/trace_processor/metrics/sql/android/android_other_traces.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001567 "src/trace_processor/metrics/sql/android/android_package_list.sql",
1568 "src/trace_processor/metrics/sql/android/android_powrails.sql",
1569 "src/trace_processor/metrics/sql/android/android_proxy_power.sql",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08001570 "src/trace_processor/metrics/sql/android/android_rt_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001571 "src/trace_processor/metrics/sql/android/android_simpleperf.sql",
1572 "src/trace_processor/metrics/sql/android/android_startup.sql",
1573 "src/trace_processor/metrics/sql/android/android_surfaceflinger.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001574 "src/trace_processor/metrics/sql/android/android_task_names.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001575 "src/trace_processor/metrics/sql/android/android_trace_quality.sql",
David LeGare20d39c42022-01-20 20:38:43 +00001576 "src/trace_processor/metrics/sql/android/android_trusty_workqueues.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001577 "src/trace_processor/metrics/sql/android/composer_execution.sql",
1578 "src/trace_processor/metrics/sql/android/composition_layers.sql",
Simon MacMullena16efc42023-02-28 18:21:05 +00001579 "src/trace_processor/metrics/sql/android/counter_span_view_merged.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001580 "src/trace_processor/metrics/sql/android/cpu_info.sql",
1581 "src/trace_processor/metrics/sql/android/display_metrics.sql",
1582 "src/trace_processor/metrics/sql/android/frame_missed.sql",
1583 "src/trace_processor/metrics/sql/android/g2d.sql",
1584 "src/trace_processor/metrics/sql/android/g2d_duration.sql",
1585 "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
1586 "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001587 "src/trace_processor/metrics/sql/android/jank/cujs.sql",
1588 "src/trace_processor/metrics/sql/android/jank/cujs_boundaries.sql",
1589 "src/trace_processor/metrics/sql/android/jank/frames.sql",
1590 "src/trace_processor/metrics/sql/android/jank/internal/counters.sql",
1591 "src/trace_processor/metrics/sql/android/jank/internal/derived_events.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001592 "src/trace_processor/metrics/sql/android/jank/internal/query_base.sql",
1593 "src/trace_processor/metrics/sql/android/jank/internal/query_frame_slice.sql",
Marcin Oczeretko76ac5c72022-10-31 15:34:01 +00001594 "src/trace_processor/metrics/sql/android/jank/params.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001595 "src/trace_processor/metrics/sql/android/jank/query_functions.sql",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01001596 "src/trace_processor/metrics/sql/android/jank/relevant_slices.sql",
1597 "src/trace_processor/metrics/sql/android/jank/relevant_threads.sql",
Marcin Oczeretko986289e2022-07-21 12:35:19 +01001598 "src/trace_processor/metrics/sql/android/jank/slices.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001599 "src/trace_processor/metrics/sql/android/java_heap_histogram.sql",
1600 "src/trace_processor/metrics/sql/android/java_heap_stats.sql",
1601 "src/trace_processor/metrics/sql/android/mem_stats_priority_breakdown.sql",
Anna Mayznerd57d4ef2022-09-22 14:54:12 +00001602 "src/trace_processor/metrics/sql/android/p_state.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001603 "src/trace_processor/metrics/sql/android/power_drain_in_watts.sql",
1604 "src/trace_processor/metrics/sql/android/power_profile_data.sql",
Anna Mayznerfd6227c2022-09-12 16:15:38 +00001605 "src/trace_processor/metrics/sql/android/power_profile_data/barbet.sql",
1606 "src/trace_processor/metrics/sql/android/power_profile_data/bluejay.sql",
1607 "src/trace_processor/metrics/sql/android/power_profile_data/blueline.sql",
1608 "src/trace_processor/metrics/sql/android/power_profile_data/bonito.sql",
1609 "src/trace_processor/metrics/sql/android/power_profile_data/bramble.sql",
1610 "src/trace_processor/metrics/sql/android/power_profile_data/coral.sql",
1611 "src/trace_processor/metrics/sql/android/power_profile_data/crosshatch.sql",
1612 "src/trace_processor/metrics/sql/android/power_profile_data/flame.sql",
1613 "src/trace_processor/metrics/sql/android/power_profile_data/marlin.sql",
1614 "src/trace_processor/metrics/sql/android/power_profile_data/oriole.sql",
1615 "src/trace_processor/metrics/sql/android/power_profile_data/raven.sql",
1616 "src/trace_processor/metrics/sql/android/power_profile_data/redfin.sql",
1617 "src/trace_processor/metrics/sql/android/power_profile_data/sargo.sql",
1618 "src/trace_processor/metrics/sql/android/power_profile_data/sunfish.sql",
1619 "src/trace_processor/metrics/sql/android/power_profile_data/taimen.sql",
1620 "src/trace_processor/metrics/sql/android/power_profile_data/walleye.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001621 "src/trace_processor/metrics/sql/android/process_counter_span_view.sql",
1622 "src/trace_processor/metrics/sql/android/process_mem.sql",
1623 "src/trace_processor/metrics/sql/android/process_metadata.sql",
1624 "src/trace_processor/metrics/sql/android/process_oom_score.sql",
1625 "src/trace_processor/metrics/sql/android/process_unagg_mem_view.sql",
1626 "src/trace_processor/metrics/sql/android/profiler_smaps.sql",
1627 "src/trace_processor/metrics/sql/android/span_view_stats.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001628 "src/trace_processor/metrics/sql/android/startup/gc_slices.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001629 "src/trace_processor/metrics/sql/android/startup/hsc.sql",
1630 "src/trace_processor/metrics/sql/android/startup/launches.sql",
Lalit Maganti186ed0f2021-12-02 18:13:15 +00001631 "src/trace_processor/metrics/sql/android/startup/launches_maxsdk28.sql",
1632 "src/trace_processor/metrics/sql/android/startup/launches_minsdk29.sql",
Ioannis Ilkos39fd25c2022-03-31 13:29:15 +01001633 "src/trace_processor/metrics/sql/android/startup/launches_minsdk33.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001634 "src/trace_processor/metrics/sql/android/startup/mcycles_per_launch.sql",
1635 "src/trace_processor/metrics/sql/android/startup/slice_functions.sql",
Lalit Maganti6f97a862022-06-23 15:12:42 +01001636 "src/trace_processor/metrics/sql/android/startup/system_state.sql",
Lalit Magantifb9252f2022-06-21 20:38:37 +01001637 "src/trace_processor/metrics/sql/android/startup/thread_state_breakdown.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001638 "src/trace_processor/metrics/sql/android/unsymbolized_frames.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001639 ],
1640)
1641
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001642# GN target: //src/trace_processor/metrics/sql/chrome:chrome_sql
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001643perfetto_filegroup(
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001644 name = "src_trace_processor_metrics_sql_chrome_chrome_sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001645 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001646 "src/trace_processor/metrics/sql/chrome/actual_power_by_category.sql",
1647 "src/trace_processor/metrics/sql/chrome/actual_power_by_rail_mode.sql",
Violetta Fedotovaae0f6142022-11-22 12:14:17 +00001648 "src/trace_processor/metrics/sql/chrome/chrome_args_class_names.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001649 "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00001650 "src/trace_processor/metrics/sql/chrome/chrome_histogram_hashes.sql",
Omar Elmekkawyc77393b2022-06-21 10:33:34 +00001651 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals.sql",
Harkiran Bolaria277ea4f2023-01-09 14:24:26 +00001652 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_base.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001653 "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_template.sql",
Harkiran Bolariad52e26d2022-12-23 15:09:23 +00001654 "src/trace_processor/metrics/sql/chrome/chrome_long_tasks.sql",
1655 "src/trace_processor/metrics/sql/chrome/chrome_long_tasks_delaying_input_processing.sql",
Igor Kraskevichf7cf8182022-04-04 11:41:28 +00001656 "src/trace_processor/metrics/sql/chrome/chrome_performance_mark_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001657 "src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
Igor Kraskevichc30d46b2022-09-13 09:39:41 +00001658 "src/trace_processor/metrics/sql/chrome/chrome_reliable_range.sql",
Omar Elmekkawye1ee55c2022-08-04 13:52:52 +00001659 "src/trace_processor/metrics/sql/chrome/chrome_scroll_inputs_per_frame.sql",
Omar Elmekkawyfa109742022-07-20 14:32:45 +00001660 "src/trace_processor/metrics/sql/chrome/chrome_scroll_jank_caused_by_scheduling.sql",
Igor Kraskevich1888cff2022-04-07 11:07:37 +00001661 "src/trace_processor/metrics/sql/chrome/chrome_slice_names.sql",
Omar Elmekkawyaa60a0c2022-07-19 14:48:40 +00001662 "src/trace_processor/metrics/sql/chrome/chrome_stack_samples_for_task.sql",
Alexander Timin1e01a9c2022-05-27 18:05:20 +00001663 "src/trace_processor/metrics/sql/chrome/chrome_tasks.sql",
Omar Elmekkawy5e9f3eb2022-07-20 13:35:32 +00001664 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing.sql",
Harkiran Bolariad52e26d2022-12-23 15:09:23 +00001665 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_base.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001666 "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_template.sql",
1667 "src/trace_processor/metrics/sql/chrome/chrome_tasks_template.sql",
Omar Elmekkawy07d02b02021-12-14 20:36:36 +00001668 "src/trace_processor/metrics/sql/chrome/chrome_thread_slice.sql",
Igor Kraskevich92c7c5a2022-06-23 16:24:17 +00001669 "src/trace_processor/metrics/sql/chrome/chrome_unsymbolized_args.sql",
Igor Kraskevich32214832022-03-25 13:12:53 +00001670 "src/trace_processor/metrics/sql/chrome/chrome_user_event_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001671 "src/trace_processor/metrics/sql/chrome/cpu_time_by_category.sql",
1672 "src/trace_processor/metrics/sql/chrome/cpu_time_by_rail_mode.sql",
1673 "src/trace_processor/metrics/sql/chrome/estimated_power_by_category.sql",
1674 "src/trace_processor/metrics/sql/chrome/estimated_power_by_rail_mode.sql",
Violetta Fedotova7b04e572022-10-12 16:55:04 +00001675 "src/trace_processor/metrics/sql/chrome/event_latency_scroll_jank.sql",
Violetta Fedotovaec3ccc32022-12-15 08:12:38 +00001676 "src/trace_processor/metrics/sql/chrome/event_latency_scroll_jank_cause.sql",
Violetta Fedotovacbd64282022-09-14 10:43:18 +00001677 "src/trace_processor/metrics/sql/chrome/event_latency_to_breakdowns.sql",
Igor Kraskevich5871f1f2022-10-07 08:48:33 +00001678 "src/trace_processor/metrics/sql/chrome/experimental_reliable_chrome_tasks_delaying_input_processing.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001679 "src/trace_processor/metrics/sql/chrome/gesture_flow_event.sql",
1680 "src/trace_processor/metrics/sql/chrome/gesture_flow_event_queuing_delay.sql",
1681 "src/trace_processor/metrics/sql/chrome/gesture_jank.sql",
Omar Elmekkawyc50cd612022-01-20 16:18:33 +00001682 "src/trace_processor/metrics/sql/chrome/jank_utilities.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001683 "src/trace_processor/metrics/sql/chrome/rail_modes.sql",
1684 "src/trace_processor/metrics/sql/chrome/scroll_flow_event.sql",
1685 "src/trace_processor/metrics/sql/chrome/scroll_flow_event_queuing_delay.sql",
1686 "src/trace_processor/metrics/sql/chrome/scroll_jank.sql",
1687 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause.sql",
1688 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_task.sql",
1689 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_touch_move.sql",
1690 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_get_bitmap.sql",
1691 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_queuing_delay.sql",
Omar Elmekkawy0d6b3462021-12-09 20:28:02 +00001692 "src/trace_processor/metrics/sql/chrome/sufficient_chrome_processes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001693 "src/trace_processor/metrics/sql/chrome/test_chrome_metric.sql",
1694 "src/trace_processor/metrics/sql/chrome/touch_flow_event.sql",
1695 "src/trace_processor/metrics/sql/chrome/touch_flow_event_queuing_delay.sql",
1696 "src/trace_processor/metrics/sql/chrome/touch_jank.sql",
Violetta Fedotova7b04e572022-10-12 16:55:04 +00001697 "src/trace_processor/metrics/sql/chrome/vsync_intervals.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001698 ],
1699)
1700
1701# GN target: //src/trace_processor/metrics/sql/common:common
1702perfetto_filegroup(
1703 name = "src_trace_processor_metrics_sql_common_common",
1704 srcs = [
Lalit Maganti9c317492022-09-13 20:01:55 +01001705 "src/trace_processor/metrics/sql/common/parent_slice.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001706 ],
1707)
1708
1709# GN target: //src/trace_processor/metrics/sql/experimental:experimental
1710perfetto_filegroup(
1711 name = "src_trace_processor_metrics_sql_experimental_experimental",
1712 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001713 "src/trace_processor/metrics/sql/experimental/blink_gc_metric.sql",
1714 "src/trace_processor/metrics/sql/experimental/chrome_dropped_frames.sql",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04001715 "src/trace_processor/metrics/sql/experimental/chrome_long_latency.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001716 "src/trace_processor/metrics/sql/experimental/frame_times.sql",
1717 "src/trace_processor/metrics/sql/experimental/media_metric.sql",
1718 "src/trace_processor/metrics/sql/experimental/reported_by_page.sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001719 ],
1720)
1721
1722# GN target: //src/trace_processor/metrics/sql/webview:webview
1723perfetto_filegroup(
1724 name = "src_trace_processor_metrics_sql_webview_webview",
1725 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001726 "src/trace_processor/metrics/sql/webview/webview_power_usage.sql",
1727 ],
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001728)
1729
Lalit Maganti88e64de2022-11-21 18:29:57 +00001730# GN target: //src/trace_processor/metrics/sql:gen_amalgamated_sql_metrics
Lalit Magantie277dcb2022-11-09 15:57:58 +00001731perfetto_cc_amalgamated_sql(
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001732 name = "src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
Lalit Magantie277dcb2022-11-09 15:57:58 +00001733 deps = [
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001734 ":src_trace_processor_metrics_sql_android_android",
Lalit Maganti6197e6b2022-11-10 14:49:22 +00001735 ":src_trace_processor_metrics_sql_chrome_chrome_sql",
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001736 ":src_trace_processor_metrics_sql_common_common",
1737 ":src_trace_processor_metrics_sql_experimental_experimental",
1738 ":src_trace_processor_metrics_sql_misc_sql",
1739 ":src_trace_processor_metrics_sql_webview_webview",
1740 ],
Lalit Maganti4c328e32021-11-09 19:29:50 +00001741 outs = [
1742 "src/trace_processor/metrics/sql/amalgamated_sql_metrics.h",
1743 ],
Lalit Magantie277dcb2022-11-09 15:57:58 +00001744 namespace = "sql_metrics",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001745)
1746
Lalit Magantib7ec94f2022-11-09 15:44:23 +00001747# GN target: //src/trace_processor/metrics/sql:misc_sql
1748perfetto_filegroup(
1749 name = "src_trace_processor_metrics_sql_misc_sql",
1750 srcs = [
1751 "src/trace_processor/metrics/sql/trace_metadata.sql",
1752 "src/trace_processor/metrics/sql/trace_stats.sql",
1753 ],
1754)
1755
Lalit Maganti88e64de2022-11-21 18:29:57 +00001756# GN target: //src/trace_processor/metrics:gen_cc_all_chrome_metrics_descriptor
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001757perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001758 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
1759 deps = [
1760 ":protos_perfetto_metrics_chrome_descriptor",
1761 ],
1762 outs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001763 "src/trace_processor/metrics/all_chrome_metrics.descriptor.h",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001764 ],
1765)
1766
Lalit Maganti88e64de2022-11-21 18:29:57 +00001767# GN target: //src/trace_processor/metrics:gen_cc_metrics_descriptor
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001768perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001769 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1770 deps = [
1771 ":protos_perfetto_metrics_descriptor",
1772 ],
1773 outs = [
1774 "src/trace_processor/metrics/metrics.descriptor.h",
1775 ],
1776)
1777
Lalit Maganti4c328e32021-11-09 19:29:50 +00001778# GN target: //src/trace_processor/metrics:metrics
Harvey Yang321c4fc2021-10-25 14:11:50 +08001779perfetto_filegroup(
Lalit Maganti4c328e32021-11-09 19:29:50 +00001780 name = "src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01001781 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001782 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001783 "src/trace_processor/metrics/metrics.h",
1784 ],
1785)
1786
Lalit Maganti628aca72022-12-08 14:20:25 +00001787# GN target: //src/trace_processor/prelude/functions:functions
1788perfetto_filegroup(
1789 name = "src_trace_processor_prelude_functions_functions",
1790 srcs = [
1791 "src/trace_processor/prelude/functions/create_function.cc",
1792 "src/trace_processor/prelude/functions/create_function.h",
1793 "src/trace_processor/prelude/functions/create_function_internal.cc",
1794 "src/trace_processor/prelude/functions/create_function_internal.h",
1795 "src/trace_processor/prelude/functions/create_view_function.cc",
1796 "src/trace_processor/prelude/functions/create_view_function.h",
1797 "src/trace_processor/prelude/functions/import.cc",
1798 "src/trace_processor/prelude/functions/import.h",
1799 "src/trace_processor/prelude/functions/pprof_functions.cc",
1800 "src/trace_processor/prelude/functions/pprof_functions.h",
1801 "src/trace_processor/prelude/functions/register_function.cc",
1802 "src/trace_processor/prelude/functions/register_function.h",
1803 "src/trace_processor/prelude/functions/sqlite3_str_split.cc",
1804 "src/trace_processor/prelude/functions/sqlite3_str_split.h",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00001805 "src/trace_processor/prelude/functions/stack_functions.cc",
1806 "src/trace_processor/prelude/functions/stack_functions.h",
Lalit Maganti628aca72022-12-08 14:20:25 +00001807 "src/trace_processor/prelude/functions/utils.h",
1808 "src/trace_processor/prelude/functions/window_functions.h",
1809 ],
1810)
1811
1812# GN target: //src/trace_processor/prelude/operators:operators
1813perfetto_filegroup(
1814 name = "src_trace_processor_prelude_operators_operators",
1815 srcs = [
1816 "src/trace_processor/prelude/operators/span_join_operator.cc",
1817 "src/trace_processor/prelude/operators/span_join_operator.h",
1818 "src/trace_processor/prelude/operators/window_operator.cc",
1819 "src/trace_processor/prelude/operators/window_operator.h",
1820 ],
1821)
1822
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001823# GN target: //src/trace_processor/rpc:httpd
Harvey Yang321c4fc2021-10-25 14:11:50 +08001824perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001825 name = "src_trace_processor_rpc_httpd",
1826 srcs = [
1827 "src/trace_processor/rpc/httpd.cc",
1828 "src/trace_processor/rpc/httpd.h",
1829 ],
1830)
1831
1832# GN target: //src/trace_processor/rpc:rpc
Harvey Yang321c4fc2021-10-25 14:11:50 +08001833perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001834 name = "src_trace_processor_rpc_rpc",
1835 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001836 "src/trace_processor/rpc/query_result_serializer.cc",
1837 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001838 "src/trace_processor/rpc/rpc.cc",
1839 "src/trace_processor/rpc/rpc.h",
1840 ],
1841)
1842
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00001843# GN target: //src/trace_processor/sorter:sorter
1844perfetto_filegroup(
1845 name = "src_trace_processor_sorter_sorter",
1846 srcs = [
1847 "src/trace_processor/sorter/trace_sorter.cc",
1848 "src/trace_processor/sorter/trace_sorter.h",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00001849 "src/trace_processor/sorter/trace_token_buffer.cc",
1850 "src/trace_processor/sorter/trace_token_buffer.h",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00001851 ],
1852)
1853
Primiano Tucci1d409982019-09-19 10:15:18 +01001854# GN target: //src/trace_processor/sqlite:sqlite
Harvey Yang321c4fc2021-10-25 14:11:50 +08001855perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001856 name = "src_trace_processor_sqlite_sqlite",
1857 srcs = [
1858 "src/trace_processor/sqlite/db_sqlite_table.cc",
1859 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001860 "src/trace_processor/sqlite/query_cache.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001861 "src/trace_processor/sqlite/sql_stats_table.cc",
1862 "src/trace_processor/sqlite/sql_stats_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001863 "src/trace_processor/sqlite/sqlite_raw_table.cc",
1864 "src/trace_processor/sqlite/sqlite_raw_table.h",
Carlos Caballero Grolimund62b4a1d2022-10-14 10:24:34 +00001865 "src/trace_processor/sqlite/sqlite_utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001866 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001867 "src/trace_processor/sqlite/stats_table.cc",
1868 "src/trace_processor/sqlite/stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001869 ],
1870)
1871
Lalit Maganti3927af82022-05-09 20:23:40 +01001872# GN target: //src/trace_processor/sqlite:sqlite_minimal
1873perfetto_filegroup(
1874 name = "src_trace_processor_sqlite_sqlite_minimal",
1875 srcs = [
1876 "src/trace_processor/sqlite/query_constraints.cc",
1877 "src/trace_processor/sqlite/query_constraints.h",
1878 "src/trace_processor/sqlite/scoped_db.h",
1879 "src/trace_processor/sqlite/sqlite_table.cc",
1880 "src/trace_processor/sqlite/sqlite_table.h",
1881 "src/trace_processor/sqlite/sqlite_utils.h",
1882 ],
1883)
1884
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001885# GN target: //src/trace_processor/stdlib/android/startup:startup
1886perfetto_filegroup(
1887 name = "src_trace_processor_stdlib_android_startup_startup",
1888 srcs = [
1889 "src/trace_processor/stdlib/android/startup/internal_startups_maxsdk28.sql",
1890 "src/trace_processor/stdlib/android/startup/internal_startups_minsdk29.sql",
1891 "src/trace_processor/stdlib/android/startup/internal_startups_minsdk33.sql",
1892 "src/trace_processor/stdlib/android/startup/startups.sql",
1893 ],
1894)
1895
Lalit Maganti358a7e42022-11-09 15:16:21 +00001896# GN target: //src/trace_processor/stdlib/android:android
1897perfetto_filegroup(
1898 name = "src_trace_processor_stdlib_android_android",
1899 srcs = [
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001900 "src/trace_processor/stdlib/android/battery.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001901 "src/trace_processor/stdlib/android/binder.sql",
Zimd6ee8292023-03-14 20:02:11 +00001902 "src/trace_processor/stdlib/android/monitor_contention.sql",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001903 "src/trace_processor/stdlib/android/process_metadata.sql",
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00001904 "src/trace_processor/stdlib/android/slices.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001905 ],
1906)
1907
Anna Mayzner96d69f72022-12-16 13:37:12 +00001908# GN target: //src/trace_processor/stdlib/chrome:chrome_sql
Joseph Koshy7ab2ef92022-12-08 14:56:34 +00001909perfetto_filegroup(
Anna Mayzner96d69f72022-12-16 13:37:12 +00001910 name = "src_trace_processor_stdlib_chrome_chrome_sql",
Joseph Koshy7ab2ef92022-12-08 14:56:34 +00001911 srcs = [
1912 "src/trace_processor/stdlib/chrome/cpu_powerups.sql",
1913 ],
1914)
1915
Igor Kraskevich49756332022-12-01 18:05:57 +00001916# GN target: //src/trace_processor/stdlib/common:common
1917perfetto_filegroup(
1918 name = "src_trace_processor_stdlib_common_common",
1919 srcs = [
Anna Mayzner93345462023-01-24 10:16:44 +00001920 "src/trace_processor/stdlib/common/counters.sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00001921 "src/trace_processor/stdlib/common/metadata.sql",
Anna Mayzner93345462023-01-24 10:16:44 +00001922 "src/trace_processor/stdlib/common/percentiles.sql",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001923 "src/trace_processor/stdlib/common/slices.sql",
1924 "src/trace_processor/stdlib/common/timestamps.sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00001925 ],
1926)
1927
Lalit Maganti358a7e42022-11-09 15:16:21 +00001928# GN target: //src/trace_processor/stdlib/experimental:experimental
1929perfetto_filegroup(
1930 name = "src_trace_processor_stdlib_experimental_experimental",
1931 srcs = [
Lalit Magantidf817362022-11-10 15:27:46 +00001932 "src/trace_processor/stdlib/experimental/android_broadcast.sql",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00001933 "src/trace_processor/stdlib/experimental/proto_path.sql",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001934 ],
1935)
1936
Lalit Maganti88e64de2022-11-21 18:29:57 +00001937# GN target: //src/trace_processor/stdlib:gen_amalgamated_stdlib
Lalit Magantie277dcb2022-11-09 15:57:58 +00001938perfetto_cc_amalgamated_sql(
Anna Mayznercc18bfd2022-11-03 14:05:19 +00001939 name = "src_trace_processor_stdlib_gen_amalgamated_stdlib",
Lalit Magantie277dcb2022-11-09 15:57:58 +00001940 deps = [
Lalit Maganti358a7e42022-11-09 15:16:21 +00001941 ":src_trace_processor_stdlib_android_android",
Anna Mayzner72cd93d2022-12-16 13:36:09 +00001942 ":src_trace_processor_stdlib_android_startup_startup",
Anna Mayzner96d69f72022-12-16 13:37:12 +00001943 ":src_trace_processor_stdlib_chrome_chrome_sql",
Igor Kraskevich49756332022-12-01 18:05:57 +00001944 ":src_trace_processor_stdlib_common_common",
Lalit Maganti358a7e42022-11-09 15:16:21 +00001945 ":src_trace_processor_stdlib_experimental_experimental",
Anna Mayznercc18bfd2022-11-03 14:05:19 +00001946 ],
1947 outs = [
1948 "src/trace_processor/stdlib/amalgamated_stdlib.h",
1949 ],
Lalit Magantie277dcb2022-11-09 15:57:58 +00001950 namespace = "stdlib",
Anna Mayznercc18bfd2022-11-03 14:05:19 +00001951)
1952
Lalit Maganti7010b332020-02-07 10:51:15 +00001953# GN target: //src/trace_processor/storage:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +08001954perfetto_filegroup(
Lalit Maganti7010b332020-02-07 10:51:15 +00001955 name = "src_trace_processor_storage_storage",
1956 srcs = [
1957 "src/trace_processor/storage/metadata.h",
1958 "src/trace_processor/storage/stats.h",
1959 "src/trace_processor/storage/trace_storage.cc",
1960 "src/trace_processor/storage/trace_storage.h",
1961 ],
1962)
1963
Primiano Tucci1d409982019-09-19 10:15:18 +01001964# GN target: //src/trace_processor/tables:tables
Harvey Yang321c4fc2021-10-25 14:11:50 +08001965perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001966 name = "src_trace_processor_tables_tables",
1967 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +00001968 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +00001969 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001970 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001971 "src/trace_processor/tables/macros.h",
1972 "src/trace_processor/tables/macros_internal.h",
Witold Fijalkowskicdaed0e2020-10-02 09:47:21 +02001973 "src/trace_processor/tables/memory_tables.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +00001974 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001975 "src/trace_processor/tables/profiler_tables.h",
1976 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01001977 "src/trace_processor/tables/table_destructors.cc",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00001978 "src/trace_processor/tables/trace_proto_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001979 "src/trace_processor/tables/track_tables.h",
1980 ],
1981)
1982
Lalit Maganti3dc8e302022-12-01 20:32:46 +00001983# GN target: //src/trace_processor/tables:tables_python
1984perfetto_cc_tp_tables(
1985 name = "src_trace_processor_tables_tables_python",
1986 srcs = [
1987 "src/trace_processor/tables/android_tables.py",
1988 "src/trace_processor/tables/metadata_tables.py",
1989 ],
1990 outs = [
1991 "src/trace_processor/tables/android_tables_py.h",
1992 "src/trace_processor/tables/metadata_tables_py.h",
1993 ],
1994)
1995
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001996# GN target: //src/trace_processor/types:types
Harvey Yang321c4fc2021-10-25 14:11:50 +08001997perfetto_filegroup(
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001998 name = "src_trace_processor_types_types",
1999 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01002000 "src/trace_processor/types/destructible.cc",
2001 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002002 "src/trace_processor/types/gfp_flags.cc",
2003 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12002004 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01002005 "src/trace_processor/types/task_state.cc",
2006 "src/trace_processor/types/task_state.h",
Luke Chang1b904072022-01-26 09:33:19 +08002007 "src/trace_processor/types/tcp_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01002008 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002009 "src/trace_processor/types/variadic.cc",
2010 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01002011 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002012 ],
2013)
2014
Lalit Magantiffaed7a2023-02-21 16:02:04 +00002015# GN target: //src/trace_processor/util:bump_allocator
2016perfetto_filegroup(
2017 name = "src_trace_processor_util_bump_allocator",
2018 srcs = [
2019 "src/trace_processor/util/bump_allocator.cc",
2020 "src/trace_processor/util/bump_allocator.h",
2021 ],
2022)
2023
Lalit Magantie7107402020-04-15 13:41:12 +01002024# GN target: //src/trace_processor/util:descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08002025perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01002026 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00002027 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01002028 "src/trace_processor/util/descriptors.cc",
2029 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00002030 ],
2031)
2032
Lalit Maganti83ddffe2022-10-18 17:47:44 +01002033# GN target: //src/trace_processor/util:glob
2034perfetto_filegroup(
2035 name = "src_trace_processor_util_glob",
2036 srcs = [
2037 "src/trace_processor/util/glob.cc",
2038 "src/trace_processor/util/glob.h",
2039 ],
2040)
2041
Lalit Maganti69216ec2021-05-21 14:10:42 +01002042# GN target: //src/trace_processor/util:gzip
Harvey Yang321c4fc2021-10-25 14:11:50 +08002043perfetto_filegroup(
Lalit Maganti69216ec2021-05-21 14:10:42 +01002044 name = "src_trace_processor_util_gzip",
2045 srcs = [
2046 "src/trace_processor/util/gzip_utils.cc",
2047 "src/trace_processor/util/gzip_utils.h",
2048 ],
2049)
2050
Alexander Timin97d87852021-05-17 18:01:33 +00002051# GN target: //src/trace_processor/util:interned_message_view
Harvey Yang321c4fc2021-10-25 14:11:50 +08002052perfetto_filegroup(
Alexander Timin97d87852021-05-17 18:01:33 +00002053 name = "src_trace_processor_util_interned_message_view",
2054 srcs = [
2055 "src/trace_processor/util/interned_message_view.h",
2056 ],
2057)
2058
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00002059# GN target: //src/trace_processor/util:profile_builder
2060perfetto_filegroup(
2061 name = "src_trace_processor_util_profile_builder",
2062 srcs = [
Carlos Caballero Grolimund689ef042022-09-26 14:58:20 +00002063 "src/trace_processor/util/annotated_callsites.cc",
2064 "src/trace_processor/util/annotated_callsites.h",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00002065 "src/trace_processor/util/profile_builder.cc",
2066 "src/trace_processor/util/profile_builder.h",
2067 ],
2068)
2069
Igor Kraskevich3da925d2022-08-22 12:02:30 +00002070# GN target: //src/trace_processor/util:proto_profiler
2071perfetto_filegroup(
2072 name = "src_trace_processor_util_proto_profiler",
2073 srcs = [
2074 "src/trace_processor/util/proto_profiler.cc",
2075 "src/trace_processor/util/proto_profiler.h",
2076 ],
2077)
2078
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002079# GN target: //src/trace_processor/util:proto_to_args_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002080perfetto_filegroup(
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002081 name = "src_trace_processor_util_proto_to_args_parser",
2082 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00002083 "src/trace_processor/util/debug_annotation_parser.cc",
2084 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00002085 "src/trace_processor/util/proto_to_args_parser.cc",
2086 "src/trace_processor/util/proto_to_args_parser.h",
2087 ],
2088)
2089
Deepanjan Roy1e048012020-09-23 12:49:04 -04002090# GN target: //src/trace_processor/util:protozero_to_text
Harvey Yang321c4fc2021-10-25 14:11:50 +08002091perfetto_filegroup(
Deepanjan Roy1e048012020-09-23 12:49:04 -04002092 name = "src_trace_processor_util_protozero_to_text",
2093 srcs = [
2094 "src/trace_processor/util/protozero_to_text.cc",
2095 "src/trace_processor/util/protozero_to_text.h",
2096 ],
2097)
2098
Lalit Magantiea630542022-11-21 19:35:02 +00002099# GN target: //src/trace_processor/util:sql_argument
2100perfetto_filegroup(
2101 name = "src_trace_processor_util_sql_argument",
2102 srcs = [
2103 "src/trace_processor/util/sql_argument.cc",
2104 "src/trace_processor/util/sql_argument.h",
2105 ],
2106)
2107
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00002108# GN target: //src/trace_processor/util:stack_traces_util
2109perfetto_filegroup(
2110 name = "src_trace_processor_util_stack_traces_util",
2111 srcs = [
2112 "src/trace_processor/util/stack_traces_util.cc",
2113 "src/trace_processor/util/stack_traces_util.h",
2114 ],
2115)
2116
Anna Mayzner5980c712022-11-24 15:09:11 +00002117# GN target: //src/trace_processor/util:stdlib
2118perfetto_filegroup(
2119 name = "src_trace_processor_util_stdlib",
2120 srcs = [
2121 "src/trace_processor/util/sql_modules.h",
2122 ],
2123)
2124
Lalit Magantie7107402020-04-15 13:41:12 +01002125# GN target: //src/trace_processor/util:util
Harvey Yang321c4fc2021-10-25 14:11:50 +08002126perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01002127 name = "src_trace_processor_util_util",
2128 srcs = [
2129 "src/trace_processor/util/status_macros.h",
2130 ],
2131)
2132
Primiano Tuccic9d912e2022-07-28 23:30:11 +01002133# GN target: //src/trace_processor/util:zip_reader
2134perfetto_filegroup(
2135 name = "src_trace_processor_util_zip_reader",
2136 srcs = [
2137 "src/trace_processor/util/streaming_line_reader.cc",
2138 "src/trace_processor/util/streaming_line_reader.h",
2139 "src/trace_processor/util/zip_reader.cc",
2140 "src/trace_processor/util/zip_reader.h",
2141 ],
2142)
2143
Lalit Maganti2410f202022-05-27 20:57:53 +01002144# GN target: //src/trace_processor/views:views
2145perfetto_filegroup(
2146 name = "src_trace_processor_views_views",
2147 srcs = [
2148 "src/trace_processor/views/macros.h",
2149 "src/trace_processor/views/macros_internal.h",
Lalit Maganti66127e82022-05-31 18:35:46 +01002150 "src/trace_processor/views/slice_views.h",
2151 "src/trace_processor/views/view_destructors.cc",
Lalit Maganti2410f202022-05-27 20:57:53 +01002152 ],
2153)
2154
Ryan Savitskie65c4052022-03-24 18:22:19 +00002155# GN target: //src/trace_processor:demangle
2156perfetto_cc_library(
2157 name = "src_trace_processor_demangle",
2158 srcs = [
2159 "src/trace_processor/demangle.cc",
2160 ],
2161 hdrs = [
2162 ":include_perfetto_base_base",
2163 ":include_perfetto_ext_base_base",
2164 ":include_perfetto_ext_trace_processor_demangle",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01002165 ":include_perfetto_public_abi_base",
2166 ":include_perfetto_public_base",
Ryan Savitskie65c4052022-03-24 18:22:19 +00002167 ],
Ryan Savitski5d6592d2022-03-31 13:33:23 +01002168 deps = [
2169 ] + PERFETTO_CONFIG.deps.llvm_demangle,
Ryan Savitskie65c4052022-03-24 18:22:19 +00002170 linkstatic = True,
2171)
2172
Eric Secklera7870e62019-11-01 10:11:58 +00002173# GN target: //src/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +08002174perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +00002175 name = "src_trace_processor_export_json",
2176 srcs = [
2177 "src/trace_processor/export_json.cc",
2178 "src/trace_processor/export_json.h",
2179 ],
2180)
2181
Primiano Tucci1d409982019-09-19 10:15:18 +01002182# GN target: //src/trace_processor:lib
Harvey Yang321c4fc2021-10-25 14:11:50 +08002183perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002184 name = "src_trace_processor_lib",
2185 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +01002186 "src/trace_processor/iterator_impl.cc",
2187 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002188 "src/trace_processor/read_trace.cc",
Anna Mayznerec507902022-07-07 15:40:14 +00002189 "src/trace_processor/read_trace_internal.cc",
2190 "src/trace_processor/read_trace_internal.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002191 "src/trace_processor/trace_processor.cc",
2192 "src/trace_processor/trace_processor_impl.cc",
2193 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00002194 ],
2195)
2196
Lalit Maganti427b8332020-05-27 16:09:45 +01002197# GN target: //src/trace_processor:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002198perfetto_filegroup(
Lalit Maganti427b8332020-05-27 16:09:45 +01002199 name = "src_trace_processor_metatrace",
2200 srcs = [
2201 "src/trace_processor/tp_metatrace.cc",
2202 "src/trace_processor/tp_metatrace.h",
2203 ],
2204)
2205
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00002206# GN target: //src/trace_processor:storage_minimal
Harvey Yang321c4fc2021-10-25 14:11:50 +08002207perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00002208 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00002209 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002210 "src/trace_processor/forwarding_trace_parser.cc",
2211 "src/trace_processor/forwarding_trace_parser.h",
Primiano Tucci3264b592021-11-08 18:20:51 +00002212 "src/trace_processor/trace_blob.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002213 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00002214 "src/trace_processor/trace_processor_storage.cc",
2215 "src/trace_processor/trace_processor_storage_impl.cc",
2216 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002217 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002218 ],
2219)
2220
Lalit Maganti88e64de2022-11-21 18:29:57 +00002221# GN target: //src/traceconv:gen_cc_trace_descriptor
Hector Dearmana9545e52022-05-17 12:23:25 +01002222perfetto_cc_proto_descriptor(
2223 name = "src_traceconv_gen_cc_trace_descriptor",
2224 deps = [
2225 ":protos_perfetto_trace_descriptor",
2226 ],
2227 outs = [
2228 "src/traceconv/trace.descriptor.h",
2229 ],
2230)
2231
2232# GN target: //src/traceconv:lib
2233perfetto_filegroup(
2234 name = "src_traceconv_lib",
2235 srcs = [
2236 "src/traceconv/deobfuscate_profile.cc",
2237 "src/traceconv/deobfuscate_profile.h",
2238 "src/traceconv/symbolize_profile.cc",
2239 "src/traceconv/symbolize_profile.h",
2240 "src/traceconv/trace_to_hprof.cc",
2241 "src/traceconv/trace_to_hprof.h",
2242 "src/traceconv/trace_to_json.cc",
2243 "src/traceconv/trace_to_json.h",
2244 "src/traceconv/trace_to_profile.cc",
2245 "src/traceconv/trace_to_profile.h",
2246 "src/traceconv/trace_to_systrace.cc",
2247 "src/traceconv/trace_to_systrace.h",
2248 "src/traceconv/trace_to_text.cc",
2249 "src/traceconv/trace_to_text.h",
2250 ],
2251)
2252
2253# GN target: //src/traceconv:main
2254perfetto_filegroup(
2255 name = "src_traceconv_main",
2256 srcs = [
2257 "src/traceconv/main.cc",
2258 ],
2259)
2260
2261# GN target: //src/traceconv:pprofbuilder
2262perfetto_filegroup(
2263 name = "src_traceconv_pprofbuilder",
2264 srcs = [
2265 "src/traceconv/pprof_builder.cc",
2266 ],
2267)
2268
2269# GN target: //src/traceconv:utils
2270perfetto_filegroup(
2271 name = "src_traceconv_utils",
2272 srcs = [
2273 "src/traceconv/utils.cc",
2274 "src/traceconv/utils.h",
2275 ],
2276)
2277
Andy Yu2b0a2132022-04-07 16:17:10 -07002278# GN target: //src/traced/probes/android_game_intervention_list:android_game_intervention_list
2279perfetto_filegroup(
2280 name = "src_traced_probes_android_game_intervention_list_android_game_intervention_list",
2281 srcs = [
2282 "src/traced/probes/android_game_intervention_list/android_game_intervention_list_data_source.cc",
2283 "src/traced/probes/android_game_intervention_list/android_game_intervention_list_data_source.h",
2284 ],
2285)
2286
Primiano Tucci1d409982019-09-19 10:15:18 +01002287# GN target: //src/traced/probes/android_log:android_log
Harvey Yang321c4fc2021-10-25 14:11:50 +08002288perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002289 name = "src_traced_probes_android_log_android_log",
2290 srcs = [
2291 "src/traced/probes/android_log/android_log_data_source.cc",
2292 "src/traced/probes/android_log/android_log_data_source.h",
2293 ],
2294)
2295
Simon MacMullenf0a6b382022-07-06 16:35:55 +00002296# GN target: //src/traced/probes/android_system_property:android_system_property
2297perfetto_filegroup(
2298 name = "src_traced_probes_android_system_property_android_system_property",
2299 srcs = [
2300 "src/traced/probes/android_system_property/android_system_property_data_source.cc",
2301 "src/traced/probes/android_system_property/android_system_property_data_source.h",
2302 ],
2303)
2304
Rafal Slawik8053a682020-04-08 17:26:40 +01002305# GN target: //src/traced/probes/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002306perfetto_filegroup(
Rafal Slawik8053a682020-04-08 17:26:40 +01002307 name = "src_traced_probes_common_common",
2308 srcs = [
2309 "src/traced/probes/common/cpu_freq_info.cc",
2310 "src/traced/probes/common/cpu_freq_info.h",
2311 ],
2312)
2313
Primiano Tucci1d409982019-09-19 10:15:18 +01002314# GN target: //src/traced/probes/filesystem:filesystem
Harvey Yang321c4fc2021-10-25 14:11:50 +08002315perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002316 name = "src_traced_probes_filesystem_filesystem",
2317 srcs = [
2318 "src/traced/probes/filesystem/file_scanner.cc",
2319 "src/traced/probes/filesystem/file_scanner.h",
2320 "src/traced/probes/filesystem/fs_mount.cc",
2321 "src/traced/probes/filesystem/fs_mount.h",
2322 "src/traced/probes/filesystem/inode_file_data_source.cc",
2323 "src/traced/probes/filesystem/inode_file_data_source.h",
2324 "src/traced/probes/filesystem/lru_inode_cache.cc",
2325 "src/traced/probes/filesystem/lru_inode_cache.h",
2326 "src/traced/probes/filesystem/prefix_finder.cc",
2327 "src/traced/probes/filesystem/prefix_finder.h",
2328 "src/traced/probes/filesystem/range_tree.cc",
2329 "src/traced/probes/filesystem/range_tree.h",
2330 ],
2331)
2332
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002333# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002334perfetto_filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002335 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01002336 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01002337 "src/traced/probes/ftrace/format_parser/format_parser.cc",
2338 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002339 ],
2340)
2341
2342# GN target: //src/traced/probes/ftrace:ftrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002343perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002344 name = "src_traced_probes_ftrace_ftrace",
2345 srcs = [
2346 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
2347 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
2348 "src/traced/probes/ftrace/atrace_wrapper.cc",
2349 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01002350 "src/traced/probes/ftrace/compact_sched.cc",
2351 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002352 "src/traced/probes/ftrace/cpu_reader.cc",
2353 "src/traced/probes/ftrace/cpu_reader.h",
2354 "src/traced/probes/ftrace/cpu_stats_parser.cc",
2355 "src/traced/probes/ftrace/cpu_stats_parser.h",
2356 "src/traced/probes/ftrace/event_info.cc",
2357 "src/traced/probes/ftrace/event_info.h",
2358 "src/traced/probes/ftrace/event_info_constants.cc",
2359 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002360 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
2361 "src/traced/probes/ftrace/ftrace_config_muxer.h",
2362 "src/traced/probes/ftrace/ftrace_config_utils.cc",
2363 "src/traced/probes/ftrace/ftrace_config_utils.h",
2364 "src/traced/probes/ftrace/ftrace_controller.cc",
2365 "src/traced/probes/ftrace/ftrace_controller.h",
2366 "src/traced/probes/ftrace/ftrace_data_source.cc",
2367 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002368 "src/traced/probes/ftrace/ftrace_metadata.h",
Daniele Di Proietto5c4b4432022-10-05 14:54:11 +01002369 "src/traced/probes/ftrace/ftrace_print_filter.cc",
2370 "src/traced/probes/ftrace/ftrace_print_filter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002371 "src/traced/probes/ftrace/ftrace_stats.cc",
2372 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00002373 "src/traced/probes/ftrace/printk_formats_parser.cc",
2374 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002375 "src/traced/probes/ftrace/proto_translation_table.cc",
2376 "src/traced/probes/ftrace/proto_translation_table.h",
Daniele Di Proietto9ffc5bf2022-10-03 10:03:24 +00002377 "src/traced/probes/ftrace/vendor_tracepoints.cc",
2378 "src/traced/probes/ftrace/vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002379 ],
2380)
2381
Ryan Savitskiec35afb2021-01-29 18:39:36 +00002382# GN target: //src/traced/probes/ftrace:ftrace_procfs
Harvey Yang321c4fc2021-10-25 14:11:50 +08002383perfetto_filegroup(
Ryan Savitskiec35afb2021-01-29 18:39:36 +00002384 name = "src_traced_probes_ftrace_ftrace_procfs",
2385 srcs = [
2386 "src/traced/probes/ftrace/ftrace_procfs.cc",
2387 "src/traced/probes/ftrace/ftrace_procfs.h",
2388 ],
2389)
2390
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002391# GN target: //src/traced/probes/initial_display_state:initial_display_state
Harvey Yang321c4fc2021-10-25 14:11:50 +08002392perfetto_filegroup(
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002393 name = "src_traced_probes_initial_display_state_initial_display_state",
2394 srcs = [
2395 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
2396 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
2397 ],
2398)
2399
Primiano Tucci1d409982019-09-19 10:15:18 +01002400# GN target: //src/traced/probes/metatrace:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08002401perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002402 name = "src_traced_probes_metatrace_metatrace",
2403 srcs = [
2404 "src/traced/probes/metatrace/metatrace_data_source.cc",
2405 "src/traced/probes/metatrace/metatrace_data_source.h",
2406 ],
2407)
2408
2409# GN target: //src/traced/probes/packages_list:packages_list
Harvey Yang321c4fc2021-10-25 14:11:50 +08002410perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002411 name = "src_traced_probes_packages_list_packages_list",
2412 srcs = [
2413 "src/traced/probes/packages_list/packages_list_data_source.cc",
2414 "src/traced/probes/packages_list/packages_list_data_source.h",
2415 ],
2416)
2417
Florian Mayer29e17182020-12-23 10:59:02 +00002418# GN target: //src/traced/probes/packages_list:packages_list_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08002419perfetto_filegroup(
Florian Mayer29e17182020-12-23 10:59:02 +00002420 name = "src_traced_probes_packages_list_packages_list_parser",
2421 srcs = [
2422 "src/traced/probes/packages_list/packages_list_parser.cc",
2423 "src/traced/probes/packages_list/packages_list_parser.h",
2424 ],
2425)
2426
Primiano Tucci1d409982019-09-19 10:15:18 +01002427# GN target: //src/traced/probes/power:power
Harvey Yang321c4fc2021-10-25 14:11:50 +08002428perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002429 name = "src_traced_probes_power_power",
2430 srcs = [
2431 "src/traced/probes/power/android_power_data_source.cc",
2432 "src/traced/probes/power/android_power_data_source.h",
Chinglin Yu819ef1a2021-11-15 22:25:05 +08002433 "src/traced/probes/power/linux_power_sysfs_data_source.cc",
2434 "src/traced/probes/power/linux_power_sysfs_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002435 ],
2436)
2437
2438# GN target: //src/traced/probes/ps:ps
Harvey Yang321c4fc2021-10-25 14:11:50 +08002439perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002440 name = "src_traced_probes_ps_ps",
2441 srcs = [
2442 "src/traced/probes/ps/process_stats_data_source.cc",
2443 "src/traced/probes/ps/process_stats_data_source.h",
2444 ],
2445)
2446
Hector Dearman09db5b02022-07-11 13:35:23 +01002447# GN target: //src/traced/probes/statsd_client:statsd_client
2448perfetto_filegroup(
2449 name = "src_traced_probes_statsd_client_statsd_client",
2450 srcs = [
2451 "src/traced/probes/statsd_client/statsd_data_source.cc",
2452 "src/traced/probes/statsd_client/statsd_data_source.h",
2453 ],
2454)
2455
Primiano Tucci1d409982019-09-19 10:15:18 +01002456# GN target: //src/traced/probes/sys_stats:sys_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +08002457perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002458 name = "src_traced_probes_sys_stats_sys_stats",
2459 srcs = [
2460 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
2461 "src/traced/probes/sys_stats/sys_stats_data_source.h",
2462 ],
2463)
2464
Rafal Slawikb013a112020-04-03 16:12:02 +01002465# GN target: //src/traced/probes/system_info:system_info
Harvey Yang321c4fc2021-10-25 14:11:50 +08002466perfetto_filegroup(
Rafal Slawikb013a112020-04-03 16:12:02 +01002467 name = "src_traced_probes_system_info_system_info",
2468 srcs = [
2469 "src/traced/probes/system_info/system_info_data_source.cc",
2470 "src/traced/probes/system_info/system_info_data_source.h",
2471 ],
2472)
2473
Primiano Tucci1d409982019-09-19 10:15:18 +01002474# GN target: //src/traced/probes:data_source
Harvey Yang321c4fc2021-10-25 14:11:50 +08002475perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002476 name = "src_traced_probes_data_source",
2477 srcs = [
2478 "src/traced/probes/probes_data_source.cc",
2479 "src/traced/probes/probes_data_source.h",
2480 ],
2481)
2482
2483# GN target: //src/traced/probes:probes
Harvey Yang321c4fc2021-10-25 14:11:50 +08002484perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002485 name = "src_traced_probes_probes",
2486 srcs = [
2487 "src/traced/probes/probes.cc",
2488 ],
2489)
2490
2491# GN target: //src/traced/probes:probes_src
Harvey Yang321c4fc2021-10-25 14:11:50 +08002492perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002493 name = "src_traced_probes_probes_src",
2494 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05002495 "src/traced/probes/kmem_activity_trigger.cc",
2496 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01002497 "src/traced/probes/probes_producer.cc",
2498 "src/traced/probes/probes_producer.h",
2499 ],
2500)
2501
2502# GN target: //src/traced/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002503perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002504 name = "src_traced_service_service",
2505 srcs = [
2506 "src/traced/service/builtin_producer.cc",
2507 "src/traced/service/builtin_producer.h",
2508 "src/traced/service/service.cc",
2509 ],
2510)
2511
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002512# GN target: //src/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +08002513perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002514 name = "src_tracing_core_core",
2515 srcs = [
2516 "src/tracing/core/id_allocator.cc",
2517 "src/tracing/core/id_allocator.h",
2518 "src/tracing/core/null_trace_writer.cc",
2519 "src/tracing/core/null_trace_writer.h",
2520 "src/tracing/core/patch_list.h",
2521 "src/tracing/core/shared_memory_abi.cc",
2522 "src/tracing/core/shared_memory_arbiter_impl.cc",
2523 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002524 "src/tracing/core/trace_packet.cc",
2525 "src/tracing/core/trace_writer_impl.cc",
2526 "src/tracing/core/trace_writer_impl.h",
2527 "src/tracing/core/virtual_destructors.cc",
2528 ],
2529)
2530
2531# GN target: //src/tracing/core:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002532perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002533 name = "src_tracing_core_service",
2534 srcs = [
2535 "src/tracing/core/metatrace_writer.cc",
2536 "src/tracing/core/metatrace_writer.h",
2537 "src/tracing/core/packet_stream_validator.cc",
2538 "src/tracing/core/packet_stream_validator.h",
2539 "src/tracing/core/trace_buffer.cc",
2540 "src/tracing/core/trace_buffer.h",
2541 "src/tracing/core/tracing_service_impl.cc",
2542 "src/tracing/core/tracing_service_impl.h",
2543 ],
2544)
2545
2546# GN target: //src/tracing/ipc/consumer:consumer
Harvey Yang321c4fc2021-10-25 14:11:50 +08002547perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002548 name = "src_tracing_ipc_consumer_consumer",
2549 srcs = [
2550 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
2551 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
2552 ],
2553)
2554
2555# GN target: //src/tracing/ipc/producer:producer
Harvey Yang321c4fc2021-10-25 14:11:50 +08002556perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002557 name = "src_tracing_ipc_producer_producer",
2558 srcs = [
2559 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
2560 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
2561 ],
2562)
2563
2564# GN target: //src/tracing/ipc/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08002565perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002566 name = "src_tracing_ipc_service_service",
2567 srcs = [
2568 "src/tracing/ipc/service/consumer_ipc_service.cc",
2569 "src/tracing/ipc/service/consumer_ipc_service.h",
2570 "src/tracing/ipc/service/producer_ipc_service.cc",
2571 "src/tracing/ipc/service/producer_ipc_service.h",
2572 "src/tracing/ipc/service/service_ipc_host_impl.cc",
2573 "src/tracing/ipc/service/service_ipc_host_impl.h",
2574 ],
2575)
2576
2577# GN target: //src/tracing/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002578perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002579 name = "src_tracing_ipc_common",
2580 srcs = [
Eric Seckler14a22db2020-02-03 13:47:08 +00002581 "src/tracing/ipc/memfd.cc",
2582 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002583 "src/tracing/ipc/posix_shared_memory.cc",
2584 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01002585 "src/tracing/ipc/shared_memory_windows.cc",
2586 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002587 ],
2588)
2589
Primiano Tucci8761a312021-11-25 17:17:23 +00002590# GN target: //src/tracing/ipc:default_socket
2591perfetto_filegroup(
2592 name = "src_tracing_ipc_default_socket",
2593 srcs = [
2594 "src/tracing/ipc/default_socket.cc",
2595 ],
2596)
2597
Primiano Tucci3feec552020-02-04 11:14:42 +00002598# GN target: //src/tracing:client_api_without_backends
Harvey Yang321c4fc2021-10-25 14:11:50 +08002599perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00002600 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002601 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002602 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002603 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00002604 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00002605 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00002606 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00002607 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00002608 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00002609 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00002610 "src/tracing/internal/tracing_muxer_fake.cc",
2611 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002612 "src/tracing/internal/tracing_muxer_impl.cc",
2613 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01002614 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00002615 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002616 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00002617 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002618 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01002619 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00002620 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01002621 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00002622 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002623 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002624 "src/tracing/virtual_destructors.cc",
2625 ],
2626)
2627
Primiano Tucci1d409982019-09-19 10:15:18 +01002628# GN target: //src/tracing:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08002629perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01002630 name = "src_tracing_common",
2631 srcs = [
2632 "src/tracing/trace_writer_base.cc",
2633 ],
2634)
2635
Primiano Tucci55b4d912020-01-28 11:17:51 +00002636# GN target: //src/tracing:in_process_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08002637perfetto_filegroup(
Primiano Tucci55b4d912020-01-28 11:17:51 +00002638 name = "src_tracing_in_process_backend",
2639 srcs = [
2640 "src/tracing/internal/in_process_tracing_backend.cc",
2641 ],
2642)
2643
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01002644# GN target: //src/tracing:platform_impl
Harvey Yang321c4fc2021-10-25 14:11:50 +08002645perfetto_filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01002646 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002647 srcs = [
2648 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01002649 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002650 ],
2651)
2652
Primiano Tucci3feec552020-02-04 11:14:42 +00002653# GN target: //src/tracing:system_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08002654perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00002655 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00002656 srcs = [
2657 "src/tracing/internal/system_tracing_backend.cc",
2658 ],
2659)
2660
Primiano Tucci1d409982019-09-19 10:15:18 +01002661# ##############################################################################
2662# Proto libraries
2663# ##############################################################################
2664
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002665# GN target: [//protos/perfetto/config:source_set]
2666perfetto_proto_library(
2667 name = "config_proto",
2668 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002669 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002670 ":protos_perfetto_common_protos",
2671 ":protos_perfetto_config_android_protos",
2672 ":protos_perfetto_config_ftrace_protos",
2673 ":protos_perfetto_config_gpu_protos",
2674 ":protos_perfetto_config_inode_file_protos",
2675 ":protos_perfetto_config_interceptors_protos",
2676 ":protos_perfetto_config_power_protos",
2677 ":protos_perfetto_config_process_stats_protos",
2678 ":protos_perfetto_config_profiling_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002679 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002680 ":protos_perfetto_config_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002681 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01002682 ":protos_perfetto_config_system_info_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002683 ":protos_perfetto_config_track_event_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002684 ],
2685)
2686
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002687# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002688perfetto_cc_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002689 name = "config_cc_proto",
2690 visibility = PERFETTO_CONFIG.public_visibility,
2691 deps = [
2692 ":config_proto",
2693 ],
2694)
2695
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002696# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002697perfetto_java_proto_library(
2698 name = "config_java_proto",
2699 visibility = PERFETTO_CONFIG.public_visibility,
2700 deps = [
2701 ":config_proto",
2702 ],
2703)
2704
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002705# GN target: [//protos/perfetto/config:source_set]
2706perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002707 name = "config_java_proto_lite",
2708 visibility = PERFETTO_CONFIG.public_visibility,
2709 deps = [
2710 ":config_proto",
2711 ],
2712)
2713
Lalit Maganti06f638c2022-04-01 18:44:14 +01002714# GN target: [//protos/perfetto/config:source_set]
2715perfetto_py_proto_library(
2716 name = "config_py_pb2",
2717 visibility = PERFETTO_CONFIG.public_visibility,
2718 deps = [
2719 ":config_proto",
2720 ],
2721)
2722
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002723# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2724perfetto_proto_library(
2725 name = "trace_proto",
2726 visibility = PERFETTO_CONFIG.public_visibility,
2727 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002728 ":protos_perfetto_common_protos",
2729 ":protos_perfetto_config_android_protos",
2730 ":protos_perfetto_config_ftrace_protos",
2731 ":protos_perfetto_config_gpu_protos",
2732 ":protos_perfetto_config_inode_file_protos",
2733 ":protos_perfetto_config_interceptors_protos",
2734 ":protos_perfetto_config_power_protos",
2735 ":protos_perfetto_config_process_stats_protos",
2736 ":protos_perfetto_config_profiling_protos",
2737 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002738 ":protos_perfetto_config_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002739 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01002740 ":protos_perfetto_config_system_info_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002741 ":protos_perfetto_config_track_event_protos",
2742 ":protos_perfetto_trace_android_protos",
2743 ":protos_perfetto_trace_chrome_protos",
2744 ":protos_perfetto_trace_filesystem_protos",
2745 ":protos_perfetto_trace_ftrace_protos",
2746 ":protos_perfetto_trace_gpu_protos",
2747 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002748 ":protos_perfetto_trace_minimal_protos",
2749 ":protos_perfetto_trace_non_minimal_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002750 ":protos_perfetto_trace_perfetto_protos",
2751 ":protos_perfetto_trace_power_protos",
2752 ":protos_perfetto_trace_profiling_protos",
2753 ":protos_perfetto_trace_ps_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01002754 ":protos_perfetto_trace_statsd_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002755 ":protos_perfetto_trace_sys_stats_protos",
2756 ":protos_perfetto_trace_system_info_protos",
2757 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00002758 ":protos_perfetto_trace_translation_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002759 ],
2760)
2761
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002762# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002763perfetto_cc_proto_library(
2764 name = "trace_cc_proto",
2765 visibility = PERFETTO_CONFIG.public_visibility,
2766 deps = [
2767 ":trace_proto",
2768 ],
2769)
2770
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002771# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002772perfetto_java_proto_library(
2773 name = "trace_java_proto",
2774 visibility = PERFETTO_CONFIG.public_visibility,
2775 deps = [
2776 ":trace_proto",
2777 ],
2778)
2779
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002780# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2781perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002782 name = "trace_java_proto_lite",
2783 visibility = PERFETTO_CONFIG.public_visibility,
2784 deps = [
2785 ":trace_proto",
2786 ],
2787)
2788
Lalit Maganti06f638c2022-04-01 18:44:14 +01002789# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2790perfetto_py_proto_library(
2791 name = "trace_py_pb2",
2792 visibility = PERFETTO_CONFIG.public_visibility,
2793 deps = [
2794 ":trace_proto",
2795 ],
2796)
2797
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002798# GN target: [//protos/perfetto/metrics:source_set]
2799perfetto_proto_library(
2800 name = "metrics_proto",
2801 visibility = PERFETTO_CONFIG.public_visibility,
2802 deps = [
2803 ":protos_perfetto_metrics_android_protos",
2804 ":protos_perfetto_metrics_protos",
2805 ],
2806)
2807
2808# GN target: [//protos/perfetto/metrics:source_set]
2809perfetto_cc_proto_library(
2810 name = "metrics_cc_proto",
2811 visibility = PERFETTO_CONFIG.public_visibility,
2812 deps = [
2813 ":metrics_proto",
2814 ],
2815)
2816
2817# GN target: [//protos/perfetto/metrics:source_set]
2818perfetto_java_proto_library(
2819 name = "metrics_java_proto",
2820 visibility = PERFETTO_CONFIG.public_visibility,
2821 deps = [
2822 ":metrics_proto",
2823 ],
2824)
2825
2826# GN target: [//protos/perfetto/metrics:source_set]
2827perfetto_java_lite_proto_library(
2828 name = "metrics_java_proto_lite",
2829 visibility = PERFETTO_CONFIG.public_visibility,
2830 deps = [
2831 ":metrics_proto",
2832 ],
2833)
2834
Lalit Maganti06f638c2022-04-01 18:44:14 +01002835# GN target: [//protos/perfetto/metrics:source_set]
2836perfetto_py_proto_library(
2837 name = "metrics_py_pb2",
2838 visibility = PERFETTO_CONFIG.public_visibility,
2839 deps = [
2840 ":metrics_proto",
2841 ],
2842)
2843
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002844# GN target: [//protos/third_party/chromium:source_set]
2845perfetto_proto_library(
2846 name = "chromium_proto",
2847 visibility = PERFETTO_CONFIG.public_visibility,
2848 deps = [
2849 ":protos_perfetto_trace_track_event_protos",
2850 ":protos_third_party_chromium_protos",
2851 ],
2852)
2853
2854# GN target: [//protos/third_party/chromium:source_set]
2855perfetto_cc_proto_library(
2856 name = "chromium_cc_proto",
2857 visibility = PERFETTO_CONFIG.public_visibility,
2858 deps = [
2859 ":chromium_proto",
2860 ],
2861)
2862
2863# GN target: [//protos/third_party/chromium:source_set]
2864perfetto_java_proto_library(
2865 name = "chromium_java_proto",
2866 visibility = PERFETTO_CONFIG.public_visibility,
2867 deps = [
2868 ":chromium_proto",
2869 ],
2870)
2871
2872# GN target: [//protos/third_party/chromium:source_set]
2873perfetto_java_lite_proto_library(
2874 name = "chromium_java_proto_lite",
2875 visibility = PERFETTO_CONFIG.public_visibility,
2876 deps = [
2877 ":chromium_proto",
2878 ],
2879)
2880
Lalit Maganti06f638c2022-04-01 18:44:14 +01002881# GN target: [//protos/third_party/chromium:source_set]
2882perfetto_py_proto_library(
2883 name = "chromium_py_pb2",
2884 visibility = PERFETTO_CONFIG.public_visibility,
2885 deps = [
2886 ":chromium_proto",
2887 ],
2888)
2889
Igor Kraskevich833f3cb2022-03-29 14:47:35 +00002890# GN target: [//protos/perfetto/metrics/chrome:source_set]
2891perfetto_proto_library(
2892 name = "chrome_metrics_proto",
2893 visibility = PERFETTO_CONFIG.public_visibility,
2894 deps = [
2895 ":protos_perfetto_metrics_android_protos",
2896 ":protos_perfetto_metrics_chrome_protos",
2897 ":protos_perfetto_metrics_custom_options_protos",
2898 ":protos_perfetto_metrics_protos",
2899 ],
2900)
2901
2902# GN target: [//protos/perfetto/metrics/chrome:source_set]
2903perfetto_cc_proto_library(
2904 name = "chrome_metrics_cc_proto",
2905 visibility = PERFETTO_CONFIG.public_visibility,
2906 deps = [
2907 ":chrome_metrics_proto",
2908 ],
2909)
2910
2911# GN target: [//protos/perfetto/metrics/chrome:source_set]
2912perfetto_java_proto_library(
2913 name = "chrome_metrics_java_proto",
2914 visibility = PERFETTO_CONFIG.public_visibility,
2915 deps = [
2916 ":chrome_metrics_proto",
2917 ],
2918)
2919
2920# GN target: [//protos/perfetto/metrics/chrome:source_set]
2921perfetto_java_lite_proto_library(
2922 name = "chrome_metrics_java_proto_lite",
2923 visibility = PERFETTO_CONFIG.public_visibility,
2924 deps = [
2925 ":chrome_metrics_proto",
2926 ],
2927)
2928
Lalit Maganti06f638c2022-04-01 18:44:14 +01002929# GN target: [//protos/perfetto/metrics/chrome:source_set]
2930perfetto_py_proto_library(
2931 name = "chrome_metrics_py_pb2",
2932 visibility = PERFETTO_CONFIG.public_visibility,
2933 deps = [
2934 ":chrome_metrics_proto",
2935 ],
2936)
2937
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002938# GN target: //protos/perfetto/common:cpp
2939perfetto_cc_protocpp_library(
2940 name = "protos_perfetto_common_cpp",
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002941 deps = [
2942 ":protos_perfetto_common_protos",
2943 ],
2944)
2945
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002946# GN target: //protos/perfetto/common:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002947perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002948 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002949 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08002950 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002951 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01002952 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002953 "protos/perfetto/common/commit_data_request.proto",
2954 "protos/perfetto/common/data_source_descriptor.proto",
2955 "protos/perfetto/common/descriptor.proto",
Daniele Di Proietto97c33812022-02-21 13:49:52 +00002956 "protos/perfetto/common/ftrace_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002957 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002958 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002959 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002960 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002961 "protos/perfetto/common/sys_stats_counters.proto",
2962 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00002963 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002964 "protos/perfetto/common/tracing_service_state.proto",
2965 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002966 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002967 visibility = [
2968 PERFETTO_CONFIG.proto_library_visibility,
2969 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002970)
2971
2972# GN target: //protos/perfetto/common:zero
2973perfetto_cc_protozero_library(
2974 name = "protos_perfetto_common_zero",
2975 deps = [
2976 ":protos_perfetto_common_protos",
2977 ],
2978)
2979
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002980# GN target: //protos/perfetto/config/android:cpp
2981perfetto_cc_protocpp_library(
2982 name = "protos_perfetto_config_android_cpp",
2983 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002984 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002985 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002986 ],
2987)
2988
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002989# GN target: //protos/perfetto/config/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002990perfetto_proto_library(
2991 name = "protos_perfetto_config_android_protos",
2992 srcs = [
Andy Yu2e3c9b62022-05-31 11:23:18 -07002993 "protos/perfetto/config/android/android_game_intervention_list_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002994 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01002995 "protos/perfetto/config/android/android_polled_state_config.proto",
Simon MacMullenf0a6b382022-07-06 16:35:55 +00002996 "protos/perfetto/config/android/android_system_property_config.proto",
Ryan Zuklie1c0a5002022-11-18 17:03:37 -08002997 "protos/perfetto/config/android/network_trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002998 "protos/perfetto/config/android/packages_list_config.proto",
2999 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003000 visibility = [
3001 PERFETTO_CONFIG.proto_library_visibility,
3002 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003003 deps = [
3004 ":protos_perfetto_common_protos",
3005 ],
3006)
3007
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003008# GN target: //protos/perfetto/config/android:zero
3009perfetto_cc_protozero_library(
3010 name = "protos_perfetto_config_android_zero",
3011 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003012 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003013 ":protos_perfetto_config_android_protos",
3014 ],
3015)
3016
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003017# GN target: //protos/perfetto/config:cpp
3018perfetto_cc_protocpp_library(
3019 name = "protos_perfetto_config_cpp",
3020 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01003021 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003022 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003023 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003024 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003025 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003026 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003027 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003028 ":protos_perfetto_config_process_stats_cpp",
3029 ":protos_perfetto_config_profiling_cpp",
3030 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003031 ":protos_perfetto_config_statsd_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003032 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003033 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003034 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003035 ],
3036)
3037
Hector Dearmana1d75242020-10-02 09:47:24 +01003038# GN target: //protos/perfetto/config:descriptor
3039perfetto_proto_descriptor(
3040 name = "protos_perfetto_config_descriptor",
3041 deps = [
3042 ":protos_perfetto_config_protos",
3043 ],
3044 outs = [
3045 "protos_perfetto_config_descriptor.bin",
3046 ],
3047)
3048
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003049# GN target: //protos/perfetto/config/ftrace:cpp
3050perfetto_cc_protocpp_library(
3051 name = "protos_perfetto_config_ftrace_cpp",
3052 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003053 ":protos_perfetto_config_ftrace_protos",
3054 ],
3055)
3056
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003057# GN target: //protos/perfetto/config/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003058perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003059 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003060 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003061 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003062 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003063 visibility = [
3064 PERFETTO_CONFIG.proto_library_visibility,
3065 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003066)
3067
3068# GN target: //protos/perfetto/config/ftrace:zero
3069perfetto_cc_protozero_library(
3070 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003071 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003072 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003073 ],
3074)
3075
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003076# GN target: //protos/perfetto/config/gpu:cpp
3077perfetto_cc_protocpp_library(
3078 name = "protos_perfetto_config_gpu_cpp",
3079 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003080 ":protos_perfetto_config_gpu_protos",
3081 ],
3082)
3083
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003084# GN target: //protos/perfetto/config/gpu:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003085perfetto_proto_library(
3086 name = "protos_perfetto_config_gpu_protos",
3087 srcs = [
3088 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05003089 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003090 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003091 visibility = [
3092 PERFETTO_CONFIG.proto_library_visibility,
3093 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003094)
3095
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003096# GN target: //protos/perfetto/config/gpu:zero
3097perfetto_cc_protozero_library(
3098 name = "protos_perfetto_config_gpu_zero",
3099 deps = [
3100 ":protos_perfetto_config_gpu_protos",
3101 ],
3102)
3103
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003104# GN target: //protos/perfetto/config/inode_file:cpp
3105perfetto_cc_protocpp_library(
3106 name = "protos_perfetto_config_inode_file_cpp",
3107 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003108 ":protos_perfetto_config_inode_file_protos",
3109 ],
3110)
3111
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003112# GN target: //protos/perfetto/config/inode_file:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003113perfetto_proto_library(
3114 name = "protos_perfetto_config_inode_file_protos",
3115 srcs = [
3116 "protos/perfetto/config/inode_file/inode_file_config.proto",
3117 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003118 visibility = [
3119 PERFETTO_CONFIG.proto_library_visibility,
3120 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003121)
3122
3123# GN target: //protos/perfetto/config/inode_file:zero
3124perfetto_cc_protozero_library(
3125 name = "protos_perfetto_config_inode_file_zero",
3126 deps = [
3127 ":protos_perfetto_config_inode_file_protos",
3128 ],
3129)
3130
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003131# GN target: //protos/perfetto/config/interceptors:cpp
3132perfetto_cc_protocpp_library(
3133 name = "protos_perfetto_config_interceptors_cpp",
3134 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003135 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003136 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003137 ],
3138)
3139
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003140# GN target: //protos/perfetto/config/interceptors:source_set
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003141perfetto_proto_library(
3142 name = "protos_perfetto_config_interceptors_protos",
3143 srcs = [
3144 "protos/perfetto/config/interceptors/console_config.proto",
3145 ],
3146 visibility = [
3147 PERFETTO_CONFIG.proto_library_visibility,
3148 ],
3149 deps = [
3150 ":protos_perfetto_common_protos",
3151 ],
3152)
3153
3154# GN target: //protos/perfetto/config/interceptors:zero
3155perfetto_cc_protozero_library(
3156 name = "protos_perfetto_config_interceptors_zero",
3157 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003158 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003159 ":protos_perfetto_config_interceptors_protos",
3160 ],
3161)
3162
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003163# GN target: //protos/perfetto/config/power:cpp
3164perfetto_cc_protocpp_library(
3165 name = "protos_perfetto_config_power_cpp",
3166 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003167 ":protos_perfetto_config_power_protos",
3168 ],
3169)
3170
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003171# GN target: //protos/perfetto/config/power:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003172perfetto_proto_library(
3173 name = "protos_perfetto_config_power_protos",
3174 srcs = [
3175 "protos/perfetto/config/power/android_power_config.proto",
3176 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003177 visibility = [
3178 PERFETTO_CONFIG.proto_library_visibility,
3179 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003180)
3181
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003182# GN target: //protos/perfetto/config/power:zero
3183perfetto_cc_protozero_library(
3184 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003185 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003186 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003187 ],
3188)
3189
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003190# GN target: //protos/perfetto/config/process_stats:cpp
3191perfetto_cc_protocpp_library(
3192 name = "protos_perfetto_config_process_stats_cpp",
3193 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003194 ":protos_perfetto_config_process_stats_protos",
3195 ],
3196)
3197
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003198# GN target: //protos/perfetto/config/process_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003199perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003200 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003201 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003202 "protos/perfetto/config/process_stats/process_stats_config.proto",
3203 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003204 visibility = [
3205 PERFETTO_CONFIG.proto_library_visibility,
3206 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003207)
3208
3209# GN target: //protos/perfetto/config/process_stats:zero
3210perfetto_cc_protozero_library(
3211 name = "protos_perfetto_config_process_stats_zero",
3212 deps = [
3213 ":protos_perfetto_config_process_stats_protos",
3214 ],
3215)
3216
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003217# GN target: //protos/perfetto/config/profiling:cpp
3218perfetto_cc_protocpp_library(
3219 name = "protos_perfetto_config_profiling_cpp",
3220 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00003221 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003222 ":protos_perfetto_config_profiling_protos",
3223 ],
3224)
3225
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003226# GN target: //protos/perfetto/config/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003227perfetto_proto_library(
3228 name = "protos_perfetto_config_profiling_protos",
3229 srcs = [
3230 "protos/perfetto/config/profiling/heapprofd_config.proto",
3231 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00003232 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003233 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003234 visibility = [
3235 PERFETTO_CONFIG.proto_library_visibility,
3236 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00003237 deps = [
3238 ":protos_perfetto_common_protos",
3239 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003240)
3241
3242# GN target: //protos/perfetto/config/profiling:zero
3243perfetto_cc_protozero_library(
3244 name = "protos_perfetto_config_profiling_zero",
3245 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003246 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003247 ":protos_perfetto_config_profiling_protos",
3248 ],
3249)
3250
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003251# GN target: //protos/perfetto/config:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003252perfetto_proto_library(
3253 name = "protos_perfetto_config_protos",
3254 srcs = [
3255 "protos/perfetto/config/chrome/chrome_config.proto",
Etienne Pierre-dorayd8663352023-02-28 21:24:56 +00003256 "protos/perfetto/config/chrome/scenario_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003257 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00003258 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02003259 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003260 "protos/perfetto/config/test_config.proto",
3261 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003262 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003263 visibility = [
3264 PERFETTO_CONFIG.proto_library_visibility,
3265 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003266 deps = [
3267 ":protos_perfetto_common_protos",
3268 ":protos_perfetto_config_android_protos",
3269 ":protos_perfetto_config_ftrace_protos",
3270 ":protos_perfetto_config_gpu_protos",
3271 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003272 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003273 ":protos_perfetto_config_power_protos",
3274 ":protos_perfetto_config_process_stats_protos",
3275 ":protos_perfetto_config_profiling_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003276 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003277 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003278 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003279 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003280 ],
3281)
3282
Hector Dearman5974de02022-06-23 15:31:40 +01003283# GN target: //protos/perfetto/config/statsd:cpp
3284perfetto_cc_protocpp_library(
3285 name = "protos_perfetto_config_statsd_cpp",
3286 deps = [
3287 ":protos_perfetto_config_statsd_protos",
3288 ],
3289)
3290
3291# GN target: //protos/perfetto/config/statsd:source_set
3292perfetto_proto_library(
3293 name = "protos_perfetto_config_statsd_protos",
3294 srcs = [
3295 "protos/perfetto/config/statsd/atom_ids.proto",
3296 "protos/perfetto/config/statsd/statsd_tracing_config.proto",
3297 ],
3298 visibility = [
3299 PERFETTO_CONFIG.proto_library_visibility,
3300 ],
3301)
3302
3303# GN target: //protos/perfetto/config/statsd:zero
3304perfetto_cc_protozero_library(
3305 name = "protos_perfetto_config_statsd_zero",
3306 deps = [
3307 ":protos_perfetto_config_statsd_protos",
3308 ],
3309)
3310
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003311# GN target: //protos/perfetto/config/sys_stats:cpp
3312perfetto_cc_protocpp_library(
3313 name = "protos_perfetto_config_sys_stats_cpp",
3314 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003315 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003316 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003317 ],
3318)
3319
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003320# GN target: //protos/perfetto/config/sys_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003321perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003322 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003323 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003324 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003325 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003326 visibility = [
3327 PERFETTO_CONFIG.proto_library_visibility,
3328 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003329 deps = [
3330 ":protos_perfetto_common_protos",
3331 ],
3332)
3333
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003334# GN target: //protos/perfetto/config/sys_stats:zero
3335perfetto_cc_protozero_library(
3336 name = "protos_perfetto_config_sys_stats_zero",
3337 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003338 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003339 ":protos_perfetto_config_sys_stats_protos",
3340 ],
3341)
3342
Hector Dearman48047d12022-08-02 14:00:46 +01003343# GN target: //protos/perfetto/config/system_info:cpp
3344perfetto_cc_protocpp_library(
3345 name = "protos_perfetto_config_system_info_cpp",
3346 deps = [
3347 ":protos_perfetto_common_cpp",
3348 ":protos_perfetto_config_system_info_protos",
3349 ],
3350)
3351
3352# GN target: //protos/perfetto/config/system_info:source_set
3353perfetto_proto_library(
3354 name = "protos_perfetto_config_system_info_protos",
3355 srcs = [
3356 "protos/perfetto/config/system_info/system_info.proto",
3357 ],
3358 visibility = [
3359 PERFETTO_CONFIG.proto_library_visibility,
3360 ],
3361 deps = [
3362 ":protos_perfetto_common_protos",
3363 ],
3364)
3365
3366# GN target: //protos/perfetto/config/system_info:zero
3367perfetto_cc_protozero_library(
3368 name = "protos_perfetto_config_system_info_zero",
3369 deps = [
3370 ":protos_perfetto_common_zero",
3371 ":protos_perfetto_config_system_info_protos",
3372 ],
3373)
3374
Sami Kyostila38cd0412020-02-12 17:09:52 +00003375# GN target: //protos/perfetto/config/track_event:cpp
3376perfetto_cc_protocpp_library(
3377 name = "protos_perfetto_config_track_event_cpp",
3378 deps = [
3379 ":protos_perfetto_config_track_event_protos",
3380 ],
3381)
3382
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003383# GN target: //protos/perfetto/config/track_event:source_set
Sami Kyostila38cd0412020-02-12 17:09:52 +00003384perfetto_proto_library(
3385 name = "protos_perfetto_config_track_event_protos",
3386 srcs = [
3387 "protos/perfetto/config/track_event/track_event_config.proto",
3388 ],
3389 visibility = [
3390 PERFETTO_CONFIG.proto_library_visibility,
3391 ],
3392)
3393
3394# GN target: //protos/perfetto/config/track_event:zero
3395perfetto_cc_protozero_library(
3396 name = "protos_perfetto_config_track_event_zero",
3397 deps = [
3398 ":protos_perfetto_config_track_event_protos",
3399 ],
3400)
3401
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003402# GN target: //protos/perfetto/config:zero
3403perfetto_cc_protozero_library(
3404 name = "protos_perfetto_config_zero",
3405 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003406 ":protos_perfetto_common_zero",
3407 ":protos_perfetto_config_android_zero",
3408 ":protos_perfetto_config_ftrace_zero",
3409 ":protos_perfetto_config_gpu_zero",
3410 ":protos_perfetto_config_inode_file_zero",
3411 ":protos_perfetto_config_interceptors_zero",
3412 ":protos_perfetto_config_power_zero",
3413 ":protos_perfetto_config_process_stats_zero",
3414 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003415 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003416 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003417 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01003418 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003419 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003420 ],
3421)
3422
Primiano Tuccie8020f92019-11-26 13:24:01 +00003423# GN target: //protos/perfetto/ipc:cpp
3424perfetto_cc_protocpp_library(
3425 name = "protos_perfetto_ipc_cpp",
3426 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00003427 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003428 ":protos_perfetto_config_android_cpp",
3429 ":protos_perfetto_config_cpp",
3430 ":protos_perfetto_config_ftrace_cpp",
3431 ":protos_perfetto_config_gpu_cpp",
3432 ":protos_perfetto_config_inode_file_cpp",
3433 ":protos_perfetto_config_interceptors_cpp",
3434 ":protos_perfetto_config_power_cpp",
3435 ":protos_perfetto_config_process_stats_cpp",
3436 ":protos_perfetto_config_profiling_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +01003437 ":protos_perfetto_config_statsd_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003438 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003439 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003440 ":protos_perfetto_config_track_event_cpp",
3441 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003442 ],
3443)
3444
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003445# GN target: //protos/perfetto/ipc:ipc
3446perfetto_cc_ipc_library(
3447 name = "protos_perfetto_ipc_ipc",
3448 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00003449 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003450 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003451 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003452 ":protos_perfetto_config_ftrace_cpp",
3453 ":protos_perfetto_config_gpu_cpp",
3454 ":protos_perfetto_config_inode_file_cpp",
3455 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003456 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003457 ":protos_perfetto_config_process_stats_cpp",
3458 ":protos_perfetto_config_profiling_cpp",
Hector Dearman5974de02022-06-23 15:31:40 +01003459 ":protos_perfetto_config_statsd_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003460 ":protos_perfetto_config_sys_stats_cpp",
Hector Dearman48047d12022-08-02 14:00:46 +01003461 ":protos_perfetto_config_system_info_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003462 ":protos_perfetto_config_track_event_cpp",
3463 ":protos_perfetto_ipc_cpp",
3464 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003465 ],
3466)
3467
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003468# GN target: //protos/perfetto/ipc:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003469perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00003470 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003471 srcs = [
3472 "protos/perfetto/ipc/consumer_port.proto",
3473 "protos/perfetto/ipc/producer_port.proto",
3474 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003475 visibility = [
3476 PERFETTO_CONFIG.proto_library_visibility,
3477 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003478 deps = [
3479 ":protos_perfetto_common_protos",
3480 ":protos_perfetto_config_android_protos",
3481 ":protos_perfetto_config_ftrace_protos",
3482 ":protos_perfetto_config_gpu_protos",
3483 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003484 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003485 ":protos_perfetto_config_power_protos",
3486 ":protos_perfetto_config_process_stats_protos",
3487 ":protos_perfetto_config_profiling_protos",
3488 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003489 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003490 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003491 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003492 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003493 ],
3494)
3495
Primiano Tuccib3e08d02019-11-19 11:10:11 +00003496# GN target: //protos/perfetto/ipc:wire_protocol_cpp
3497perfetto_cc_protocpp_library(
3498 name = "protos_perfetto_ipc_wire_protocol_cpp",
3499 deps = [
3500 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00003501 ],
3502)
3503
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003504# GN target: //protos/perfetto/ipc:wire_protocol_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003505perfetto_proto_library(
3506 name = "protos_perfetto_ipc_wire_protocol_protos",
3507 srcs = [
3508 "protos/perfetto/ipc/wire_protocol.proto",
3509 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003510 visibility = [
3511 PERFETTO_CONFIG.proto_library_visibility,
3512 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003513)
3514
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003515# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003516perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003517 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003518 srcs = [
Nicolo' Mazzucato02b288a2023-03-08 14:17:24 +00003519 "protos/perfetto/metrics/android/android_blocking_calls_cuj_metric.proto",
Shihhsun Ho7edcbe62022-05-09 13:55:52 +08003520 "protos/perfetto/metrics/android/android_frame_timeline_metric.proto",
David LeGare20d39c42022-01-20 20:38:43 +00003521 "protos/perfetto/metrics/android/android_trusty_workqueues.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003522 "protos/perfetto/metrics/android/batt_metric.proto",
Jon Spivackb0974a72022-04-27 16:07:10 -07003523 "protos/perfetto/metrics/android/binder_metric.proto",
Lalit Maganti262252a2021-10-15 12:17:53 +01003524 "protos/perfetto/metrics/android/camera_metric.proto",
Lalit Magantic16c7212021-12-16 17:32:55 +00003525 "protos/perfetto/metrics/android/camera_unagg_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003526 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08003527 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07003528 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Luke Chang476e9442021-11-09 23:14:34 +08003529 "protos/perfetto/metrics/android/dvfs_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08003530 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08003531 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07003532 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08003533 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05003534 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003535 "protos/perfetto/metrics/android/ion_metric.proto",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08003536 "protos/perfetto/metrics/android/irq_runtime_metric.proto",
Marcin Oczeretko7bde3642022-07-14 17:26:02 +01003537 "protos/perfetto/metrics/android/jank_cuj_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00003538 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00003539 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003540 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00003541 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003542 "protos/perfetto/metrics/android/mem_metric.proto",
3543 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Adam Bookatzd5aa7632021-08-25 16:13:44 -07003544 "protos/perfetto/metrics/android/multiuser_metric.proto",
Luke Change25d2c42021-12-07 16:08:32 +08003545 "protos/perfetto/metrics/android/network_metric.proto",
Daniele Di Proietto0767bff2022-04-05 11:07:15 +01003546 "protos/perfetto/metrics/android/other_traces.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003547 "protos/perfetto/metrics/android/package_list.proto",
3548 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00003549 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01003550 "protos/perfetto/metrics/android/profiler_smaps.proto",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08003551 "protos/perfetto/metrics/android/rt_runtime_metric.proto",
Wiwit Rifa'ia944ed62021-09-29 15:11:18 +08003552 "protos/perfetto/metrics/android/simpleperf.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003553 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01003554 "protos/perfetto/metrics/android/surfaceflinger.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00003555 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01003556 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01003557 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003558 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003559 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003560 visibility = [
3561 PERFETTO_CONFIG.proto_library_visibility,
3562 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003563)
3564
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003565# GN target: //protos/perfetto/metrics/chrome:descriptor
3566perfetto_proto_descriptor(
3567 name = "protos_perfetto_metrics_chrome_descriptor",
3568 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003569 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003570 ],
3571 outs = [
3572 "protos_perfetto_metrics_chrome_descriptor.bin",
3573 ],
3574)
3575
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003576# GN target: //protos/perfetto/metrics/chrome:source_set
3577perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003578 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003579 srcs = [
3580 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Violetta Fedotovaae0f6142022-11-22 12:14:17 +00003581 "protos/perfetto/metrics/chrome/args_class_names.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01003582 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mingjing Zhang309a1c02021-11-04 22:41:40 -04003583 "protos/perfetto/metrics/chrome/dropped_frames.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00003584 "protos/perfetto/metrics/chrome/frame_times.proto",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00003585 "protos/perfetto/metrics/chrome/histogram_hashes.proto",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04003586 "protos/perfetto/metrics/chrome/long_latency.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01003587 "protos/perfetto/metrics/chrome/media_metric.proto",
Igor Kraskevichf7cf8182022-04-04 11:41:28 +00003588 "protos/perfetto/metrics/chrome/performance_mark_hashes.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00003589 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01003590 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Igor Kraskevich1888cff2022-04-07 11:07:37 +00003591 "protos/perfetto/metrics/chrome/slice_names.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003592 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
Dan Elphick08baa102021-09-02 16:06:44 +01003593 "protos/perfetto/metrics/chrome/touch_jank.proto",
Igor Kraskevich92c7c5a2022-06-23 16:24:17 +00003594 "protos/perfetto/metrics/chrome/unsymbolized_args.proto",
Igor Kraskevich32214832022-03-25 13:12:53 +00003595 "protos/perfetto/metrics/chrome/user_event_hashes.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003596 ],
3597 visibility = [
3598 PERFETTO_CONFIG.proto_library_visibility,
3599 ],
3600 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003601 ":protos_perfetto_metrics_android_protos",
3602 ":protos_perfetto_metrics_custom_options_protos",
3603 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003604 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
3605)
3606
3607# GN target: //protos/perfetto/metrics:custom_options_source_set
3608perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003609 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003610 srcs = [
3611 "protos/perfetto/metrics/custom_options.proto",
3612 ],
3613 visibility = [
3614 PERFETTO_CONFIG.proto_library_visibility,
3615 ],
3616 deps = [
3617 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
3618)
3619
Lalit Maganti117272f2020-09-11 14:01:18 +01003620# GN target: //protos/perfetto/metrics:descriptor
3621perfetto_proto_descriptor(
3622 name = "protos_perfetto_metrics_descriptor",
3623 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003624 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01003625 ],
3626 outs = [
3627 "protos_perfetto_metrics_descriptor.bin",
3628 ],
3629)
3630
Lalit Maganti64cd1f62020-09-14 17:44:52 +01003631# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003632perfetto_proto_library(
3633 name = "protos_perfetto_metrics_protos",
3634 srcs = [
3635 "protos/perfetto/metrics/metrics.proto",
3636 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003637 visibility = [
3638 PERFETTO_CONFIG.proto_library_visibility,
3639 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003640 deps = [
3641 ":protos_perfetto_metrics_android_protos",
3642 ],
3643)
3644
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003645# GN target: //protos/perfetto/trace/android:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003646perfetto_proto_library(
3647 name = "protos_perfetto_trace_android_protos",
3648 srcs = [
Andy Yu2e3c9b62022-05-31 11:23:18 -07003649 "protos/perfetto/trace/android/android_game_intervention_list.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003650 "protos/perfetto/trace/android/android_log.proto",
Simon MacMullenf0a6b382022-07-06 16:35:55 +00003651 "protos/perfetto/trace/android/android_system_property.proto",
Michael Eastwoodeb86b892022-01-20 15:59:09 -08003652 "protos/perfetto/trace/android/camera_event.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08003653 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07003654 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003655 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01003656 "protos/perfetto/trace/android/initial_display_state.proto",
Ryan Zuklie1c0a5002022-11-18 17:03:37 -08003657 "protos/perfetto/trace/android/network_trace.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003658 "protos/perfetto/trace/android/packages_list.proto",
3659 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003660 visibility = [
3661 PERFETTO_CONFIG.proto_library_visibility,
3662 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003663 deps = [
3664 ":protos_perfetto_common_protos",
3665 ],
3666)
3667
3668# GN target: //protos/perfetto/trace/android:zero
3669perfetto_cc_protozero_library(
3670 name = "protos_perfetto_trace_android_zero",
3671 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003672 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003673 ":protos_perfetto_trace_android_protos",
3674 ],
3675)
3676
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003677# GN target: //protos/perfetto/trace/chrome:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003678perfetto_proto_library(
3679 name = "protos_perfetto_trace_chrome_protos",
3680 srcs = [
3681 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
3682 "protos/perfetto/trace/chrome/chrome_metadata.proto",
3683 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
3684 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003685 visibility = [
3686 PERFETTO_CONFIG.proto_library_visibility,
3687 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003688)
3689
3690# GN target: //protos/perfetto/trace/chrome:zero
3691perfetto_cc_protozero_library(
3692 name = "protos_perfetto_trace_chrome_zero",
3693 deps = [
3694 ":protos_perfetto_trace_chrome_protos",
3695 ],
3696)
3697
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003698# GN target: //protos/perfetto/trace:descriptor
3699perfetto_proto_descriptor(
3700 name = "protos_perfetto_trace_descriptor",
3701 deps = [
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003702 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003703 ],
3704 outs = [
3705 "protos_perfetto_trace_descriptor.bin",
3706 ],
3707)
3708
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003709# GN target: //protos/perfetto/trace/filesystem:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003710perfetto_proto_library(
3711 name = "protos_perfetto_trace_filesystem_protos",
3712 srcs = [
3713 "protos/perfetto/trace/filesystem/inode_file_map.proto",
3714 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003715 visibility = [
3716 PERFETTO_CONFIG.proto_library_visibility,
3717 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003718)
3719
3720# GN target: //protos/perfetto/trace/filesystem:zero
3721perfetto_cc_protozero_library(
3722 name = "protos_perfetto_trace_filesystem_zero",
3723 deps = [
3724 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003725 ],
3726)
3727
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003728# GN target: //protos/perfetto/trace/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003729perfetto_proto_library(
3730 name = "protos_perfetto_trace_ftrace_protos",
3731 srcs = [
Rahul Dandamudic8169462022-09-11 13:36:37 -04003732 "protos/perfetto/trace/ftrace/android_fs.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003733 "protos/perfetto/trace/ftrace/binder.proto",
3734 "protos/perfetto/trace/ftrace/block.proto",
3735 "protos/perfetto/trace/ftrace/cgroup.proto",
3736 "protos/perfetto/trace/ftrace/clk.proto",
Martin Liu2a4a27f2022-11-11 15:47:47 +08003737 "protos/perfetto/trace/ftrace/cma.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003738 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01003739 "protos/perfetto/trace/ftrace/cpuhp.proto",
Harvey Yangcb9754b2022-02-09 18:13:06 +08003740 "protos/perfetto/trace/ftrace/cros_ec.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003741 "protos/perfetto/trace/ftrace/dma_fence.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07003742 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00003743 "protos/perfetto/trace/ftrace/dpu.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003744 "protos/perfetto/trace/ftrace/drm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003745 "protos/perfetto/trace/ftrace/ext4.proto",
3746 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01003747 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003748 "protos/perfetto/trace/ftrace/fence.proto",
3749 "protos/perfetto/trace/ftrace/filemap.proto",
3750 "protos/perfetto/trace/ftrace/ftrace.proto",
3751 "protos/perfetto/trace/ftrace/ftrace_event.proto",
3752 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
3753 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00003754 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003755 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07003756 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Chia-I Wu56619782022-03-28 16:02:01 -07003757 "protos/perfetto/trace/ftrace/gpu_scheduler.proto",
Nikita Ioffe02035142023-03-02 16:57:35 +00003758 "protos/perfetto/trace/ftrace/hyp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003759 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01003760 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003761 "protos/perfetto/trace/ftrace/ipi.proto",
3762 "protos/perfetto/trace/ftrace/irq.proto",
3763 "protos/perfetto/trace/ftrace/kmem.proto",
Primiano Tuccif954f862022-03-04 13:58:18 +00003764 "protos/perfetto/trace/ftrace/kvm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003765 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Nick Chung8f4dd962022-12-14 12:08:07 +00003766 "protos/perfetto/trace/ftrace/lwis.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00003767 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003768 "protos/perfetto/trace/ftrace/mdss.proto",
3769 "protos/perfetto/trace/ftrace/mm_event.proto",
Luke Chang496f94a2021-12-03 17:13:00 +08003770 "protos/perfetto/trace/ftrace/net.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003771 "protos/perfetto/trace/ftrace/oom.proto",
Jeremy DeHaan57d8b862022-09-02 22:08:43 +00003772 "protos/perfetto/trace/ftrace/panel.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003773 "protos/perfetto/trace/ftrace/power.proto",
Hector Dearmanae5a60e2022-03-30 19:30:43 +01003774 "protos/perfetto/trace/ftrace/printk.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003775 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
3776 "protos/perfetto/trace/ftrace/regulator.proto",
3777 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01003778 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00003779 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003780 "protos/perfetto/trace/ftrace/signal.proto",
Luke Changd041e6e2022-02-25 13:24:42 +08003781 "protos/perfetto/trace/ftrace/skb.proto",
Luke Chang1b904072022-01-26 09:33:19 +08003782 "protos/perfetto/trace/ftrace/sock.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003783 "protos/perfetto/trace/ftrace/sync.proto",
Kalesh Singh84f62e42021-11-15 19:01:23 -08003784 "protos/perfetto/trace/ftrace/synthetic.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003785 "protos/perfetto/trace/ftrace/systrace.proto",
3786 "protos/perfetto/trace/ftrace/task.proto",
Luke Chang4eb23ab2022-01-27 16:31:46 +08003787 "protos/perfetto/trace/ftrace/tcp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003788 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01003789 "protos/perfetto/trace/ftrace/thermal.proto",
Padmanabha V0e45bba2022-10-20 05:26:21 +00003790 "protos/perfetto/trace/ftrace/trusty.proto",
YH Linbce42862022-03-15 02:45:18 +08003791 "protos/perfetto/trace/ftrace/ufs.proto",
Bartłomiej Grzesik6b257532022-08-08 09:34:15 +00003792 "protos/perfetto/trace/ftrace/v4l2.proto",
Rob Clark50b20aa2022-11-29 14:24:18 -08003793 "protos/perfetto/trace/ftrace/virtio_gpu.proto",
Bartłomiej Grzesikfa4c9c92022-10-03 11:12:18 +00003794 "protos/perfetto/trace/ftrace/virtio_video.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003795 "protos/perfetto/trace/ftrace/vmscan.proto",
3796 "protos/perfetto/trace/ftrace/workqueue.proto",
3797 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003798 visibility = [
3799 PERFETTO_CONFIG.proto_library_visibility,
3800 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003801)
3802
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003803# GN target: //protos/perfetto/trace/ftrace:zero
3804perfetto_cc_protozero_library(
3805 name = "protos_perfetto_trace_ftrace_zero",
3806 deps = [
3807 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003808 ],
3809)
3810
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003811# GN target: //protos/perfetto/trace/gpu:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003812perfetto_proto_library(
3813 name = "protos_perfetto_trace_gpu_protos",
3814 srcs = [
3815 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07003816 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003817 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08003818 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003819 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
3820 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003821 visibility = [
3822 PERFETTO_CONFIG.proto_library_visibility,
3823 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003824 deps = [
3825 ":protos_perfetto_common_protos",
3826 ],
3827)
3828
3829# GN target: //protos/perfetto/trace/gpu:zero
3830perfetto_cc_protozero_library(
3831 name = "protos_perfetto_trace_gpu_zero",
3832 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003833 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003834 ":protos_perfetto_trace_gpu_protos",
3835 ],
3836)
3837
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003838# GN target: //protos/perfetto/trace/interned_data:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003839perfetto_proto_library(
3840 name = "protos_perfetto_trace_interned_data_protos",
3841 srcs = [
3842 "protos/perfetto/trace/interned_data/interned_data.proto",
3843 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003844 visibility = [
3845 PERFETTO_CONFIG.proto_library_visibility,
3846 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003847 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07003848 ":protos_perfetto_common_protos",
Ryan Zukliefdb6c8c2023-03-02 07:12:49 -08003849 ":protos_perfetto_trace_android_protos",
Raymond Chiu37532e62020-04-06 16:15:48 -07003850 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003851 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003852 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003853 ],
3854)
3855
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003856# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01003857perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003858 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003859 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003860 ":protos_perfetto_common_zero",
Ryan Zukliefdb6c8c2023-03-02 07:12:49 -08003861 ":protos_perfetto_trace_android_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003862 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003863 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003864 ":protos_perfetto_trace_profiling_zero",
3865 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003866 ],
3867)
3868
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003869# GN target: //protos/perfetto/trace:minimal_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003870perfetto_proto_library(
3871 name = "protos_perfetto_trace_minimal_protos",
3872 srcs = [
3873 "protos/perfetto/trace/clock_snapshot.proto",
3874 "protos/perfetto/trace/system_info.proto",
Primiano Tucci7c327c22022-11-23 12:24:49 +00003875 "protos/perfetto/trace/trace_uuid.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003876 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003877 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003878 visibility = [
3879 PERFETTO_CONFIG.proto_library_visibility,
3880 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003881 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003882 ":protos_perfetto_common_protos",
3883 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003884 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003885 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003886 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003887 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003888 ":protos_perfetto_config_power_protos",
3889 ":protos_perfetto_config_process_stats_protos",
3890 ":protos_perfetto_config_profiling_protos",
3891 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003892 ":protos_perfetto_config_statsd_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003893 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003894 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003895 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003896 ],
3897)
3898
3899# GN target: //protos/perfetto/trace:minimal_zero
3900perfetto_cc_protozero_library(
3901 name = "protos_perfetto_trace_minimal_zero",
3902 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003903 ":protos_perfetto_common_zero",
3904 ":protos_perfetto_config_android_zero",
3905 ":protos_perfetto_config_ftrace_zero",
3906 ":protos_perfetto_config_gpu_zero",
3907 ":protos_perfetto_config_inode_file_zero",
3908 ":protos_perfetto_config_interceptors_zero",
3909 ":protos_perfetto_config_power_zero",
3910 ":protos_perfetto_config_process_stats_zero",
3911 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01003912 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003913 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01003914 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003915 ":protos_perfetto_config_track_event_zero",
3916 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003917 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003918 ],
3919)
3920
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003921# GN target: //protos/perfetto/trace:non_minimal_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003922perfetto_proto_library(
3923 name = "protos_perfetto_trace_non_minimal_protos",
3924 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01003925 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02003926 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003927 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00003928 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003929 "protos/perfetto/trace/trace.proto",
3930 "protos/perfetto/trace/trace_packet.proto",
3931 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01003932 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003933 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003934 visibility = [
3935 PERFETTO_CONFIG.proto_library_visibility,
3936 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003937 deps = [
3938 ":protos_perfetto_common_protos",
3939 ":protos_perfetto_config_android_protos",
3940 ":protos_perfetto_config_ftrace_protos",
3941 ":protos_perfetto_config_gpu_protos",
3942 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003943 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003944 ":protos_perfetto_config_power_protos",
3945 ":protos_perfetto_config_process_stats_protos",
3946 ":protos_perfetto_config_profiling_protos",
3947 ":protos_perfetto_config_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003948 ":protos_perfetto_config_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003949 ":protos_perfetto_config_sys_stats_protos",
Hector Dearman48047d12022-08-02 14:00:46 +01003950 ":protos_perfetto_config_system_info_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003951 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003952 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003953 ":protos_perfetto_trace_chrome_protos",
3954 ":protos_perfetto_trace_filesystem_protos",
3955 ":protos_perfetto_trace_ftrace_protos",
3956 ":protos_perfetto_trace_gpu_protos",
3957 ":protos_perfetto_trace_interned_data_protos",
3958 ":protos_perfetto_trace_minimal_protos",
3959 ":protos_perfetto_trace_perfetto_protos",
3960 ":protos_perfetto_trace_power_protos",
3961 ":protos_perfetto_trace_profiling_protos",
3962 ":protos_perfetto_trace_ps_protos",
Hector Dearman5974de02022-06-23 15:31:40 +01003963 ":protos_perfetto_trace_statsd_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003964 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003965 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003966 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003967 ":protos_perfetto_trace_translation_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003968 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00003969 exports = [
3970 ":protos_perfetto_trace_track_event_protos",
3971 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003972)
3973
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003974# GN target: //protos/perfetto/trace:non_minimal_zero
3975perfetto_cc_protozero_library(
3976 name = "protos_perfetto_trace_non_minimal_zero",
3977 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003978 ":protos_perfetto_common_zero",
3979 ":protos_perfetto_config_android_zero",
3980 ":protos_perfetto_config_ftrace_zero",
3981 ":protos_perfetto_config_gpu_zero",
3982 ":protos_perfetto_config_inode_file_zero",
3983 ":protos_perfetto_config_interceptors_zero",
3984 ":protos_perfetto_config_power_zero",
3985 ":protos_perfetto_config_process_stats_zero",
3986 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01003987 ":protos_perfetto_config_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003988 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01003989 ":protos_perfetto_config_system_info_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01003990 ":protos_perfetto_config_track_event_zero",
3991 ":protos_perfetto_config_zero",
3992 ":protos_perfetto_trace_android_zero",
3993 ":protos_perfetto_trace_chrome_zero",
3994 ":protos_perfetto_trace_filesystem_zero",
3995 ":protos_perfetto_trace_ftrace_zero",
3996 ":protos_perfetto_trace_gpu_zero",
3997 ":protos_perfetto_trace_interned_data_zero",
3998 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003999 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01004000 ":protos_perfetto_trace_perfetto_zero",
4001 ":protos_perfetto_trace_power_zero",
4002 ":protos_perfetto_trace_profiling_zero",
4003 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004004 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti25b59732021-04-20 16:18:32 +01004005 ":protos_perfetto_trace_sys_stats_zero",
4006 ":protos_perfetto_trace_system_info_zero",
4007 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004008 ":protos_perfetto_trace_translation_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004009 ],
4010)
4011
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004012# GN target: //protos/perfetto/trace/perfetto:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004013perfetto_proto_library(
4014 name = "protos_perfetto_trace_perfetto_protos",
4015 srcs = [
4016 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01004017 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004018 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004019 visibility = [
4020 PERFETTO_CONFIG.proto_library_visibility,
4021 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004022)
4023
4024# GN target: //protos/perfetto/trace/perfetto:zero
4025perfetto_cc_protozero_library(
4026 name = "protos_perfetto_trace_perfetto_zero",
4027 deps = [
4028 ":protos_perfetto_trace_perfetto_protos",
4029 ],
4030)
4031
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004032# GN target: //protos/perfetto/trace/power:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004033perfetto_proto_library(
4034 name = "protos_perfetto_trace_power_protos",
4035 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08004036 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Simon MacMullen1777bde2023-02-17 14:54:01 +00004037 "protos/perfetto/trace/power/android_entity_state_residency.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004038 "protos/perfetto/trace/power/battery_counters.proto",
4039 "protos/perfetto/trace/power/power_rails.proto",
4040 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004041 visibility = [
4042 PERFETTO_CONFIG.proto_library_visibility,
4043 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08004044 deps = [
4045 ":protos_perfetto_common_protos",
4046 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004047)
4048
4049# GN target: //protos/perfetto/trace/power:zero
4050perfetto_cc_protozero_library(
4051 name = "protos_perfetto_trace_power_zero",
4052 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004053 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004054 ":protos_perfetto_trace_power_protos",
4055 ],
4056)
4057
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004058# GN target: //protos/perfetto/trace_processor:metrics_impl_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004059perfetto_proto_library(
4060 name = "protos_perfetto_trace_processor_metrics_impl_protos",
4061 srcs = [
4062 "protos/perfetto/trace_processor/metrics_impl.proto",
4063 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004064 visibility = [
4065 PERFETTO_CONFIG.proto_library_visibility,
4066 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004067)
4068
4069# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
4070perfetto_cc_protozero_library(
4071 name = "protos_perfetto_trace_processor_metrics_impl_zero",
4072 deps = [
4073 ":protos_perfetto_trace_processor_metrics_impl_protos",
4074 ],
4075)
4076
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004077# GN target: //protos/perfetto/trace_processor:source_set
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004078perfetto_proto_library(
4079 name = "protos_perfetto_trace_processor_protos",
4080 srcs = [
Lalit Magantiba9e1bf2023-02-13 16:40:46 +00004081 "protos/perfetto/trace_processor/cloud_trace_processor.proto",
Alexander Timinb5102912022-10-12 22:18:35 +01004082 "protos/perfetto/trace_processor/metatrace_categories.proto",
Carlos Caballero Grolimundea547992023-03-08 11:41:31 +00004083 "protos/perfetto/trace_processor/stack.proto",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004084 "protos/perfetto/trace_processor/trace_processor.proto",
4085 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004086 visibility = [
4087 PERFETTO_CONFIG.proto_library_visibility,
4088 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04004089 deps = [
4090 ":protos_perfetto_common_protos",
4091 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004092)
4093
4094# GN target: //protos/perfetto/trace_processor:zero
4095perfetto_cc_protozero_library(
4096 name = "protos_perfetto_trace_processor_zero",
4097 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004098 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004099 ":protos_perfetto_trace_processor_protos",
4100 ],
4101)
4102
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004103# GN target: //protos/perfetto/trace/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004104perfetto_proto_library(
4105 name = "protos_perfetto_trace_profiling_protos",
4106 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01004107 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004108 "protos/perfetto/trace/profiling/heap_graph.proto",
4109 "protos/perfetto/trace/profiling/profile_common.proto",
4110 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02004111 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004112 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004113 visibility = [
4114 PERFETTO_CONFIG.proto_library_visibility,
4115 ],
Ryan Savitski45517322021-03-09 16:38:19 +00004116 deps = [
4117 ":protos_perfetto_common_protos",
4118 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004119)
4120
4121# GN target: //protos/perfetto/trace/profiling:zero
4122perfetto_cc_protozero_library(
4123 name = "protos_perfetto_trace_profiling_zero",
4124 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004125 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004126 ":protos_perfetto_trace_profiling_protos",
4127 ],
4128)
4129
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004130# GN target: //protos/perfetto/trace/ps:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004131perfetto_proto_library(
4132 name = "protos_perfetto_trace_ps_protos",
4133 srcs = [
4134 "protos/perfetto/trace/ps/process_stats.proto",
4135 "protos/perfetto/trace/ps/process_tree.proto",
4136 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004137 visibility = [
4138 PERFETTO_CONFIG.proto_library_visibility,
4139 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004140)
4141
4142# GN target: //protos/perfetto/trace/ps:zero
4143perfetto_cc_protozero_library(
4144 name = "protos_perfetto_trace_ps_zero",
4145 deps = [
4146 ":protos_perfetto_trace_ps_protos",
4147 ],
4148)
4149
Hector Dearman09db5b02022-07-11 13:35:23 +01004150# GN target: //protos/perfetto/trace/statsd:cpp
4151perfetto_cc_protocpp_library(
4152 name = "protos_perfetto_trace_statsd_cpp",
4153 deps = [
4154 ":protos_perfetto_common_cpp",
4155 ":protos_perfetto_trace_statsd_protos",
4156 ],
4157)
4158
Hector Dearman5974de02022-06-23 15:31:40 +01004159# GN target: //protos/perfetto/trace/statsd:source_set
4160perfetto_proto_library(
4161 name = "protos_perfetto_trace_statsd_protos",
4162 srcs = [
4163 "protos/perfetto/trace/statsd/statsd_atom.proto",
4164 ],
4165 visibility = [
4166 PERFETTO_CONFIG.proto_library_visibility,
4167 ],
4168 deps = [
4169 ":protos_perfetto_common_protos",
4170 ],
4171)
4172
4173# GN target: //protos/perfetto/trace/statsd:zero
4174perfetto_cc_protozero_library(
4175 name = "protos_perfetto_trace_statsd_zero",
4176 deps = [
4177 ":protos_perfetto_common_zero",
4178 ":protos_perfetto_trace_statsd_protos",
4179 ],
4180)
4181
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004182# GN target: //protos/perfetto/trace/sys_stats:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004183perfetto_proto_library(
4184 name = "protos_perfetto_trace_sys_stats_protos",
4185 srcs = [
4186 "protos/perfetto/trace/sys_stats/sys_stats.proto",
4187 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004188 visibility = [
4189 PERFETTO_CONFIG.proto_library_visibility,
4190 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004191 deps = [
4192 ":protos_perfetto_common_protos",
4193 ],
4194)
4195
4196# GN target: //protos/perfetto/trace/sys_stats:zero
4197perfetto_cc_protozero_library(
4198 name = "protos_perfetto_trace_sys_stats_zero",
4199 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01004200 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004201 ":protos_perfetto_trace_sys_stats_protos",
4202 ],
4203)
4204
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004205# GN target: //protos/perfetto/trace/system_info:source_set
Rafal Slawikb013a112020-04-03 16:12:02 +01004206perfetto_proto_library(
4207 name = "protos_perfetto_trace_system_info_protos",
4208 srcs = [
4209 "protos/perfetto/trace/system_info/cpu_info.proto",
4210 ],
4211 visibility = [
4212 PERFETTO_CONFIG.proto_library_visibility,
4213 ],
4214)
4215
4216# GN target: //protos/perfetto/trace/system_info:zero
4217perfetto_cc_protozero_library(
4218 name = "protos_perfetto_trace_system_info_zero",
4219 deps = [
4220 ":protos_perfetto_trace_system_info_protos",
4221 ],
4222)
4223
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004224# GN target: //protos/perfetto/trace/track_event:cpp
4225perfetto_cc_protocpp_library(
4226 name = "protos_perfetto_trace_track_event_cpp",
4227 deps = [
4228 ":protos_perfetto_trace_track_event_protos",
4229 ],
4230)
4231
Lalit Magantic21a4a82022-02-15 16:08:46 +00004232# GN target: //protos/perfetto/trace/track_event:descriptor
4233perfetto_proto_descriptor(
4234 name = "protos_perfetto_trace_track_event_descriptor",
4235 deps = [
4236 ":protos_perfetto_trace_track_event_protos",
4237 ],
4238 outs = [
4239 "protos_perfetto_trace_track_event_descriptor.bin",
4240 ],
4241)
4242
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004243# GN target: //protos/perfetto/trace/track_event:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004244perfetto_proto_library(
4245 name = "protos_perfetto_trace_track_event_protos",
4246 srcs = [
Igor Kraskevichebf48602022-10-25 10:28:36 +00004247 "protos/perfetto/trace/track_event/chrome_active_processes.proto",
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08004248 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00004249 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08004250 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04004251 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08004252 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004253 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00004254 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004255 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07004256 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07004257 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00004258 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01004259 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00004260 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00004261 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07004262 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00004263 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004264 "protos/perfetto/trace/track_event/debug_annotation.proto",
4265 "protos/perfetto/trace/track_event/log_message.proto",
4266 "protos/perfetto/trace/track_event/process_descriptor.proto",
Igor Kraskevich49756332022-12-01 18:05:57 +00004267 "protos/perfetto/trace/track_event/range_of_interest.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004268 "protos/perfetto/trace/track_event/source_location.proto",
4269 "protos/perfetto/trace/track_event/task_execution.proto",
4270 "protos/perfetto/trace/track_event/thread_descriptor.proto",
4271 "protos/perfetto/trace/track_event/track_descriptor.proto",
4272 "protos/perfetto/trace/track_event/track_event.proto",
4273 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004274 visibility = [
4275 PERFETTO_CONFIG.proto_library_visibility,
4276 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004277)
4278
4279# GN target: //protos/perfetto/trace/track_event:zero
4280perfetto_cc_protozero_library(
4281 name = "protos_perfetto_trace_track_event_zero",
4282 deps = [
4283 ":protos_perfetto_trace_track_event_protos",
4284 ],
4285)
4286
Igor Kraskevich49b42882022-03-21 13:03:02 +00004287# GN target: //protos/perfetto/trace/translation:source_set
4288perfetto_proto_library(
4289 name = "protos_perfetto_trace_translation_protos",
4290 srcs = [
4291 "protos/perfetto/trace/translation/translation_table.proto",
4292 ],
4293 visibility = [
4294 PERFETTO_CONFIG.proto_library_visibility,
4295 ],
4296)
4297
4298# GN target: //protos/perfetto/trace/translation:zero
4299perfetto_cc_protozero_library(
4300 name = "protos_perfetto_trace_translation_zero",
4301 deps = [
4302 ":protos_perfetto_trace_translation_protos",
4303 ],
4304)
4305
Lalit Magantic21a4a82022-02-15 16:08:46 +00004306# GN target: //protos/third_party/chromium:descriptor
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004307perfetto_proto_descriptor(
Lalit Magantic21a4a82022-02-15 16:08:46 +00004308 name = "protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004309 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00004310 ":protos_third_party_chromium_protos",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004311 ],
4312 outs = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00004313 "protos_third_party_chromium_descriptor.bin",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004314 ],
4315)
4316
Lalit Magantic21a4a82022-02-15 16:08:46 +00004317# GN target: //protos/third_party/chromium:source_set
ssid3d81d4d2021-06-21 16:08:02 -07004318perfetto_proto_library(
4319 name = "protos_third_party_chromium_protos",
4320 srcs = [
4321 "protos/third_party/chromium/chrome_track_event.proto",
4322 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00004323 visibility = [
4324 PERFETTO_CONFIG.proto_library_visibility,
4325 ],
ssid3d81d4d2021-06-21 16:08:02 -07004326 deps = [
4327 ":protos_perfetto_trace_track_event_protos",
4328 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00004329 exports = [
4330 ":protos_perfetto_trace_track_event_protos",
4331 ],
ssid3d81d4d2021-06-21 16:08:02 -07004332)
4333
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004334# GN target: //protos/third_party/pprof:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004335perfetto_proto_library(
4336 name = "protos_third_party_pprof_protos",
4337 srcs = [
4338 "protos/third_party/pprof/profile.proto",
4339 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004340 visibility = [
4341 PERFETTO_CONFIG.proto_library_visibility,
4342 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004343)
4344
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004345# GN target: //protos/third_party/pprof:zero
4346perfetto_cc_protozero_library(
4347 name = "protos_third_party_pprof_zero",
4348 deps = [
4349 ":protos_third_party_pprof_protos",
4350 ],
4351)
4352
Hector Dearman09db5b02022-07-11 13:35:23 +01004353# GN target: //protos/third_party/statsd:config_source_set
4354perfetto_proto_library(
4355 name = "protos_third_party_statsd_config_protos",
4356 srcs = [
4357 "protos/third_party/statsd/shell_config.proto",
4358 ],
4359 visibility = [
4360 PERFETTO_CONFIG.proto_library_visibility,
4361 ],
4362)
4363
4364# GN target: //protos/third_party/statsd:config_zero
4365perfetto_cc_protozero_library(
4366 name = "protos_third_party_statsd_config_zero",
4367 deps = [
4368 ":protos_third_party_statsd_config_protos",
4369 ],
4370)
4371
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004372# GN target: //src/perfetto_cmd:protos_cpp
Hector Dearman040f9582019-12-03 18:06:33 +00004373perfetto_cc_protocpp_library(
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004374 name = "src_perfetto_cmd_protos_cpp",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004375 deps = [
4376 ":src_perfetto_cmd_protos_protos",
4377 ],
4378)
4379
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004380# GN target: //src/perfetto_cmd:protos_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004381perfetto_proto_library(
4382 name = "src_perfetto_cmd_protos_protos",
4383 srcs = [
4384 "src/perfetto_cmd/perfetto_cmd_state.proto",
4385 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00004386 visibility = [
4387 PERFETTO_CONFIG.proto_library_visibility,
4388 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004389)
4390
Primiano Tucci1d409982019-09-19 10:15:18 +01004391# ##############################################################################
4392# Public targets
4393# ##############################################################################
4394
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004395# GN target: //:libperfetto_client_experimental
4396perfetto_cc_library(
4397 name = "libperfetto_client_experimental",
4398 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00004399 ":src_android_stats_android_stats",
4400 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01004401 ":src_protozero_filtering_bytecode_common",
4402 ":src_protozero_filtering_bytecode_parser",
4403 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00004404 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004405 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004406 ":src_tracing_core_core",
4407 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00004408 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004409 ":src_tracing_ipc_common",
4410 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00004411 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004412 ":src_tracing_ipc_producer_producer",
4413 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01004414 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00004415 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004416 ],
4417 hdrs = [
4418 ":include_perfetto_base_base",
4419 ":include_perfetto_ext_base_base",
4420 ":include_perfetto_ext_ipc_ipc",
4421 ":include_perfetto_ext_tracing_core_core",
4422 ":include_perfetto_ext_tracing_ipc_ipc",
4423 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004424 ":include_perfetto_public_abi_base",
4425 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004426 ":include_perfetto_public_protozero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004427 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00004428 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004429 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00004430 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004431 ],
4432 visibility = [
4433 "//visibility:public",
4434 ],
4435 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02004436 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004437 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004438 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004439 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004440 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004441 ":protos_perfetto_config_cpp",
4442 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004443 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004444 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004445 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004446 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004447 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004448 ":protos_perfetto_config_interceptors_cpp",
4449 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004450 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004451 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004452 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004453 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004454 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004455 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004456 ":protos_perfetto_config_statsd_cpp",
4457 ":protos_perfetto_config_statsd_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01004458 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004459 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004460 ":protos_perfetto_config_system_info_cpp",
4461 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004462 ":protos_perfetto_config_track_event_cpp",
4463 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004464 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004465 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004466 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004467 ":protos_perfetto_trace_android_zero",
4468 ":protos_perfetto_trace_chrome_zero",
4469 ":protos_perfetto_trace_filesystem_zero",
4470 ":protos_perfetto_trace_ftrace_zero",
4471 ":protos_perfetto_trace_gpu_zero",
4472 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004473 ":protos_perfetto_trace_minimal_zero",
4474 ":protos_perfetto_trace_non_minimal_zero",
4475 ":protos_perfetto_trace_perfetto_zero",
4476 ":protos_perfetto_trace_power_zero",
4477 ":protos_perfetto_trace_profiling_zero",
4478 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004479 ":protos_perfetto_trace_statsd_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004480 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004481 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004482 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004483 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004484 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004485 ":protozero",
4486 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004487 ":src_base_version",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004488 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00004489 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07004490)
4491
Primiano Tucci1d409982019-09-19 10:15:18 +01004492# GN target: //src/perfetto_cmd:perfetto
4493perfetto_cc_binary(
4494 name = "perfetto",
4495 srcs = [
4496 ":include_perfetto_base_base",
4497 ":include_perfetto_ext_base_base",
4498 ":include_perfetto_ext_ipc_ipc",
4499 ":include_perfetto_ext_traced_traced",
4500 ":include_perfetto_ext_tracing_core_core",
4501 ":include_perfetto_ext_tracing_ipc_ipc",
4502 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004503 ":include_perfetto_public_abi_base",
4504 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004505 ":include_perfetto_public_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +01004506 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00004507 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01004508 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00004509 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00004510 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01004511 ":src_perfetto_cmd_perfetto_cmd",
4512 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01004513 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004514 ":src_tracing_core_core",
4515 ":src_tracing_ipc_common",
4516 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00004517 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00004518 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01004519 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01004520 ],
4521 visibility = [
4522 "//visibility:public",
4523 ],
4524 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02004525 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004526 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004527 ":protos_perfetto_common_zero",
4528 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004529 ":protos_perfetto_config_android_zero",
4530 ":protos_perfetto_config_cpp",
4531 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004532 ":protos_perfetto_config_ftrace_zero",
4533 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004534 ":protos_perfetto_config_gpu_zero",
4535 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004536 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004537 ":protos_perfetto_config_interceptors_cpp",
4538 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004539 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004540 ":protos_perfetto_config_power_zero",
4541 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004542 ":protos_perfetto_config_process_stats_zero",
4543 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004544 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004545 ":protos_perfetto_config_statsd_cpp",
4546 ":protos_perfetto_config_statsd_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004547 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004548 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004549 ":protos_perfetto_config_system_info_cpp",
4550 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004551 ":protos_perfetto_config_track_event_cpp",
4552 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004553 ":protos_perfetto_config_zero",
4554 ":protos_perfetto_ipc_cpp",
4555 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004556 ":protos_perfetto_trace_android_zero",
4557 ":protos_perfetto_trace_chrome_zero",
4558 ":protos_perfetto_trace_filesystem_zero",
4559 ":protos_perfetto_trace_ftrace_zero",
4560 ":protos_perfetto_trace_gpu_zero",
4561 ":protos_perfetto_trace_interned_data_zero",
4562 ":protos_perfetto_trace_minimal_zero",
4563 ":protos_perfetto_trace_non_minimal_zero",
4564 ":protos_perfetto_trace_perfetto_zero",
4565 ":protos_perfetto_trace_power_zero",
4566 ":protos_perfetto_trace_profiling_zero",
4567 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004568 ":protos_perfetto_trace_statsd_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004569 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004570 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01004571 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004572 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004573 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004574 ":protozero",
4575 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004576 ":src_base_version",
Lalit Maganti2939c082021-03-11 17:25:44 +00004577 ":src_perfetto_cmd_gen_cc_config_descriptor",
Lalit Maganti79d70fe2022-02-15 18:31:09 +00004578 ":src_perfetto_cmd_protos_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00004579 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01004580)
4581
4582# GN target: //src/trace_processor:trace_processor
4583perfetto_cc_library(
4584 name = "trace_processor",
4585 srcs = [
Ryan Zuklieec18eb32022-07-25 15:51:59 -07004586 ":src_kernel_utils_syscall_table",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004587 ":src_trace_processor_db_db",
Lalit Maganti3927af82022-05-09 20:23:40 +01004588 ":src_trace_processor_dynamic_dynamic",
Eric Secklera7870e62019-11-01 10:11:58 +00004589 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004590 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004591 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00004592 ":src_trace_processor_importers_common_parser_types",
4593 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004594 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
4595 ":src_trace_processor_importers_ftrace_full",
4596 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00004597 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00004598 ":src_trace_processor_importers_fuchsia_full",
4599 ":src_trace_processor_importers_fuchsia_minimal",
4600 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004601 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004602 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004603 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004604 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00004605 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004606 ":src_trace_processor_importers_proto_full",
4607 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00004608 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004609 ":src_trace_processor_importers_proto_proto_importer_module",
4610 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004611 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00004612 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004613 ":src_trace_processor_importers_systrace_systrace_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01004614 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004615 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004616 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00004617 ":src_trace_processor_prelude_functions_functions",
4618 ":src_trace_processor_prelude_operators_operators",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00004619 ":src_trace_processor_sorter_sorter",
Primiano Tucci1d409982019-09-19 10:15:18 +01004620 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01004621 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004622 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004623 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004624 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00004625 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004626 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00004627 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01004628 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01004629 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004630 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004631 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004632 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004633 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004634 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004635 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00004636 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004637 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00004638 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01004639 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004640 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01004641 ":src_trace_processor_views_views",
Primiano Tucci1d409982019-09-19 10:15:18 +01004642 ],
4643 hdrs = [
4644 ":include_perfetto_base_base",
4645 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004646 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01004647 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004648 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01004649 ":include_perfetto_ext_traced_sys_stats_counters",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004650 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004651 ":include_perfetto_public_abi_base",
4652 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004653 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004654 ":include_perfetto_trace_processor_basic_types",
4655 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004656 ":include_perfetto_trace_processor_trace_processor",
4657 ],
4658 visibility = [
4659 "//visibility:public",
4660 ],
4661 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004662 ":protos_perfetto_common_zero",
4663 ":protos_perfetto_config_android_zero",
4664 ":protos_perfetto_config_ftrace_zero",
4665 ":protos_perfetto_config_gpu_zero",
4666 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004667 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004668 ":protos_perfetto_config_power_zero",
4669 ":protos_perfetto_config_process_stats_zero",
4670 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004671 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004672 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004673 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004674 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004675 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004676 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004677 ":protos_perfetto_trace_chrome_zero",
4678 ":protos_perfetto_trace_filesystem_zero",
4679 ":protos_perfetto_trace_ftrace_zero",
4680 ":protos_perfetto_trace_gpu_zero",
4681 ":protos_perfetto_trace_interned_data_zero",
4682 ":protos_perfetto_trace_minimal_zero",
4683 ":protos_perfetto_trace_non_minimal_zero",
4684 ":protos_perfetto_trace_perfetto_zero",
4685 ":protos_perfetto_trace_power_zero",
4686 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04004687 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004688 ":protos_perfetto_trace_profiling_zero",
4689 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004690 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004691 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004692 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004693 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004694 ":protos_perfetto_trace_translation_zero",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004695 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004696 ":protozero",
4697 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004698 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00004699 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
4700 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004701 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004702 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00004703 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004704 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004705 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004706 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
4707 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Lalit Maganti65600342019-09-19 21:35:35 +01004708 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01004709 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004710 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00004711 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00004712 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Magantif9c004d2020-01-06 14:44:34 +00004713 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01004714)
4715
4716# GN target: //src/trace_processor:trace_processor_shell
4717perfetto_cc_binary(
4718 name = "trace_processor_shell",
4719 srcs = [
4720 ":include_perfetto_base_base",
4721 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004722 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01004723 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004724 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01004725 ":include_perfetto_ext_traced_sys_stats_counters",
4726 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004727 ":include_perfetto_public_abi_base",
4728 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004729 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004730 ":include_perfetto_trace_processor_basic_types",
4731 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004732 ":include_perfetto_trace_processor_trace_processor",
Ryan Zuklieec18eb32022-07-25 15:51:59 -07004733 ":src_kernel_utils_syscall_table",
Florian Mayerf4255a42020-12-14 19:12:34 +00004734 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00004735 ":src_profiling_symbolizer_symbolize_database",
4736 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01004737 ":src_protozero_proto_ring_buffer",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004738 ":src_trace_processor_db_db",
Lalit Maganti3927af82022-05-09 20:23:40 +01004739 ":src_trace_processor_dynamic_dynamic",
Eric Secklera7870e62019-11-01 10:11:58 +00004740 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004741 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004742 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00004743 ":src_trace_processor_importers_common_parser_types",
4744 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004745 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
4746 ":src_trace_processor_importers_ftrace_full",
4747 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00004748 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00004749 ":src_trace_processor_importers_fuchsia_full",
4750 ":src_trace_processor_importers_fuchsia_minimal",
4751 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004752 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004753 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004754 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004755 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00004756 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004757 ":src_trace_processor_importers_proto_full",
4758 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00004759 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004760 ":src_trace_processor_importers_proto_proto_importer_module",
4761 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004762 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00004763 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004764 ":src_trace_processor_importers_systrace_systrace_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01004765 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004766 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004767 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00004768 ":src_trace_processor_prelude_functions_functions",
4769 ":src_trace_processor_prelude_operators_operators",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004770 ":src_trace_processor_rpc_httpd",
4771 ":src_trace_processor_rpc_rpc",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00004772 ":src_trace_processor_sorter_sorter",
Primiano Tucci1d409982019-09-19 10:15:18 +01004773 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01004774 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004775 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004776 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01004777 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00004778 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004779 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00004780 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01004781 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01004782 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004783 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004784 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004785 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004786 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004787 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004788 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00004789 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004790 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00004791 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01004792 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004793 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01004794 ":src_trace_processor_views_views",
Primiano Tucci34bc5592021-02-19 17:53:36 +01004795 "src/trace_processor/trace_processor_shell.cc",
4796 "src/trace_processor/util/proto_to_json.cc",
4797 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01004798 ],
4799 visibility = [
4800 "//visibility:public",
4801 ],
4802 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004803 ":protos_perfetto_common_zero",
4804 ":protos_perfetto_config_android_zero",
4805 ":protos_perfetto_config_ftrace_zero",
4806 ":protos_perfetto_config_gpu_zero",
4807 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004808 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004809 ":protos_perfetto_config_power_zero",
4810 ":protos_perfetto_config_process_stats_zero",
4811 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004812 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004813 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004814 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004815 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004816 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004817 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004818 ":protos_perfetto_trace_chrome_zero",
4819 ":protos_perfetto_trace_filesystem_zero",
4820 ":protos_perfetto_trace_ftrace_zero",
4821 ":protos_perfetto_trace_gpu_zero",
4822 ":protos_perfetto_trace_interned_data_zero",
4823 ":protos_perfetto_trace_minimal_zero",
4824 ":protos_perfetto_trace_non_minimal_zero",
4825 ":protos_perfetto_trace_perfetto_zero",
4826 ":protos_perfetto_trace_power_zero",
4827 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01004828 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004829 ":protos_perfetto_trace_profiling_zero",
4830 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004831 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004832 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004833 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004834 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004835 ":protos_perfetto_trace_translation_zero",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004836 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004837 ":protozero",
4838 ":src_base_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +00004839 ":src_base_http_http",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01004840 ":src_base_version",
Ryan7ad6b7d2021-04-22 17:03:54 +01004841 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00004842 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
4843 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004844 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004845 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00004846 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004847 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004848 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00004849 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
4850 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004851 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01004852 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01004853 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01004854 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004855 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00004856 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00004857 PERFETTO_CONFIG.deps.demangle_wrapper,
Primiano Tucci1d409982019-09-19 10:15:18 +01004858)
4859
Hector Dearmana9545e52022-05-17 12:23:25 +01004860# GN target: //src/traceconv:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01004861perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02004862 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01004863 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00004864 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00004865 ":src_profiling_symbolizer_symbolize_database",
4866 ":src_profiling_symbolizer_symbolizer",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004867 ":src_trace_processor_util_stack_traces_util",
Hector Dearmana9545e52022-05-17 12:23:25 +01004868 ":src_traceconv_pprofbuilder",
4869 ":src_traceconv_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01004870 ],
4871 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01004872 ":include_perfetto_base_base",
4873 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00004874 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01004875 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004876 ":include_perfetto_public_abi_base",
4877 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004878 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004879 ":include_perfetto_trace_processor_basic_types",
4880 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01004881 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01004882 ],
4883 visibility = [
4884 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01004885 ],
4886 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004887 ":protos_perfetto_common_zero",
4888 ":protos_perfetto_config_android_zero",
4889 ":protos_perfetto_config_ftrace_zero",
4890 ":protos_perfetto_config_gpu_zero",
4891 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004892 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004893 ":protos_perfetto_config_power_zero",
4894 ":protos_perfetto_config_process_stats_zero",
4895 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004896 ":protos_perfetto_config_statsd_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004897 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01004898 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004899 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004900 ":protos_perfetto_config_zero",
4901 ":protos_perfetto_trace_android_zero",
4902 ":protos_perfetto_trace_chrome_zero",
4903 ":protos_perfetto_trace_filesystem_zero",
4904 ":protos_perfetto_trace_ftrace_zero",
4905 ":protos_perfetto_trace_gpu_zero",
4906 ":protos_perfetto_trace_interned_data_zero",
4907 ":protos_perfetto_trace_minimal_zero",
4908 ":protos_perfetto_trace_non_minimal_zero",
4909 ":protos_perfetto_trace_perfetto_zero",
4910 ":protos_perfetto_trace_power_zero",
4911 ":protos_perfetto_trace_profiling_zero",
4912 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01004913 ":protos_perfetto_trace_statsd_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004914 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004915 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004916 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004917 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004918 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00004919 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01004920 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004921 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00004922 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01004923)
4924
Hector Dearmana9545e52022-05-17 12:23:25 +01004925# GN target: //src/traceconv:traceconv
Lalit Maganti65600342019-09-19 21:35:35 +01004926perfetto_cc_binary(
Hector Dearmana9545e52022-05-17 12:23:25 +01004927 name = "traceconv",
Lalit Maganti65600342019-09-19 21:35:35 +01004928 srcs = [
4929 ":include_perfetto_base_base",
4930 ":include_perfetto_ext_base_base",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004931 ":include_perfetto_ext_trace_processor_demangle",
Eric Seckler7fb1d232019-10-23 14:42:43 +01004932 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004933 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01004934 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00004935 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01004936 ":include_perfetto_protozero_protozero",
Daniele Di Proietto8b46d692022-04-22 15:59:40 +01004937 ":include_perfetto_public_abi_base",
4938 ":include_perfetto_public_base",
Daniele Di Proietto7451ea62023-01-09 11:31:16 +00004939 ":include_perfetto_public_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004940 ":include_perfetto_trace_processor_basic_types",
4941 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01004942 ":include_perfetto_trace_processor_trace_processor",
Ryan Zuklieec18eb32022-07-25 15:51:59 -07004943 ":src_kernel_utils_syscall_table",
Florian Mayer3be55fb2019-11-22 13:08:47 +00004944 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00004945 ":src_profiling_symbolizer_symbolize_database",
4946 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01004947 ":src_protozero_proto_ring_buffer",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004948 ":src_trace_processor_db_db",
Lalit Maganti3927af82022-05-09 20:23:40 +01004949 ":src_trace_processor_dynamic_dynamic",
Eric Secklera7870e62019-11-01 10:11:58 +00004950 ":src_trace_processor_export_json",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01004951 ":src_trace_processor_importers_android_bugreport_android_bugreport",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004952 ":src_trace_processor_importers_common_common",
Lalit Magantieb2645a2022-11-25 15:49:35 +00004953 ":src_trace_processor_importers_common_parser_types",
4954 ":src_trace_processor_importers_common_trace_parser_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004955 ":src_trace_processor_importers_ftrace_ftrace_descriptors",
4956 ":src_trace_processor_importers_ftrace_full",
4957 ":src_trace_processor_importers_ftrace_minimal",
Lalit Magantife2519b2022-11-24 21:12:05 +00004958 ":src_trace_processor_importers_fuchsia_fuchsia_record",
Lalit Magantiecf23662022-12-02 18:34:37 +00004959 ":src_trace_processor_importers_fuchsia_full",
4960 ":src_trace_processor_importers_fuchsia_minimal",
4961 ":src_trace_processor_importers_gzip_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004962 ":src_trace_processor_importers_i2c_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004963 ":src_trace_processor_importers_json_full",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004964 ":src_trace_processor_importers_json_minimal",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004965 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti1bfdccc2022-11-28 21:19:35 +00004966 ":src_trace_processor_importers_ninja_ninja",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00004967 ":src_trace_processor_importers_proto_full",
4968 ":src_trace_processor_importers_proto_minimal",
Lalit Magantiba07dcf2022-11-25 13:58:09 +00004969 ":src_trace_processor_importers_proto_packet_sequence_state_generation_hdr",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004970 ":src_trace_processor_importers_proto_proto_importer_module",
4971 ":src_trace_processor_importers_syscalls_full",
Lalit Magantiecf23662022-12-02 18:34:37 +00004972 ":src_trace_processor_importers_systrace_full",
Lalit Magantife2519b2022-11-24 21:12:05 +00004973 ":src_trace_processor_importers_systrace_systrace_line",
Lalit Magantib9a5b432022-12-01 16:13:11 +00004974 ":src_trace_processor_importers_systrace_systrace_parser",
Lalit Maganti65600342019-09-19 21:35:35 +01004975 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004976 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004977 ":src_trace_processor_metrics_metrics",
Lalit Maganti628aca72022-12-08 14:20:25 +00004978 ":src_trace_processor_prelude_functions_functions",
4979 ":src_trace_processor_prelude_operators_operators",
Lalit Maganti1e7a5bb2022-11-25 15:50:43 +00004980 ":src_trace_processor_sorter_sorter",
Lalit Maganti65600342019-09-19 21:35:35 +01004981 ":src_trace_processor_sqlite_sqlite",
Lalit Maganti3927af82022-05-09 20:23:40 +01004982 ":src_trace_processor_sqlite_sqlite_minimal",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004983 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004984 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01004985 ":src_trace_processor_tables_tables",
Lalit Maganti779c02e2023-01-11 14:59:21 +00004986 ":src_trace_processor_tables_tables_python",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004987 ":src_trace_processor_types_types",
Lalit Magantiffaed7a2023-02-21 16:02:04 +00004988 ":src_trace_processor_util_bump_allocator",
Lalit Magantie7107402020-04-15 13:41:12 +01004989 ":src_trace_processor_util_descriptors",
Lalit Maganti83ddffe2022-10-18 17:47:44 +01004990 ":src_trace_processor_util_glob",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004991 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004992 ":src_trace_processor_util_interned_message_view",
Carlos Caballero Grolimund8a495a72022-09-05 09:29:09 +00004993 ":src_trace_processor_util_profile_builder",
Igor Kraskevich3da925d2022-08-22 12:02:30 +00004994 ":src_trace_processor_util_proto_profiler",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004995 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004996 ":src_trace_processor_util_protozero_to_text",
Lalit Magantiea630542022-11-21 19:35:02 +00004997 ":src_trace_processor_util_sql_argument",
Omar Elmekkawyd1c53452022-07-20 08:48:34 +00004998 ":src_trace_processor_util_stack_traces_util",
Anna Mayzner5980c712022-11-24 15:09:11 +00004999 ":src_trace_processor_util_stdlib",
Lalit Magantie7107402020-04-15 13:41:12 +01005000 ":src_trace_processor_util_util",
Primiano Tuccic9d912e2022-07-28 23:30:11 +01005001 ":src_trace_processor_util_zip_reader",
Lalit Maganti2410f202022-05-27 20:57:53 +01005002 ":src_trace_processor_views_views",
Hector Dearmana9545e52022-05-17 12:23:25 +01005003 ":src_traceconv_lib",
5004 ":src_traceconv_main",
5005 ":src_traceconv_pprofbuilder",
5006 ":src_traceconv_utils",
Lalit Maganti65600342019-09-19 21:35:35 +01005007 ],
5008 visibility = [
5009 "//visibility:public",
5010 ],
5011 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01005012 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005013 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005014 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005015 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005016 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00005017 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005018 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005019 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005020 ":protos_perfetto_config_profiling_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005021 ":protos_perfetto_config_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005022 ":protos_perfetto_config_sys_stats_zero",
Hector Dearman48047d12022-08-02 14:00:46 +01005023 ":protos_perfetto_config_system_info_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00005024 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005025 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005026 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005027 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005028 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005029 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005030 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005031 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005032 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005033 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005034 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005035 ":protos_perfetto_trace_power_zero",
5036 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04005037 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005038 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005039 ":protos_perfetto_trace_ps_zero",
Hector Dearman5974de02022-06-23 15:31:40 +01005040 ":protos_perfetto_trace_statsd_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005041 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01005042 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01005043 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00005044 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00005045 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02005046 ":protozero",
5047 ":src_base_base",
Daniele Di Proietto15b801e2022-06-30 12:56:13 +01005048 ":src_base_version",
Ryan7ad6b7d2021-04-22 17:03:54 +01005049 ":src_trace_processor_containers_containers",
Lalit Magantiecf23662022-12-02 18:34:37 +00005050 ":src_trace_processor_importers_proto_gen_cc_chrome_track_event_descriptor",
5051 ":src_trace_processor_importers_proto_gen_cc_config_descriptor",
Lalit Magantib7ad13b2022-11-25 15:55:38 +00005052 ":src_trace_processor_importers_proto_gen_cc_statsd_atoms_descriptor",
Lalit Magantib9a5b432022-12-01 16:13:11 +00005053 ":src_trace_processor_importers_proto_gen_cc_trace_descriptor",
Lalit Magantiecf23662022-12-02 18:34:37 +00005054 ":src_trace_processor_importers_proto_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01005055 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01005056 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Magantie277dcb2022-11-09 15:57:58 +00005057 ":src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
5058 ":src_trace_processor_stdlib_gen_amalgamated_stdlib",
Hector Dearmana9545e52022-05-17 12:23:25 +01005059 ":src_traceconv_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01005060 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01005061 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01005062 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
Lalit Magantie277dcb2022-11-09 15:57:58 +00005063 PERFETTO_CONFIG.deps.zlib +
Ryan Savitskie65c4052022-03-24 18:22:19 +00005064 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Maganti65600342019-09-19 21:35:35 +01005065)
5066
Hector Dearmana9545e52022-05-17 12:23:25 +01005067# GN target: //src/traced/probes:traced_probes
5068perfetto_cc_binary(
5069 name = "traced_probes",
5070 srcs = [
5071 ":include_perfetto_ext_traced_traced",
5072 "src/traced/probes/main.cc",
5073 ],
5074 visibility = [
5075 "//visibility:public",
5076 ],
5077 deps = [
5078 ":libperfetto",
5079 ],
5080)
5081
5082# GN target: //src/traced/service:traced
5083perfetto_cc_binary(
5084 name = "traced",
5085 srcs = [
5086 ":include_perfetto_ext_traced_traced",
5087 "src/traced/service/main.cc",
5088 ],
5089 visibility = [
5090 "//visibility:public",
5091 ],
5092 deps = [
5093 ":libperfetto",
5094 ],
5095)
5096
Primiano Tucci1d409982019-09-19 10:15:18 +01005097# Content from BUILD.extras
5098
5099build_config_dir_ = "include/perfetto/base/build_configs/bazel"
5100
5101# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
5102# This is pulled as a default dep by all targets.
Harvey Yang321c4fc2021-10-25 14:11:50 +08005103perfetto_build_config_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01005104 name = "build_config_hdr",
5105 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
5106 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02005107)
5108
Primiano Tucci1d409982019-09-19 10:15:18 +01005109perfetto_py_binary(
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005110 name = "gen_amalgamated_sql_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01005111 srcs = [
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005112 "tools/gen_amalgamated_sql.py",
Lalit Magantiab619fa2019-05-02 12:56:37 +01005113 ],
Anna Mayznercc18bfd2022-11-03 14:05:19 +00005114 main = "tools/gen_amalgamated_sql.py",
Lalit Magantic449f772020-06-03 14:20:10 +01005115 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01005116)
Lalit Maganti65600342019-09-19 21:35:35 +01005117
Lalit Maganti117272f2020-09-11 14:01:18 +01005118perfetto_py_binary(
5119 name = "gen_cc_proto_descriptor_py",
5120 srcs = [
5121 "tools/gen_cc_proto_descriptor.py",
5122 ],
5123 main = "tools/gen_cc_proto_descriptor.py",
5124 python_version = "PY3",
5125)
5126
Lalit Maganti225ae652022-06-27 21:28:21 +01005127perfetto_go_proto_library(
5128 name = "protos_perfetto_trace_non_minimal_protos_go_proto",
5129 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01005130 deps = [
Lalit Maganti225ae652022-06-27 21:28:21 +01005131 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti65600342019-09-19 21:35:35 +01005132 ],
5133)
5134
Lalit Maganti225ae652022-06-27 21:28:21 +01005135perfetto_go_proto_library(
5136 name = "protos_perfetto_trace_track_event_protos_go_proto",
5137 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01005138 deps = [
Lalit Maganti225ae652022-06-27 21:28:21 +01005139 ":protos_perfetto_trace_track_event_protos",
Lalit Maganti65600342019-09-19 21:35:35 +01005140 ],
Lalit Maganti46e2bda2020-05-06 12:51:33 +01005141)
5142
Lalit Maganti66732a02022-10-06 11:53:46 +01005143perfetto_go_proto_library(
5144 name = "protos_perfetto_metrics_protos_go_proto",
5145 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
5146 deps = [
5147 ":protos_perfetto_metrics_protos",
5148 ],
5149)
5150
5151perfetto_go_proto_library(
5152 name = "protos_perfetto_metrics_android_protos_go_proto",
5153 visibility = PERFETTO_CONFIG.go_proto_library_visibility,
5154 deps = [
5155 ":protos_perfetto_metrics_android_protos",
5156 ],
5157)
5158
Primiano Tucciec590132020-11-16 14:16:44 +01005159# This is overridden in google internal builds via
5160# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
5161perfetto_cc_library(
5162 name = "cc_perfetto_version_header",
5163 hdrs = ["perfetto_version.gen.h"],
5164)
5165
5166perfetto_py_binary(
5167 name = "gen_version_header_py",
5168 srcs = ["tools/write_version_header.py"],
5169 data = ["CHANGELOG"],
5170 main = "tools/write_version_header.py",
5171 python_version = "PY3",
5172)