blob: dcdc2fc5594d0fb0f724c9474a8c0bbfc4b95527 [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",
Primiano Tucci1d409982019-09-19 10:15:18 +010021 "perfetto_cc_binary",
Harvey Yang321c4fc2021-10-25 14:11:50 +080022 "perfetto_filegroup",
23 "perfetto_genrule",
Primiano Tucci1d409982019-09-19 10:15:18 +010024 "perfetto_cc_ipc_library",
25 "perfetto_cc_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010026 "perfetto_cc_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010027 "perfetto_cc_proto_library",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010028 "perfetto_cc_protocpp_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010029 "perfetto_cc_protozero_library",
Lalit Maganti65600342019-09-19 21:35:35 +010030 "perfetto_java_proto_library",
Lalit Maganti46e2bda2020-05-06 12:51:33 +010031 "perfetto_java_lite_proto_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010032 "perfetto_proto_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010033 "perfetto_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010034 "perfetto_py_binary",
Anindita Ghosh237a7762020-06-30 10:46:52 +000035 "perfetto_py_library",
Lalit Maganti65600342019-09-19 21:35:35 +010036 "perfetto_gensignature_internal_only",
Primiano Tucci1d409982019-09-19 10:15:18 +010037)
Lalit Maganti279ecde2019-04-01 16:57:12 +010038
Primiano Tucci1d409982019-09-19 10:15:18 +010039package(default_visibility = ["//visibility:private"])
Lalit Maganti279ecde2019-04-01 16:57:12 +010040
Lalit Magantibb037f72019-09-24 16:22:45 +010041licenses(["notice"])
Lalit Maganti65600342019-09-19 21:35:35 +010042
43exports_files(["NOTICE"])
Lalit Magantia48710d2019-09-24 13:10:11 +010044
Primiano Tucci1d409982019-09-19 10:15:18 +010045# ##############################################################################
46# Internal targets
47# ##############################################################################
Lalit Maganti279ecde2019-04-01 16:57:12 +010048
Primiano Tucci1d409982019-09-19 10:15:18 +010049# GN target: //src/ipc/protoc_plugin:ipc_plugin
50perfetto_cc_binary(
51 name = "ipc_plugin",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010052 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010053 "src/ipc/protoc_plugin/ipc_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010054 ],
55 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020056 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +010057 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +010058)
59
60# GN target: //src/ipc:perfetto_ipc
61perfetto_cc_library(
62 name = "perfetto_ipc",
63 srcs = [
Primiano Tuccic4c063b2020-01-27 09:34:46 +000064 ":src_ipc_client",
65 ":src_ipc_common",
66 ":src_ipc_host",
Primiano Tucci1d409982019-09-19 10:15:18 +010067 ],
68 hdrs = [
69 ":include_perfetto_base_base",
70 ":include_perfetto_ext_base_base",
71 ":include_perfetto_ext_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +000072 ":include_perfetto_protozero_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +010073 ],
74 deps = [
Primiano Tuccib3e08d02019-11-19 11:10:11 +000075 ":protos_perfetto_ipc_wire_protocol_cpp",
Primiano Tucci916f4e52020-10-16 20:40:33 +020076 ":src_base_base",
77 ":src_base_unix_socket",
Primiano Tuccie8020f92019-11-26 13:24:01 +000078 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +000079 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +010080)
81
Primiano Tucci57dd66b2019-10-15 23:09:04 +010082# GN target: //src/protozero/protoc_plugin:cppgen_plugin
83perfetto_cc_binary(
84 name = "cppgen_plugin",
85 srcs = [
86 "src/protozero/protoc_plugin/cppgen_plugin.cc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010087 ],
88 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +020089 ":src_base_base",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010090 ] + PERFETTO_CONFIG.deps.protoc_lib,
91)
92
Primiano Tucci1d409982019-09-19 10:15:18 +010093# GN target: //src/protozero/protoc_plugin:protozero_plugin
94perfetto_cc_binary(
95 name = "protozero_plugin",
96 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010097 "src/protozero/protoc_plugin/protozero_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010098 ],
99 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200100 ":src_base_base",
Lalit Maganti65600342019-09-19 21:35:35 +0100101 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +0100102)
103
Primiano Tucci916f4e52020-10-16 20:40:33 +0200104# GN target: //src/protozero:protozero
Primiano Tucci1d409982019-09-19 10:15:18 +0100105perfetto_cc_library(
Primiano Tucci916f4e52020-10-16 20:40:33 +0200106 name = "protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100107 srcs = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200108 "src/protozero/field.cc",
109 "src/protozero/message.cc",
110 "src/protozero/message_arena.cc",
111 "src/protozero/message_handle.cc",
112 "src/protozero/packed_repeated_fields.cc",
113 "src/protozero/proto_decoder.cc",
114 "src/protozero/scattered_heap_buffer.cc",
115 "src/protozero/scattered_stream_null_delegate.cc",
116 "src/protozero/scattered_stream_writer.cc",
117 "src/protozero/static_buffer.cc",
118 "src/protozero/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100119 ],
120 hdrs = [
121 ":include_perfetto_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100122 ":include_perfetto_protozero_protozero",
123 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200124 deps = [
125 ":src_base_base",
126 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000127 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100128)
129
Lalit Maganti01deefa2019-12-19 14:20:12 +0000130# GN target: //test:client_api_example
131perfetto_cc_binary(
132 name = "client_api_example",
133 srcs = [
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000134 ":include_perfetto_base_base",
135 ":include_perfetto_protozero_protozero",
136 ":include_perfetto_tracing_core_forward_decls",
137 ":include_perfetto_tracing_tracing",
Primiano Tucci34bc5592021-02-19 17:53:36 +0100138 "test/client_api_example.cc",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000139 ],
140 deps = [
141 ":libperfetto_client_experimental",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000142 ":protos_perfetto_common_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000143 ":protos_perfetto_common_zero",
144 ":protos_perfetto_config_android_zero",
145 ":protos_perfetto_config_ftrace_zero",
146 ":protos_perfetto_config_gpu_zero",
147 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000148 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000149 ":protos_perfetto_config_power_zero",
150 ":protos_perfetto_config_process_stats_zero",
151 ":protos_perfetto_config_profiling_zero",
152 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000153 ":protos_perfetto_config_track_event_cpp",
154 ":protos_perfetto_config_track_event_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000155 ":protos_perfetto_config_zero",
156 ":protos_perfetto_trace_android_zero",
157 ":protos_perfetto_trace_chrome_zero",
158 ":protos_perfetto_trace_filesystem_zero",
159 ":protos_perfetto_trace_ftrace_zero",
160 ":protos_perfetto_trace_gpu_zero",
161 ":protos_perfetto_trace_interned_data_zero",
162 ":protos_perfetto_trace_minimal_zero",
163 ":protos_perfetto_trace_non_minimal_zero",
164 ":protos_perfetto_trace_perfetto_zero",
165 ":protos_perfetto_trace_power_zero",
166 ":protos_perfetto_trace_profiling_zero",
167 ":protos_perfetto_trace_ps_zero",
168 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100169 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100170 ":protos_perfetto_trace_track_event_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000171 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000172 ":protos_perfetto_trace_translation_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000173 ],
174)
175
Lalit Magantiff9b3262021-07-01 22:24:01 +0100176# GN target: //tools/proto_filter:proto_filter
177perfetto_cc_binary(
178 name = "proto_filter",
179 srcs = [
180 ":src_protozero_filtering_bytecode_common",
181 ":src_protozero_filtering_bytecode_generator",
182 ":src_protozero_filtering_bytecode_parser",
183 ":src_protozero_filtering_filter_util",
184 ":src_protozero_filtering_message_filter",
185 "tools/proto_filter/proto_filter.cc",
186 ],
187 deps = [
188 ":protozero",
189 ":src_base_base",
190 ] + PERFETTO_CONFIG.deps.protobuf_full,
191)
192
Lalit Magantidade39c2021-07-08 19:30:49 +0100193# GN target: //tools/proto_merger:proto_merger
194perfetto_cc_binary(
195 name = "proto_merger",
196 srcs = [
Lalit Magantif7ba1532021-07-21 21:40:32 +0100197 "tools/proto_merger/allowlist.cc",
Lalit Magantidade39c2021-07-08 19:30:49 +0100198 "tools/proto_merger/allowlist.h",
199 "tools/proto_merger/main.cc",
200 "tools/proto_merger/proto_file.cc",
201 "tools/proto_merger/proto_file.h",
Lalit Maganticb07e442021-07-21 21:43:32 +0100202 "tools/proto_merger/proto_file_serializer.cc",
203 "tools/proto_merger/proto_file_serializer.h",
Lalit Magantidade39c2021-07-08 19:30:49 +0100204 "tools/proto_merger/proto_merger.cc",
205 "tools/proto_merger/proto_merger.h",
206 ],
207 deps = [
208 ":src_base_base",
209 ] + PERFETTO_CONFIG.deps.protobuf_full,
210)
211
Primiano Tucci1d409982019-09-19 10:15:18 +0100212# GN target: //:libperfetto
213perfetto_cc_library(
214 name = "libperfetto",
215 srcs = [
216 ":src_android_internal_headers",
217 ":src_android_internal_lazy_library_loader",
Lalit Magantiea7631b2021-01-13 12:33:55 +0000218 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +0000219 ":src_android_stats_perfetto_atoms",
Ryan Savitskidc218882020-11-16 18:02:02 +0000220 ":src_kallsyms_kallsyms",
Primiano Tuccif18ab812021-05-14 23:01:19 +0100221 ":src_protozero_filtering_bytecode_common",
222 ":src_protozero_filtering_bytecode_parser",
223 ":src_protozero_filtering_message_filter",
Primiano Tucci1d409982019-09-19 10:15:18 +0100224 ":src_traced_probes_android_log_android_log",
Rafal Slawik8053a682020-04-08 17:26:40 +0100225 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100226 ":src_traced_probes_data_source",
227 ":src_traced_probes_filesystem_filesystem",
Primiano Tucci65a4fb12020-12-21 18:35:15 +0100228 ":src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100229 ":src_traced_probes_ftrace_ftrace",
Ryan Savitskiec35afb2021-01-29 18:39:36 +0000230 ":src_traced_probes_ftrace_ftrace_procfs",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100231 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100232 ":src_traced_probes_metatrace_metatrace",
233 ":src_traced_probes_packages_list_packages_list",
Florian Mayer29e17182020-12-23 10:59:02 +0000234 ":src_traced_probes_packages_list_packages_list_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100235 ":src_traced_probes_power_power",
236 ":src_traced_probes_probes",
237 ":src_traced_probes_probes_src",
238 ":src_traced_probes_ps_ps",
239 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100240 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100241 ":src_traced_service_service",
242 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000243 ":src_tracing_consumer_api_deprecated_consumer_api_deprecated",
244 ":src_tracing_core_core",
245 ":src_tracing_core_service",
246 ":src_tracing_ipc_common",
247 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +0000248 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000249 ":src_tracing_ipc_producer_producer",
250 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100251 ],
252 hdrs = [
253 ":include_perfetto_base_base",
254 ":include_perfetto_ext_base_base",
255 ":include_perfetto_ext_ipc_ipc",
256 ":include_perfetto_ext_traced_sys_stats_counters",
257 ":include_perfetto_ext_traced_traced",
258 ":include_perfetto_ext_tracing_core_core",
259 ":include_perfetto_ext_tracing_ipc_ipc",
260 ":include_perfetto_protozero_protozero",
261 ":include_perfetto_public_public",
262 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000263 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100264 ":include_perfetto_tracing_tracing",
265 ],
266 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200267 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100268 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100269 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100270 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100271 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100272 ":protos_perfetto_config_cpp",
273 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100274 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100275 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100276 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100277 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100278 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000279 ":protos_perfetto_config_interceptors_cpp",
280 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100281 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100282 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100283 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100284 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100285 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100286 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100287 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100288 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000289 ":protos_perfetto_config_track_event_cpp",
290 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100291 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000292 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100293 ":protos_perfetto_ipc_ipc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100294 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100295 ":protos_perfetto_trace_chrome_zero",
296 ":protos_perfetto_trace_filesystem_zero",
297 ":protos_perfetto_trace_ftrace_zero",
298 ":protos_perfetto_trace_gpu_zero",
299 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100300 ":protos_perfetto_trace_minimal_zero",
301 ":protos_perfetto_trace_non_minimal_zero",
302 ":protos_perfetto_trace_perfetto_zero",
303 ":protos_perfetto_trace_power_zero",
304 ":protos_perfetto_trace_profiling_zero",
305 ":protos_perfetto_trace_ps_zero",
306 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100307 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100308 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100309 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +0000310 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200311 ":protozero",
312 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000313 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000314 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100315)
316
317# GN target: //include/perfetto/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800318perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100319 name = "include_perfetto_base_base",
320 srcs = [
321 "include/perfetto/base/build_config.h",
322 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100323 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000324 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100325 "include/perfetto/base/logging.h",
Primiano Tuccif9460fa2020-12-09 01:28:33 +0100326 "include/perfetto/base/platform_handle.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000327 "include/perfetto/base/proc_utils.h",
Primiano Tuccidf440312020-10-30 16:43:58 +0100328 "include/perfetto/base/status.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100329 "include/perfetto/base/task_runner.h",
Alexander Timinba53cc72021-02-05 15:46:57 +0000330 "include/perfetto/base/template_util.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000331 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100332 "include/perfetto/base/time.h",
333 ],
334)
335
Primiano Tucci44a15be2021-11-06 21:40:18 +0000336# GN target: //include/perfetto/ext/base/http:http
337perfetto_filegroup(
338 name = "include_perfetto_ext_base_http_http",
339 srcs = [
340 "include/perfetto/ext/base/http/http_server.h",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000341 "include/perfetto/ext/base/http/sha1.h",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000342 ],
343)
344
Primiano Tucci1d409982019-09-19 10:15:18 +0100345# GN target: //include/perfetto/ext/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800346perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100347 name = "include_perfetto_ext_base_base",
348 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000349 "include/perfetto/ext/base/android_utils.h",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000350 "include/perfetto/ext/base/base64.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100351 "include/perfetto/ext/base/circular_queue.h",
352 "include/perfetto/ext/base/container_annotations.h",
Primiano Tucciab699b72021-10-15 11:53:00 +0100353 "include/perfetto/ext/base/crash_keys.h",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100354 "include/perfetto/ext/base/ctrl_c_handler.h",
Primiano Tucciabbc9fd2020-10-08 22:09:07 +0200355 "include/perfetto/ext/base/endian.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100356 "include/perfetto/ext/base/event_fd.h",
357 "include/perfetto/ext/base/file_utils.h",
Primiano Tuccic986ca12021-11-18 20:51:24 +0000358 "include/perfetto/ext/base/flat_hash_map.h",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100359 "include/perfetto/ext/base/getopt.h",
360 "include/perfetto/ext/base/getopt_compat.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100361 "include/perfetto/ext/base/hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100362 "include/perfetto/ext/base/metatrace.h",
363 "include/perfetto/ext/base/metatrace_events.h",
364 "include/perfetto/ext/base/no_destructor.h",
365 "include/perfetto/ext/base/optional.h",
366 "include/perfetto/ext/base/paged_memory.h",
Primiano Tuccidac91702021-04-30 15:47:51 +0100367 "include/perfetto/ext/base/periodic_task.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100368 "include/perfetto/ext/base/pipe.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100369 "include/perfetto/ext/base/scoped_file.h",
370 "include/perfetto/ext/base/small_set.h",
Primiano Tucci34abb8d2021-11-16 13:38:01 +0000371 "include/perfetto/ext/base/small_vector.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100372 "include/perfetto/ext/base/string_splitter.h",
373 "include/perfetto/ext/base/string_utils.h",
374 "include/perfetto/ext/base/string_view.h",
375 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000376 "include/perfetto/ext/base/subprocess.h",
Primiano Tuccibc44c3c2022-01-14 12:59:01 +0000377 "include/perfetto/ext/base/sys_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100378 "include/perfetto/ext/base/temp_file.h",
379 "include/perfetto/ext/base/thread_annotations.h",
380 "include/perfetto/ext/base/thread_checker.h",
381 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100382 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100383 "include/perfetto/ext/base/unix_socket.h",
384 "include/perfetto/ext/base/unix_task_runner.h",
385 "include/perfetto/ext/base/utils.h",
386 "include/perfetto/ext/base/uuid.h",
Primiano Tucciec590132020-11-16 14:16:44 +0100387 "include/perfetto/ext/base/version.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100388 "include/perfetto/ext/base/waitable_event.h",
389 "include/perfetto/ext/base/watchdog.h",
390 "include/perfetto/ext/base/watchdog_noop.h",
391 "include/perfetto/ext/base/watchdog_posix.h",
392 "include/perfetto/ext/base/weak_ptr.h",
393 ],
394)
395
396# GN target: //include/perfetto/ext/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800397perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100398 name = "include_perfetto_ext_ipc_ipc",
399 srcs = [
400 "include/perfetto/ext/ipc/async_result.h",
401 "include/perfetto/ext/ipc/basic_types.h",
402 "include/perfetto/ext/ipc/client.h",
403 "include/perfetto/ext/ipc/client_info.h",
404 "include/perfetto/ext/ipc/codegen_helpers.h",
405 "include/perfetto/ext/ipc/deferred.h",
406 "include/perfetto/ext/ipc/host.h",
407 "include/perfetto/ext/ipc/service.h",
408 "include/perfetto/ext/ipc/service_descriptor.h",
409 "include/perfetto/ext/ipc/service_proxy.h",
410 ],
411)
412
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100413# GN target: //include/perfetto/ext/trace_processor/importers/memory_tracker:memory_tracker
Harvey Yang321c4fc2021-10-25 14:11:50 +0800414perfetto_filegroup(
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100415 name = "include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
416 srcs = [
417 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph.h",
418 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h",
419 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_allocator_node_id.h",
420 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_graph_edge.h",
421 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_memory_graph_node.h",
422 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_process_memory_node.h",
423 ],
424)
425
Eric Seckler7fb1d232019-10-23 14:42:43 +0100426# GN target: //include/perfetto/ext/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +0800427perfetto_filegroup(
Eric Seckler7fb1d232019-10-23 14:42:43 +0100428 name = "include_perfetto_ext_trace_processor_export_json",
429 srcs = [
430 "include/perfetto/ext/trace_processor/export_json.h",
431 ],
432)
433
Primiano Tucci1d409982019-09-19 10:15:18 +0100434# GN target: //include/perfetto/ext/traced:sys_stats_counters
Harvey Yang321c4fc2021-10-25 14:11:50 +0800435perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100436 name = "include_perfetto_ext_traced_sys_stats_counters",
437 srcs = [
438 "include/perfetto/ext/traced/sys_stats_counters.h",
439 ],
440)
441
442# GN target: //include/perfetto/ext/traced:traced
Harvey Yang321c4fc2021-10-25 14:11:50 +0800443perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100444 name = "include_perfetto_ext_traced_traced",
445 srcs = [
446 "include/perfetto/ext/traced/data_source_types.h",
447 "include/perfetto/ext/traced/traced.h",
448 ],
449)
450
451# GN target: //include/perfetto/ext/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800452perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100453 name = "include_perfetto_ext_tracing_core_core",
454 srcs = [
455 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100456 "include/perfetto/ext/tracing/core/commit_data_request.h",
457 "include/perfetto/ext/tracing/core/consumer.h",
458 "include/perfetto/ext/tracing/core/observable_events.h",
459 "include/perfetto/ext/tracing/core/producer.h",
460 "include/perfetto/ext/tracing/core/shared_memory.h",
461 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
462 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
463 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100464 "include/perfetto/ext/tracing/core/trace_packet.h",
465 "include/perfetto/ext/tracing/core/trace_stats.h",
466 "include/perfetto/ext/tracing/core/trace_writer.h",
467 "include/perfetto/ext/tracing/core/tracing_service.h",
468 ],
469)
470
471# GN target: //include/perfetto/ext/tracing/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800472perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100473 name = "include_perfetto_ext_tracing_ipc_ipc",
474 srcs = [
475 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
476 "include/perfetto/ext/tracing/ipc/default_socket.h",
477 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
478 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
479 ],
480)
481
Florian Mayerbd88ff82019-12-18 16:36:37 +0000482# GN target: //include/perfetto/profiling:pprof_builder
Harvey Yang321c4fc2021-10-25 14:11:50 +0800483perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000484 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100485 srcs = [
486 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100487 ],
488)
489
Primiano Tucci1d409982019-09-19 10:15:18 +0100490# GN target: //include/perfetto/protozero:protozero
Harvey Yang321c4fc2021-10-25 14:11:50 +0800491perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100492 name = "include_perfetto_protozero_protozero",
493 srcs = [
494 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000495 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000496 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100497 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000498 "include/perfetto/protozero/field_writer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100499 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200500 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100501 "include/perfetto/protozero/message_handle.h",
502 "include/perfetto/protozero/packed_repeated_fields.h",
503 "include/perfetto/protozero/proto_decoder.h",
504 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200505 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100506 "include/perfetto/protozero/scattered_heap_buffer.h",
507 "include/perfetto/protozero/scattered_stream_null_delegate.h",
508 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000509 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100510 ],
511)
512
513# GN target: //include/perfetto/public:public
Harvey Yang321c4fc2021-10-25 14:11:50 +0800514perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100515 name = "include_perfetto_public_public",
516 srcs = [
517 "include/perfetto/public/consumer_api.h",
518 ],
519)
520
Eric Secklera7870e62019-11-01 10:11:58 +0000521# GN target: //include/perfetto/trace_processor:basic_types
Harvey Yang321c4fc2021-10-25 14:11:50 +0800522perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000523 name = "include_perfetto_trace_processor_basic_types",
524 srcs = [
525 "include/perfetto/trace_processor/basic_types.h",
526 "include/perfetto/trace_processor/status.h",
527 ],
528)
529
530# GN target: //include/perfetto/trace_processor:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +0800531perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000532 name = "include_perfetto_trace_processor_storage",
533 srcs = [
Primiano Tucci3264b592021-11-08 18:20:51 +0000534 "include/perfetto/trace_processor/trace_blob.h",
535 "include/perfetto/trace_processor/trace_blob_view.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000536 "include/perfetto/trace_processor/trace_processor_storage.h",
537 ],
538)
539
Primiano Tucci1d409982019-09-19 10:15:18 +0100540# GN target: //include/perfetto/trace_processor:trace_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800541perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100542 name = "include_perfetto_trace_processor_trace_processor",
543 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100544 "include/perfetto/trace_processor/iterator.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100545 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci8b970aa2021-11-09 20:21:33 +0000546 "include/perfetto/trace_processor/ref_counted.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100547 "include/perfetto/trace_processor/trace_processor.h",
548 ],
549)
550
551# GN target: //include/perfetto/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800552perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100553 name = "include_perfetto_tracing_core_core",
554 srcs = [
555 "include/perfetto/tracing/core/chrome_config.h",
556 "include/perfetto/tracing/core/data_source_config.h",
557 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100558 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000559 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100560 "include/perfetto/tracing/core/tracing_service_state.h",
561 ],
562)
563
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000564# GN target: //include/perfetto/tracing/core:forward_decls
Harvey Yang321c4fc2021-10-25 14:11:50 +0800565perfetto_filegroup(
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000566 name = "include_perfetto_tracing_core_forward_decls",
567 srcs = [
568 "include/perfetto/tracing/core/forward_decls.h",
569 ],
570)
571
Primiano Tucci1d409982019-09-19 10:15:18 +0100572# GN target: //include/perfetto/tracing:tracing
Harvey Yang321c4fc2021-10-25 14:11:50 +0800573perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100574 name = "include_perfetto_tracing_tracing",
575 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100576 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100577 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000578 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100579 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000580 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000581 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000582 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100583 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000584 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000585 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100586 "include/perfetto/tracing/internal/data_source_internal.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000587 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000588 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000589 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000590 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100591 "include/perfetto/tracing/internal/tracing_muxer.h",
592 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700593 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100594 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000595 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100596 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000597 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100598 "include/perfetto/tracing/locked_handle.h",
599 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000600 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100601 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000602 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000603 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000604 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100605 "include/perfetto/tracing/tracing.h",
606 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100607 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000608 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700609 "include/perfetto/tracing/track_event.h",
Alexander Timin84af38b2021-10-05 17:10:31 +0100610 "include/perfetto/tracing/track_event_args.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100611 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000612 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000613 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000614 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100615 ],
616)
617
618# GN target: //src/android_internal:headers
Harvey Yang321c4fc2021-10-25 14:11:50 +0800619perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100620 name = "src_android_internal_headers",
621 srcs = [
622 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100623 "src/android_internal/health_hal.h",
624 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000625 "src/android_internal/power_stats.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000626 "src/android_internal/statsd_logging.h",
Collin Fijalkovichef96fb72021-01-06 16:14:33 -0800627 "src/android_internal/tracing_service_proxy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100628 ],
629)
630
631# GN target: //src/android_internal:lazy_library_loader
Harvey Yang321c4fc2021-10-25 14:11:50 +0800632perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100633 name = "src_android_internal_lazy_library_loader",
634 srcs = [
635 "src/android_internal/lazy_library_loader.cc",
636 "src/android_internal/lazy_library_loader.h",
637 ],
638)
639
Lalit Magantif2d81b72020-12-11 01:53:29 +0000640# GN target: //src/android_stats:android_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +0800641perfetto_filegroup(
Lalit Magantif2d81b72020-12-11 01:53:29 +0000642 name = "src_android_stats_android_stats",
643 srcs = [
644 "src/android_stats/statsd_logging_helper.cc",
645 "src/android_stats/statsd_logging_helper.h",
646 ],
647)
648
Lalit Magantid37172d2020-12-10 19:30:05 +0000649# GN target: //src/android_stats:perfetto_atoms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800650perfetto_filegroup(
Lalit Magantid37172d2020-12-10 19:30:05 +0000651 name = "src_android_stats_perfetto_atoms",
652 srcs = [
653 "src/android_stats/perfetto_atoms.h",
654 ],
655)
656
Primiano Tucci44a15be2021-11-06 21:40:18 +0000657# GN target: //src/base/http:http
658perfetto_cc_library(
659 name = "src_base_http_http",
660 srcs = [
661 "src/base/http/http_server.cc",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000662 "src/base/http/sha1.cc",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000663 ],
664 hdrs = [
665 ":include_perfetto_base_base",
666 ":include_perfetto_ext_base_base",
667 ":include_perfetto_ext_base_http_http",
668 ],
669 deps = [
670 ":src_base_base",
671 ":src_base_unix_socket",
672 ],
673 linkstatic = True,
674)
675
Primiano Tucci1d409982019-09-19 10:15:18 +0100676# GN target: //src/base:base
Primiano Tucci916f4e52020-10-16 20:40:33 +0200677perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100678 name = "src_base_base",
679 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000680 "src/base/android_utils.cc",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000681 "src/base/base64.cc",
Primiano Tucciab699b72021-10-15 11:53:00 +0100682 "src/base/crash_keys.cc",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100683 "src/base/ctrl_c_handler.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100684 "src/base/event_fd.cc",
685 "src/base/file_utils.cc",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100686 "src/base/getopt_compat.cc",
Primiano Tuccic7fb63f2021-10-11 16:28:05 +0100687 "src/base/log_ring_buffer.h",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000688 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100689 "src/base/metatrace.cc",
690 "src/base/paged_memory.cc",
Primiano Tuccidac91702021-04-30 15:47:51 +0100691 "src/base/periodic_task.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100692 "src/base/pipe.cc",
Primiano Tuccidf440312020-10-30 16:43:58 +0100693 "src/base/status.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100694 "src/base/string_splitter.cc",
695 "src/base/string_utils.cc",
696 "src/base/string_view.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100697 "src/base/subprocess.cc",
Primiano Tucci8163b2c2020-12-21 15:26:04 +0100698 "src/base/subprocess_posix.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100699 "src/base/subprocess_windows.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100700 "src/base/temp_file.cc",
701 "src/base/thread_checker.cc",
702 "src/base/thread_task_runner.cc",
703 "src/base/time.cc",
704 "src/base/unix_task_runner.cc",
Primiano Tuccia81d2772020-10-07 00:12:41 +0200705 "src/base/utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100706 "src/base/uuid.cc",
Primiano Tucciec590132020-11-16 14:16:44 +0100707 "src/base/version.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100708 "src/base/virtual_destructors.cc",
709 "src/base/waitable_event.cc",
710 "src/base/watchdog_posix.cc",
711 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200712 hdrs = [
713 ":include_perfetto_base_base",
714 ":include_perfetto_ext_base_base",
715 ],
Primiano Tucciec590132020-11-16 14:16:44 +0100716 deps = [
717 ] + PERFETTO_CONFIG.deps.version_header,
Primiano Tucci916f4e52020-10-16 20:40:33 +0200718 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100719)
720
721# GN target: //src/base:unix_socket
Primiano Tucci916f4e52020-10-16 20:40:33 +0200722perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100723 name = "src_base_unix_socket",
724 srcs = [
725 "src/base/unix_socket.cc",
726 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200727 hdrs = [
728 ":include_perfetto_base_base",
729 ":include_perfetto_ext_base_base",
730 ],
731 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100732)
733
Harvey Yang321c4fc2021-10-25 14:11:50 +0800734perfetto_genrule(
Primiano Tucciec590132020-11-16 14:16:44 +0100735 name = "src_base_version_gen_h",
736 srcs = [
737 "CHANGELOG",
738 ],
739 outs = [
740 "perfetto_version.gen.h",
741 ],
Joshua Gilpatrick042931b2020-12-04 08:55:59 -0800742 cmd = "$(location gen_version_header_py) --cpp_out=$@ --changelog=$(location CHANGELOG)",
Primiano Tucciec590132020-11-16 14:16:44 +0100743 exec_tools = [
744 ":gen_version_header_py",
745 ],
746)
747
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000748# GN target: //src/ipc:client
Harvey Yang321c4fc2021-10-25 14:11:50 +0800749perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000750 name = "src_ipc_client",
751 srcs = [
752 "src/ipc/client_impl.cc",
753 "src/ipc/client_impl.h",
754 "src/ipc/service_proxy.cc",
755 ],
756)
757
758# GN target: //src/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800759perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000760 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100761 srcs = [
762 "src/ipc/buffered_frame_deserializer.cc",
763 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100764 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000765 "src/ipc/virtual_destructors.cc",
766 ],
767)
768
769# GN target: //src/ipc:host
Harvey Yang321c4fc2021-10-25 14:11:50 +0800770perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000771 name = "src_ipc_host",
772 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100773 "src/ipc/host_impl.cc",
774 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100775 ],
776)
777
Ryan Savitskidc218882020-11-16 18:02:02 +0000778# GN target: //src/kallsyms:kallsyms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800779perfetto_filegroup(
Ryan Savitskidc218882020-11-16 18:02:02 +0000780 name = "src_kallsyms_kallsyms",
781 srcs = [
782 "src/kallsyms/kernel_symbol_map.cc",
783 "src/kallsyms/kernel_symbol_map.h",
784 "src/kallsyms/lazy_kernel_symbolizer.cc",
785 "src/kallsyms/lazy_kernel_symbolizer.h",
786 ],
787)
788
Lalit Maganti2939c082021-03-11 17:25:44 +0000789perfetto_cc_proto_descriptor(
790 name = "src_perfetto_cmd_gen_cc_config_descriptor",
791 deps = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000792 ":protos_perfetto_config_descriptor",
Lalit Maganti2939c082021-03-11 17:25:44 +0000793 ],
794 outs = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000795 "src/perfetto_cmd/config.descriptor.h",
Lalit Maganti2939c082021-03-11 17:25:44 +0000796 ],
797)
798
Primiano Tucci1d409982019-09-19 10:15:18 +0100799# GN target: //src/perfetto_cmd:perfetto_cmd
Harvey Yang321c4fc2021-10-25 14:11:50 +0800800perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100801 name = "src_perfetto_cmd_perfetto_cmd",
802 srcs = [
803 "src/perfetto_cmd/config.cc",
804 "src/perfetto_cmd/config.h",
805 "src/perfetto_cmd/packet_writer.cc",
806 "src/perfetto_cmd/packet_writer.h",
807 "src/perfetto_cmd/pbtxt_to_pb.cc",
808 "src/perfetto_cmd/pbtxt_to_pb.h",
809 "src/perfetto_cmd/perfetto_cmd.cc",
810 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100811 "src/perfetto_cmd/rate_limiter.cc",
812 "src/perfetto_cmd/rate_limiter.h",
813 ],
814)
815
816# GN target: //src/perfetto_cmd:trigger_producer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800817perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100818 name = "src_perfetto_cmd_trigger_producer",
819 srcs = [
820 "src/perfetto_cmd/trigger_producer.cc",
821 "src/perfetto_cmd/trigger_producer.h",
822 ],
823)
824
Florian Mayerbd88ff82019-12-18 16:36:37 +0000825# GN target: //src/profiling/symbolizer:symbolize_database
Harvey Yang321c4fc2021-10-25 14:11:50 +0800826perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000827 name = "src_profiling_symbolizer_symbolize_database",
828 srcs = [
829 "src/profiling/symbolizer/symbolize_database.cc",
830 "src/profiling/symbolizer/symbolize_database.h",
831 ],
832)
833
834# GN target: //src/profiling/symbolizer:symbolizer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800835perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000836 name = "src_profiling_symbolizer_symbolizer",
837 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000838 "src/profiling/symbolizer/breakpad_parser.cc",
839 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000840 "src/profiling/symbolizer/breakpad_symbolizer.cc",
841 "src/profiling/symbolizer/breakpad_symbolizer.h",
Daniele Di Proietto25f80692021-09-17 10:14:41 +0000842 "src/profiling/symbolizer/elf.h",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000843 "src/profiling/symbolizer/local_symbolizer.cc",
844 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800845 "src/profiling/symbolizer/scoped_read_mmap.h",
846 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800847 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800848 "src/profiling/symbolizer/subprocess.h",
849 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800850 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000851 "src/profiling/symbolizer/symbolizer.cc",
852 "src/profiling/symbolizer/symbolizer.h",
853 ],
854)
855
Florian Mayer3be55fb2019-11-22 13:08:47 +0000856# GN target: //src/profiling:deobfuscator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800857perfetto_filegroup(
Florian Mayer3be55fb2019-11-22 13:08:47 +0000858 name = "src_profiling_deobfuscator",
859 srcs = [
860 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000861 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000862 ],
863)
864
Primiano Tuccif18ab812021-05-14 23:01:19 +0100865# GN target: //src/protozero/filtering:bytecode_common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800866perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100867 name = "src_protozero_filtering_bytecode_common",
868 srcs = [
869 "src/protozero/filtering/filter_bytecode_common.h",
870 ],
871)
872
Lalit Magantiff9b3262021-07-01 22:24:01 +0100873# GN target: //src/protozero/filtering:bytecode_generator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800874perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100875 name = "src_protozero_filtering_bytecode_generator",
876 srcs = [
877 "src/protozero/filtering/filter_bytecode_generator.cc",
878 "src/protozero/filtering/filter_bytecode_generator.h",
879 ],
880)
881
Primiano Tuccif18ab812021-05-14 23:01:19 +0100882# GN target: //src/protozero/filtering:bytecode_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +0800883perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100884 name = "src_protozero_filtering_bytecode_parser",
885 srcs = [
886 "src/protozero/filtering/filter_bytecode_parser.cc",
887 "src/protozero/filtering/filter_bytecode_parser.h",
888 ],
889)
890
Lalit Magantiff9b3262021-07-01 22:24:01 +0100891# GN target: //src/protozero/filtering:filter_util
Harvey Yang321c4fc2021-10-25 14:11:50 +0800892perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100893 name = "src_protozero_filtering_filter_util",
894 srcs = [
895 "src/protozero/filtering/filter_util.cc",
896 "src/protozero/filtering/filter_util.h",
897 ],
898)
899
Primiano Tuccif18ab812021-05-14 23:01:19 +0100900# GN target: //src/protozero/filtering:message_filter
Harvey Yang321c4fc2021-10-25 14:11:50 +0800901perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100902 name = "src_protozero_filtering_message_filter",
903 srcs = [
904 "src/protozero/filtering/message_filter.cc",
905 "src/protozero/filtering/message_filter.h",
906 "src/protozero/filtering/message_tokenizer.h",
907 ],
908)
909
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100910# GN target: //src/protozero:proto_ring_buffer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800911perfetto_filegroup(
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100912 name = "src_protozero_proto_ring_buffer",
913 srcs = [
914 "src/protozero/proto_ring_buffer.cc",
915 "src/protozero/proto_ring_buffer.h",
916 ],
917)
918
Lalit Maganti97d7d472020-04-07 18:49:17 +0100919# GN target: //src/trace_processor/analysis:analysis
Harvey Yang321c4fc2021-10-25 14:11:50 +0800920perfetto_filegroup(
Lalit Maganti97d7d472020-04-07 18:49:17 +0100921 name = "src_trace_processor_analysis_analysis",
922 srcs = [
923 "src/trace_processor/analysis/describe_slice.cc",
924 "src/trace_processor/analysis/describe_slice.h",
925 ],
926)
927
Lalit Maganti2aa88582019-12-17 17:06:49 +0000928# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +0100929perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +0000930 name = "src_trace_processor_containers_containers",
931 srcs = [
932 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000933 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +0100934 "src/trace_processor/containers/nullable_vector.cc",
935 "src/trace_processor/containers/row_map.cc",
936 "src/trace_processor/containers/string_pool.cc",
937 ],
938 hdrs = [
939 ":include_perfetto_base_base",
940 ":include_perfetto_protozero_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +0100941 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000942 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000943 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +0100944 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000945 "src/trace_processor/containers/row_map.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000946 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000947 ],
Ryan0331ac02021-04-26 15:41:47 +0100948 deps = [
949 ":src_base_base",
950 ],
951 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +0000952)
953
Lalit Maganti1534bb72021-04-23 14:11:26 +0100954# GN target: //src/trace_processor/db:db
Harvey Yang321c4fc2021-10-25 14:11:50 +0800955perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100956 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +0100957 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100958 "src/trace_processor/db/column.cc",
959 "src/trace_processor/db/column.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +0000960 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100961 "src/trace_processor/db/table.cc",
962 "src/trace_processor/db/table.h",
963 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +0000964 "src/trace_processor/db/typed_column_internal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100965 ],
966)
967
Lalit Maganti1534bb72021-04-23 14:11:26 +0100968# GN target: //src/trace_processor/importers/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800969perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100970 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100971 srcs = [
972 "src/trace_processor/importers/common/args_tracker.cc",
973 "src/trace_processor/importers/common/args_tracker.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +0100974 "src/trace_processor/importers/common/chunked_trace_reader.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100975 "src/trace_processor/importers/common/clock_tracker.cc",
976 "src/trace_processor/importers/common/clock_tracker.h",
977 "src/trace_processor/importers/common/event_tracker.cc",
978 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300979 "src/trace_processor/importers/common/flow_tracker.cc",
980 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100981 "src/trace_processor/importers/common/global_args_tracker.cc",
982 "src/trace_processor/importers/common/global_args_tracker.h",
983 "src/trace_processor/importers/common/process_tracker.cc",
984 "src/trace_processor/importers/common/process_tracker.h",
985 "src/trace_processor/importers/common/slice_tracker.cc",
986 "src/trace_processor/importers/common/slice_tracker.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100987 "src/trace_processor/importers/common/system_info_tracker.cc",
988 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantid1a7b032021-04-23 14:46:57 +0100989 "src/trace_processor/importers/common/trace_parser.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100990 "src/trace_processor/importers/common/track_tracker.cc",
991 "src/trace_processor/importers/common/track_tracker.h",
992 ],
993)
994
Lalit Maganti1534bb72021-04-23 14:11:26 +0100995# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800996perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100997 name = "src_trace_processor_importers_memory_tracker_graph_processor",
998 srcs = [
999 "src/trace_processor/importers/memory_tracker/graph.cc",
1000 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
1001 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
1002 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
1003 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
1004 ],
1005)
1006
Lalit Maganti117272f2020-09-11 14:01:18 +01001007perfetto_cc_proto_descriptor(
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00001008 name = "src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
1009 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00001010 ":protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00001011 ],
1012 outs = [
1013 "src/trace_processor/importers/chrome_track_event.descriptor.h",
1014 ],
1015)
1016
1017perfetto_cc_proto_descriptor(
Hector Dearmana1d75242020-10-02 09:47:24 +01001018 name = "src_trace_processor_importers_gen_cc_config_descriptor",
1019 deps = [
1020 ":protos_perfetto_config_descriptor",
1021 ],
1022 outs = [
1023 "src/trace_processor/importers/config.descriptor.h",
1024 ],
1025)
1026
1027perfetto_cc_proto_descriptor(
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001028 name = "src_trace_processor_importers_gen_cc_track_event_descriptor",
1029 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00001030 ":protos_perfetto_trace_track_event_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001031 ],
1032 outs = [
1033 "src/trace_processor/importers/track_event.descriptor.h",
1034 ],
1035)
1036
Lalit Maganti4c328e32021-11-09 19:29:50 +00001037perfetto_genrule(
1038 name = "src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
1039 srcs = [
1040 "src/trace_processor/metrics/sql/android/android_batt.sql",
1041 "src/trace_processor/metrics/sql/android/android_camera.sql",
Lalit Magantic16c7212021-12-16 17:32:55 +00001042 "src/trace_processor/metrics/sql/android/android_camera_unagg.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001043 "src/trace_processor/metrics/sql/android/android_cpu.sql",
1044 "src/trace_processor/metrics/sql/android/android_cpu_agg.sql",
1045 "src/trace_processor/metrics/sql/android/android_cpu_raw_metrics_per_core.sql",
1046 "src/trace_processor/metrics/sql/android/android_dma_heap.sql",
Luke Chang476e9442021-11-09 23:14:34 +08001047 "src/trace_processor/metrics/sql/android/android_dvfs.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001048 "src/trace_processor/metrics/sql/android/android_fastrpc.sql",
1049 "src/trace_processor/metrics/sql/android/android_gpu.sql",
1050 "src/trace_processor/metrics/sql/android/android_hwcomposer.sql",
1051 "src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
1052 "src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
1053 "src/trace_processor/metrics/sql/android/android_ion.sql",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08001054 "src/trace_processor/metrics/sql/android/android_irq_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001055 "src/trace_processor/metrics/sql/android/android_jank.sql",
1056 "src/trace_processor/metrics/sql/android/android_lmk.sql",
1057 "src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
1058 "src/trace_processor/metrics/sql/android/android_mem.sql",
1059 "src/trace_processor/metrics/sql/android/android_mem_unagg.sql",
1060 "src/trace_processor/metrics/sql/android/android_multiuser.sql",
1061 "src/trace_processor/metrics/sql/android/android_multiuser_populator.sql",
Luke Change25d2c42021-12-07 16:08:32 +08001062 "src/trace_processor/metrics/sql/android/android_netperf.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001063 "src/trace_processor/metrics/sql/android/android_package_list.sql",
1064 "src/trace_processor/metrics/sql/android/android_powrails.sql",
1065 "src/trace_processor/metrics/sql/android/android_proxy_power.sql",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08001066 "src/trace_processor/metrics/sql/android/android_rt_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001067 "src/trace_processor/metrics/sql/android/android_simpleperf.sql",
1068 "src/trace_processor/metrics/sql/android/android_startup.sql",
1069 "src/trace_processor/metrics/sql/android/android_surfaceflinger.sql",
1070 "src/trace_processor/metrics/sql/android/android_sysui_cuj.sql",
1071 "src/trace_processor/metrics/sql/android/android_sysui_cuj_jank_query.sql",
Nick Pollard54c1fc32022-02-15 18:21:21 +00001072 "src/trace_processor/metrics/sql/android/android_sysui_cuj_surfaceflinger.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001073 "src/trace_processor/metrics/sql/android/android_task_names.sql",
1074 "src/trace_processor/metrics/sql/android/android_thread_time_in_state.sql",
1075 "src/trace_processor/metrics/sql/android/android_trace_quality.sql",
David LeGare20d39c42022-01-20 20:38:43 +00001076 "src/trace_processor/metrics/sql/android/android_trusty_workqueues.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001077 "src/trace_processor/metrics/sql/android/composer_execution.sql",
1078 "src/trace_processor/metrics/sql/android/composition_layers.sql",
1079 "src/trace_processor/metrics/sql/android/cpu_info.sql",
1080 "src/trace_processor/metrics/sql/android/display_metrics.sql",
1081 "src/trace_processor/metrics/sql/android/frame_missed.sql",
1082 "src/trace_processor/metrics/sql/android/g2d.sql",
1083 "src/trace_processor/metrics/sql/android/g2d_duration.sql",
1084 "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
1085 "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
1086 "src/trace_processor/metrics/sql/android/java_heap_histogram.sql",
1087 "src/trace_processor/metrics/sql/android/java_heap_stats.sql",
1088 "src/trace_processor/metrics/sql/android/mem_stats_priority_breakdown.sql",
1089 "src/trace_processor/metrics/sql/android/power_drain_in_watts.sql",
1090 "src/trace_processor/metrics/sql/android/power_profile_data.sql",
1091 "src/trace_processor/metrics/sql/android/process_counter_span_view.sql",
1092 "src/trace_processor/metrics/sql/android/process_mem.sql",
1093 "src/trace_processor/metrics/sql/android/process_metadata.sql",
1094 "src/trace_processor/metrics/sql/android/process_oom_score.sql",
1095 "src/trace_processor/metrics/sql/android/process_unagg_mem_view.sql",
1096 "src/trace_processor/metrics/sql/android/profiler_smaps.sql",
1097 "src/trace_processor/metrics/sql/android/span_view_stats.sql",
1098 "src/trace_processor/metrics/sql/android/startup/hsc.sql",
1099 "src/trace_processor/metrics/sql/android/startup/launches.sql",
Lalit Maganti186ed0f2021-12-02 18:13:15 +00001100 "src/trace_processor/metrics/sql/android/startup/launches_maxsdk28.sql",
1101 "src/trace_processor/metrics/sql/android/startup/launches_minsdk29.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001102 "src/trace_processor/metrics/sql/android/thread_counter_span_view.sql",
1103 "src/trace_processor/metrics/sql/android/unsymbolized_frames.sql",
1104 "src/trace_processor/metrics/sql/chrome/actual_power_by_category.sql",
1105 "src/trace_processor/metrics/sql/chrome/actual_power_by_rail_mode.sql",
1106 "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
1107 "src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
Omar Elmekkawy07d02b02021-12-14 20:36:36 +00001108 "src/trace_processor/metrics/sql/chrome/chrome_thread_slice.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001109 "src/trace_processor/metrics/sql/chrome/cpu_time_by_category.sql",
1110 "src/trace_processor/metrics/sql/chrome/cpu_time_by_rail_mode.sql",
1111 "src/trace_processor/metrics/sql/chrome/estimated_power_by_category.sql",
1112 "src/trace_processor/metrics/sql/chrome/estimated_power_by_rail_mode.sql",
1113 "src/trace_processor/metrics/sql/chrome/gesture_flow_event.sql",
1114 "src/trace_processor/metrics/sql/chrome/gesture_flow_event_queuing_delay.sql",
1115 "src/trace_processor/metrics/sql/chrome/gesture_jank.sql",
Omar Elmekkawyc50cd612022-01-20 16:18:33 +00001116 "src/trace_processor/metrics/sql/chrome/jank_utilities.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001117 "src/trace_processor/metrics/sql/chrome/rail_modes.sql",
1118 "src/trace_processor/metrics/sql/chrome/scroll_flow_event.sql",
1119 "src/trace_processor/metrics/sql/chrome/scroll_flow_event_queuing_delay.sql",
1120 "src/trace_processor/metrics/sql/chrome/scroll_jank.sql",
1121 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause.sql",
1122 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_task.sql",
1123 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_touch_move.sql",
1124 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_get_bitmap.sql",
1125 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_queuing_delay.sql",
Omar Elmekkawy0d6b3462021-12-09 20:28:02 +00001126 "src/trace_processor/metrics/sql/chrome/sufficient_chrome_processes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001127 "src/trace_processor/metrics/sql/chrome/test_chrome_metric.sql",
1128 "src/trace_processor/metrics/sql/chrome/touch_flow_event.sql",
1129 "src/trace_processor/metrics/sql/chrome/touch_flow_event_queuing_delay.sql",
1130 "src/trace_processor/metrics/sql/chrome/touch_jank.sql",
1131 "src/trace_processor/metrics/sql/experimental/blink_gc_metric.sql",
1132 "src/trace_processor/metrics/sql/experimental/chrome_dropped_frames.sql",
1133 "src/trace_processor/metrics/sql/experimental/frame_times.sql",
1134 "src/trace_processor/metrics/sql/experimental/media_metric.sql",
1135 "src/trace_processor/metrics/sql/experimental/reported_by_page.sql",
1136 "src/trace_processor/metrics/sql/trace_metadata.sql",
1137 "src/trace_processor/metrics/sql/trace_stats.sql",
1138 "src/trace_processor/metrics/sql/webview/webview_power_usage.sql",
1139 ],
1140 outs = [
1141 "src/trace_processor/metrics/sql/amalgamated_sql_metrics.h",
1142 ],
1143 cmd = "$(location gen_amalgamated_sql_metrics_py) --cpp_out=$@ $(SRCS)",
1144 exec_tools = [
1145 ":gen_amalgamated_sql_metrics_py",
1146 ],
1147)
1148
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001149perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001150 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
1151 deps = [
1152 ":protos_perfetto_metrics_chrome_descriptor",
1153 ],
1154 outs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001155 "src/trace_processor/metrics/all_chrome_metrics.descriptor.h",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001156 ],
1157)
1158
1159perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001160 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1161 deps = [
1162 ":protos_perfetto_metrics_descriptor",
1163 ],
1164 outs = [
1165 "src/trace_processor/metrics/metrics.descriptor.h",
1166 ],
1167)
1168
Lalit Maganti4c328e32021-11-09 19:29:50 +00001169# GN target: //src/trace_processor/metrics:metrics
Harvey Yang321c4fc2021-10-25 14:11:50 +08001170perfetto_filegroup(
Lalit Maganti4c328e32021-11-09 19:29:50 +00001171 name = "src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01001172 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001173 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001174 "src/trace_processor/metrics/metrics.h",
1175 ],
1176)
1177
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001178# GN target: //src/trace_processor/rpc:httpd
Harvey Yang321c4fc2021-10-25 14:11:50 +08001179perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001180 name = "src_trace_processor_rpc_httpd",
1181 srcs = [
1182 "src/trace_processor/rpc/httpd.cc",
1183 "src/trace_processor/rpc/httpd.h",
1184 ],
1185)
1186
1187# GN target: //src/trace_processor/rpc:rpc
Harvey Yang321c4fc2021-10-25 14:11:50 +08001188perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001189 name = "src_trace_processor_rpc_rpc",
1190 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001191 "src/trace_processor/rpc/query_result_serializer.cc",
1192 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001193 "src/trace_processor/rpc/rpc.cc",
1194 "src/trace_processor/rpc/rpc.h",
1195 ],
1196)
1197
Primiano Tucci1d409982019-09-19 10:15:18 +01001198# GN target: //src/trace_processor/sqlite:sqlite
Harvey Yang321c4fc2021-10-25 14:11:50 +08001199perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001200 name = "src_trace_processor_sqlite_sqlite",
1201 srcs = [
Lalit Maganti00ca67c2021-11-10 14:11:19 +00001202 "src/trace_processor/sqlite/create_function.cc",
1203 "src/trace_processor/sqlite/create_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001204 "src/trace_processor/sqlite/db_sqlite_table.cc",
1205 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001206 "src/trace_processor/sqlite/query_cache.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001207 "src/trace_processor/sqlite/query_constraints.cc",
1208 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti82517672021-11-04 23:39:15 +00001209 "src/trace_processor/sqlite/register_function.cc",
1210 "src/trace_processor/sqlite/register_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001211 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001212 "src/trace_processor/sqlite/span_join_operator_table.cc",
1213 "src/trace_processor/sqlite/span_join_operator_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001214 "src/trace_processor/sqlite/sql_stats_table.cc",
1215 "src/trace_processor/sqlite/sql_stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001216 "src/trace_processor/sqlite/sqlite3_str_split.cc",
1217 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001218 "src/trace_processor/sqlite/sqlite_raw_table.cc",
1219 "src/trace_processor/sqlite/sqlite_raw_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001220 "src/trace_processor/sqlite/sqlite_table.cc",
1221 "src/trace_processor/sqlite/sqlite_table.h",
1222 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001223 "src/trace_processor/sqlite/stats_table.cc",
1224 "src/trace_processor/sqlite/stats_table.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001225 "src/trace_processor/sqlite/window_operator_table.cc",
1226 "src/trace_processor/sqlite/window_operator_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001227 ],
1228)
1229
Lalit Maganti7010b332020-02-07 10:51:15 +00001230# GN target: //src/trace_processor/storage:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +08001231perfetto_filegroup(
Lalit Maganti7010b332020-02-07 10:51:15 +00001232 name = "src_trace_processor_storage_storage",
1233 srcs = [
1234 "src/trace_processor/storage/metadata.h",
1235 "src/trace_processor/storage/stats.h",
1236 "src/trace_processor/storage/trace_storage.cc",
1237 "src/trace_processor/storage/trace_storage.h",
1238 ],
1239)
1240
Primiano Tucci1d409982019-09-19 10:15:18 +01001241# GN target: //src/trace_processor/tables:tables
Harvey Yang321c4fc2021-10-25 14:11:50 +08001242perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001243 name = "src_trace_processor_tables_tables",
1244 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +00001245 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +00001246 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001247 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001248 "src/trace_processor/tables/macros.h",
1249 "src/trace_processor/tables/macros_internal.h",
Witold Fijalkowskicdaed0e2020-10-02 09:47:21 +02001250 "src/trace_processor/tables/memory_tables.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +00001251 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001252 "src/trace_processor/tables/profiler_tables.h",
1253 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01001254 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001255 "src/trace_processor/tables/track_tables.h",
1256 ],
1257)
1258
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001259# GN target: //src/trace_processor/types:types
Harvey Yang321c4fc2021-10-25 14:11:50 +08001260perfetto_filegroup(
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001261 name = "src_trace_processor_types_types",
1262 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01001263 "src/trace_processor/types/destructible.cc",
1264 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001265 "src/trace_processor/types/gfp_flags.cc",
1266 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12001267 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01001268 "src/trace_processor/types/task_state.cc",
1269 "src/trace_processor/types/task_state.h",
Luke Chang1b904072022-01-26 09:33:19 +08001270 "src/trace_processor/types/tcp_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01001271 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001272 "src/trace_processor/types/variadic.cc",
1273 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001274 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001275 ],
1276)
1277
Lalit Magantie7107402020-04-15 13:41:12 +01001278# GN target: //src/trace_processor/util:descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001279perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001280 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001281 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01001282 "src/trace_processor/util/descriptors.cc",
1283 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001284 ],
1285)
1286
Lalit Maganti69216ec2021-05-21 14:10:42 +01001287# GN target: //src/trace_processor/util:gzip
Harvey Yang321c4fc2021-10-25 14:11:50 +08001288perfetto_filegroup(
Lalit Maganti69216ec2021-05-21 14:10:42 +01001289 name = "src_trace_processor_util_gzip",
1290 srcs = [
1291 "src/trace_processor/util/gzip_utils.cc",
1292 "src/trace_processor/util/gzip_utils.h",
1293 ],
1294)
1295
Alexander Timin97d87852021-05-17 18:01:33 +00001296# GN target: //src/trace_processor/util:interned_message_view
Harvey Yang321c4fc2021-10-25 14:11:50 +08001297perfetto_filegroup(
Alexander Timin97d87852021-05-17 18:01:33 +00001298 name = "src_trace_processor_util_interned_message_view",
1299 srcs = [
1300 "src/trace_processor/util/interned_message_view.h",
1301 ],
1302)
1303
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001304# GN target: //src/trace_processor/util:proto_to_args_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001305perfetto_filegroup(
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001306 name = "src_trace_processor_util_proto_to_args_parser",
1307 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00001308 "src/trace_processor/util/debug_annotation_parser.cc",
1309 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001310 "src/trace_processor/util/proto_to_args_parser.cc",
1311 "src/trace_processor/util/proto_to_args_parser.h",
1312 ],
1313)
1314
Deepanjan Roy1e048012020-09-23 12:49:04 -04001315# GN target: //src/trace_processor/util:protozero_to_text
Harvey Yang321c4fc2021-10-25 14:11:50 +08001316perfetto_filegroup(
Deepanjan Roy1e048012020-09-23 12:49:04 -04001317 name = "src_trace_processor_util_protozero_to_text",
1318 srcs = [
1319 "src/trace_processor/util/protozero_to_text.cc",
1320 "src/trace_processor/util/protozero_to_text.h",
1321 ],
1322)
1323
Lalit Magantie7107402020-04-15 13:41:12 +01001324# GN target: //src/trace_processor/util:util
Harvey Yang321c4fc2021-10-25 14:11:50 +08001325perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001326 name = "src_trace_processor_util_util",
1327 srcs = [
1328 "src/trace_processor/util/status_macros.h",
1329 ],
1330)
1331
Eric Secklera7870e62019-11-01 10:11:58 +00001332# GN target: //src/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +08001333perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +00001334 name = "src_trace_processor_export_json",
1335 srcs = [
1336 "src/trace_processor/export_json.cc",
1337 "src/trace_processor/export_json.h",
1338 ],
1339)
1340
Lalit Maganti655adae2020-04-14 21:01:25 +01001341# GN target: //src/trace_processor:ftrace_descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001342perfetto_filegroup(
Lalit Maganti655adae2020-04-14 21:01:25 +01001343 name = "src_trace_processor_ftrace_descriptors",
1344 srcs = [
1345 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1346 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1347 ],
1348)
1349
Primiano Tucci1d409982019-09-19 10:15:18 +01001350# GN target: //src/trace_processor:lib
Harvey Yang321c4fc2021-10-25 14:11:50 +08001351perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001352 name = "src_trace_processor_lib",
1353 srcs = [
Stephen Nuskodd7f6dc2020-11-26 17:04:08 -05001354 "src/trace_processor/dynamic/ancestor_generator.cc",
1355 "src/trace_processor/dynamic/ancestor_generator.h",
Andrii824107d2020-09-29 10:13:36 +03001356 "src/trace_processor/dynamic/connected_flow_generator.cc",
1357 "src/trace_processor/dynamic/connected_flow_generator.h",
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +00001358 "src/trace_processor/dynamic/descendant_generator.cc",
1359 "src/trace_processor/dynamic/descendant_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001360 "src/trace_processor/dynamic/describe_slice_generator.cc",
1361 "src/trace_processor/dynamic/describe_slice_generator.h",
Ryanddeb3b12021-04-12 15:55:17 +01001362 "src/trace_processor/dynamic/experimental_annotated_stack_generator.cc",
1363 "src/trace_processor/dynamic/experimental_annotated_stack_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001364 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
1365 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
1366 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
1367 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
Lalit Maganti40fbe8e2021-06-10 16:21:25 +01001368 "src/trace_processor/dynamic/experimental_flat_slice_generator.cc",
1369 "src/trace_processor/dynamic/experimental_flat_slice_generator.h",
Lalit Magantic59b1bc2020-07-28 16:36:58 +01001370 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
1371 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
Hector Dearman5b523762020-04-16 10:36:32 +01001372 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
1373 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
Lalit Maganti2fc5db22020-08-13 15:02:47 +01001374 "src/trace_processor/dynamic/thread_state_generator.cc",
1375 "src/trace_processor/dynamic/thread_state_generator.h",
Primiano Tucci4e01f632020-06-11 17:03:05 +01001376 "src/trace_processor/iterator_impl.cc",
1377 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001378 "src/trace_processor/read_trace.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001379 "src/trace_processor/trace_processor.cc",
1380 "src/trace_processor/trace_processor_impl.cc",
1381 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001382 ],
1383)
1384
Lalit Maganti427b8332020-05-27 16:09:45 +01001385# GN target: //src/trace_processor:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001386perfetto_filegroup(
Lalit Maganti427b8332020-05-27 16:09:45 +01001387 name = "src_trace_processor_metatrace",
1388 srcs = [
1389 "src/trace_processor/tp_metatrace.cc",
1390 "src/trace_processor/tp_metatrace.h",
1391 ],
1392)
1393
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001394# GN target: //src/trace_processor:storage_full
Harvey Yang321c4fc2021-10-25 14:11:50 +08001395perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001396 name = "src_trace_processor_storage_full",
1397 srcs = [
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001398 "src/trace_processor/importers/additional_modules.cc",
1399 "src/trace_processor/importers/additional_modules.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001400 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1401 "src/trace_processor/importers/ftrace/binder_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001402 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1403 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1404 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1405 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1406 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1407 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
Lalit Maganti697894f2019-12-23 14:32:13 +00001408 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1409 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001410 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1411 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001412 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1413 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1414 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1415 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1416 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1417 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001418 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1419 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001420 "src/trace_processor/importers/json/json_trace_parser.cc",
1421 "src/trace_processor/importers/json/json_trace_parser.h",
1422 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1423 "src/trace_processor/importers/json/json_trace_tokenizer.h",
Mikhail Khokhlov9996d5d2019-12-17 14:43:17 +00001424 "src/trace_processor/importers/proto/android_probes_module.cc",
1425 "src/trace_processor/importers/proto/android_probes_module.h",
1426 "src/trace_processor/importers/proto/android_probes_parser.cc",
1427 "src/trace_processor/importers/proto/android_probes_parser.h",
Florian Mayer19ce3952020-04-08 15:27:32 +02001428 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1429 "src/trace_processor/importers/proto/android_probes_tracker.h",
Adithya Srinivasan526a34e2020-11-06 13:40:58 -08001430 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1431 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001432 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1433 "src/trace_processor/importers/proto/gpu_event_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001434 "src/trace_processor/importers/proto/graphics_event_module.cc",
1435 "src/trace_processor/importers/proto/graphics_event_module.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001436 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1437 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
Mikhail Khokhlov6146a582019-12-17 17:33:47 +00001438 "src/trace_processor/importers/proto/heap_graph_module.cc",
1439 "src/trace_processor/importers/proto/heap_graph_module.h",
1440 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1441 "src/trace_processor/importers/proto/heap_graph_tracker.h",
Mikhail Khokhlov04f6eb72019-12-17 14:33:11 +00001442 "src/trace_processor/importers/proto/system_probes_module.cc",
1443 "src/trace_processor/importers/proto/system_probes_module.h",
1444 "src/trace_processor/importers/proto/system_probes_parser.cc",
1445 "src/trace_processor/importers/proto/system_probes_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001446 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1447 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001448 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1449 "src/trace_processor/importers/syscalls/syscalls_aarch32.h",
1450 "src/trace_processor/importers/syscalls/syscalls_aarch64.h",
1451 "src/trace_processor/importers/syscalls/syscalls_armeabi.h",
1452 "src/trace_processor/importers/syscalls/syscalls_x86.h",
1453 "src/trace_processor/importers/syscalls/syscalls_x86_64.h",
Lalit Maganti2f0b41d2020-02-27 13:35:39 +00001454 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1455 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1456 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1457 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001458 "src/trace_processor/importers/systrace/systrace_parser.cc",
1459 "src/trace_processor/importers/systrace/systrace_parser.h",
1460 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1461 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001462 ],
1463)
1464
1465# GN target: //src/trace_processor:storage_minimal
Harvey Yang321c4fc2021-10-25 14:11:50 +08001466perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001467 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00001468 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001469 "src/trace_processor/forwarding_trace_parser.cc",
1470 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001471 "src/trace_processor/importers/default_modules.cc",
1472 "src/trace_processor/importers/default_modules.h",
Mikhail Khokhlovdd1db002019-12-09 16:34:07 +00001473 "src/trace_processor/importers/ftrace/ftrace_module.cc",
Eric Seckleracfe35b2019-10-18 15:50:17 +01001474 "src/trace_processor/importers/ftrace/ftrace_module.h",
Eric Seckler67e15a92020-01-03 13:20:46 +00001475 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
Eric Secklerd8b52082019-10-17 15:58:38 +01001476 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
Lalit Maganti0bfeb972020-03-14 03:57:30 +00001477 "src/trace_processor/importers/json/json_utils.cc",
1478 "src/trace_processor/importers/json/json_utils.h",
Primiano Tucci50446cb2020-02-14 10:40:23 +00001479 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1480 "src/trace_processor/importers/ninja/ninja_log_parser.h",
Michael Eastwood413e77a2022-02-09 17:02:43 -08001481 "src/trace_processor/importers/proto/android_camera_event_module.cc",
1482 "src/trace_processor/importers/proto/android_camera_event_module.h",
Lalit Magantif7a1a732020-10-12 15:42:34 +01001483 "src/trace_processor/importers/proto/async_track_set_tracker.cc",
1484 "src/trace_processor/importers/proto/async_track_set_tracker.h",
Oystein Eftevaag8e39ed82021-03-30 13:52:58 -07001485 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1486 "src/trace_processor/importers/proto/chrome_string_lookup.h",
ssid7f0c8592021-03-01 13:35:25 -08001487 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1488 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1489 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1490 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Tuchila Octavian8c795cd2021-08-25 09:48:35 +01001491 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.cc",
1492 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001493 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1494 "src/trace_processor/importers/proto/heap_profile_tracker.h",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01001495 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1496 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1497 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1498 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
Lalit Maganti8532fc92021-03-30 15:48:15 +01001499 "src/trace_processor/importers/proto/metadata_module.cc",
1500 "src/trace_processor/importers/proto/metadata_module.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001501 "src/trace_processor/importers/proto/metadata_tracker.cc",
1502 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001503 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001504 "src/trace_processor/importers/proto/packet_sequence_state.h",
Ryan Savitskic6c7e842021-03-10 14:26:59 +00001505 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1506 "src/trace_processor/importers/proto/perf_sample_tracker.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001507 "src/trace_processor/importers/proto/profile_module.cc",
1508 "src/trace_processor/importers/proto/profile_module.h",
1509 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1510 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001511 "src/trace_processor/importers/proto/profiler_util.cc",
1512 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001513 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001514 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001515 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001516 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1517 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001518 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1519 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001520 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1521 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001522 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1523 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001524 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001525 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001526 "src/trace_processor/importers/proto/track_event_parser.cc",
1527 "src/trace_processor/importers/proto/track_event_parser.h",
1528 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1529 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganti62b741f2020-12-10 18:24:00 +00001530 "src/trace_processor/importers/proto/track_event_tracker.cc",
1531 "src/trace_processor/importers/proto/track_event_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001532 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001533 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001534 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci3264b592021-11-08 18:20:51 +00001535 "src/trace_processor/trace_blob.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001536 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001537 "src/trace_processor/trace_processor_storage.cc",
1538 "src/trace_processor/trace_processor_storage_impl.cc",
1539 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001540 "src/trace_processor/trace_sorter.cc",
1541 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001542 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001543 ],
1544)
1545
1546# GN target: //src/traced/probes/android_log:android_log
Harvey Yang321c4fc2021-10-25 14:11:50 +08001547perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001548 name = "src_traced_probes_android_log_android_log",
1549 srcs = [
1550 "src/traced/probes/android_log/android_log_data_source.cc",
1551 "src/traced/probes/android_log/android_log_data_source.h",
1552 ],
1553)
1554
Rafal Slawik8053a682020-04-08 17:26:40 +01001555# GN target: //src/traced/probes/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001556perfetto_filegroup(
Rafal Slawik8053a682020-04-08 17:26:40 +01001557 name = "src_traced_probes_common_common",
1558 srcs = [
1559 "src/traced/probes/common/cpu_freq_info.cc",
1560 "src/traced/probes/common/cpu_freq_info.h",
1561 ],
1562)
1563
Primiano Tucci1d409982019-09-19 10:15:18 +01001564# GN target: //src/traced/probes/filesystem:filesystem
Harvey Yang321c4fc2021-10-25 14:11:50 +08001565perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001566 name = "src_traced_probes_filesystem_filesystem",
1567 srcs = [
1568 "src/traced/probes/filesystem/file_scanner.cc",
1569 "src/traced/probes/filesystem/file_scanner.h",
1570 "src/traced/probes/filesystem/fs_mount.cc",
1571 "src/traced/probes/filesystem/fs_mount.h",
1572 "src/traced/probes/filesystem/inode_file_data_source.cc",
1573 "src/traced/probes/filesystem/inode_file_data_source.h",
1574 "src/traced/probes/filesystem/lru_inode_cache.cc",
1575 "src/traced/probes/filesystem/lru_inode_cache.h",
1576 "src/traced/probes/filesystem/prefix_finder.cc",
1577 "src/traced/probes/filesystem/prefix_finder.h",
1578 "src/traced/probes/filesystem/range_tree.cc",
1579 "src/traced/probes/filesystem/range_tree.h",
1580 ],
1581)
1582
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001583# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001584perfetto_filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001585 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01001586 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001587 "src/traced/probes/ftrace/format_parser/format_parser.cc",
1588 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001589 ],
1590)
1591
1592# GN target: //src/traced/probes/ftrace:ftrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001593perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001594 name = "src_traced_probes_ftrace_ftrace",
1595 srcs = [
1596 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1597 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1598 "src/traced/probes/ftrace/atrace_wrapper.cc",
1599 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001600 "src/traced/probes/ftrace/compact_sched.cc",
1601 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001602 "src/traced/probes/ftrace/cpu_reader.cc",
1603 "src/traced/probes/ftrace/cpu_reader.h",
1604 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1605 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001606 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1607 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001608 "src/traced/probes/ftrace/event_info.cc",
1609 "src/traced/probes/ftrace/event_info.h",
1610 "src/traced/probes/ftrace/event_info_constants.cc",
1611 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001612 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1613 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1614 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1615 "src/traced/probes/ftrace/ftrace_config_utils.h",
1616 "src/traced/probes/ftrace/ftrace_controller.cc",
1617 "src/traced/probes/ftrace/ftrace_controller.h",
1618 "src/traced/probes/ftrace/ftrace_data_source.cc",
1619 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001620 "src/traced/probes/ftrace/ftrace_metadata.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001621 "src/traced/probes/ftrace/ftrace_stats.cc",
1622 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00001623 "src/traced/probes/ftrace/printk_formats_parser.cc",
1624 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001625 "src/traced/probes/ftrace/proto_translation_table.cc",
1626 "src/traced/probes/ftrace/proto_translation_table.h",
1627 ],
1628)
1629
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001630# GN target: //src/traced/probes/ftrace:ftrace_procfs
Harvey Yang321c4fc2021-10-25 14:11:50 +08001631perfetto_filegroup(
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001632 name = "src_traced_probes_ftrace_ftrace_procfs",
1633 srcs = [
1634 "src/traced/probes/ftrace/ftrace_procfs.cc",
1635 "src/traced/probes/ftrace/ftrace_procfs.h",
1636 ],
1637)
1638
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001639# GN target: //src/traced/probes/initial_display_state:initial_display_state
Harvey Yang321c4fc2021-10-25 14:11:50 +08001640perfetto_filegroup(
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001641 name = "src_traced_probes_initial_display_state_initial_display_state",
1642 srcs = [
1643 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1644 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1645 ],
1646)
1647
Primiano Tucci1d409982019-09-19 10:15:18 +01001648# GN target: //src/traced/probes/metatrace:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001649perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001650 name = "src_traced_probes_metatrace_metatrace",
1651 srcs = [
1652 "src/traced/probes/metatrace/metatrace_data_source.cc",
1653 "src/traced/probes/metatrace/metatrace_data_source.h",
1654 ],
1655)
1656
1657# GN target: //src/traced/probes/packages_list:packages_list
Harvey Yang321c4fc2021-10-25 14:11:50 +08001658perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001659 name = "src_traced_probes_packages_list_packages_list",
1660 srcs = [
1661 "src/traced/probes/packages_list/packages_list_data_source.cc",
1662 "src/traced/probes/packages_list/packages_list_data_source.h",
1663 ],
1664)
1665
Florian Mayer29e17182020-12-23 10:59:02 +00001666# GN target: //src/traced/probes/packages_list:packages_list_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001667perfetto_filegroup(
Florian Mayer29e17182020-12-23 10:59:02 +00001668 name = "src_traced_probes_packages_list_packages_list_parser",
1669 srcs = [
1670 "src/traced/probes/packages_list/packages_list_parser.cc",
1671 "src/traced/probes/packages_list/packages_list_parser.h",
1672 ],
1673)
1674
Primiano Tucci1d409982019-09-19 10:15:18 +01001675# GN target: //src/traced/probes/power:power
Harvey Yang321c4fc2021-10-25 14:11:50 +08001676perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001677 name = "src_traced_probes_power_power",
1678 srcs = [
1679 "src/traced/probes/power/android_power_data_source.cc",
1680 "src/traced/probes/power/android_power_data_source.h",
Chinglin Yu819ef1a2021-11-15 22:25:05 +08001681 "src/traced/probes/power/linux_power_sysfs_data_source.cc",
1682 "src/traced/probes/power/linux_power_sysfs_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001683 ],
1684)
1685
1686# GN target: //src/traced/probes/ps:ps
Harvey Yang321c4fc2021-10-25 14:11:50 +08001687perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001688 name = "src_traced_probes_ps_ps",
1689 srcs = [
1690 "src/traced/probes/ps/process_stats_data_source.cc",
1691 "src/traced/probes/ps/process_stats_data_source.h",
1692 ],
1693)
1694
1695# GN target: //src/traced/probes/sys_stats:sys_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +08001696perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001697 name = "src_traced_probes_sys_stats_sys_stats",
1698 srcs = [
1699 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1700 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1701 ],
1702)
1703
Rafal Slawikb013a112020-04-03 16:12:02 +01001704# GN target: //src/traced/probes/system_info:system_info
Harvey Yang321c4fc2021-10-25 14:11:50 +08001705perfetto_filegroup(
Rafal Slawikb013a112020-04-03 16:12:02 +01001706 name = "src_traced_probes_system_info_system_info",
1707 srcs = [
1708 "src/traced/probes/system_info/system_info_data_source.cc",
1709 "src/traced/probes/system_info/system_info_data_source.h",
1710 ],
1711)
1712
Primiano Tucci1d409982019-09-19 10:15:18 +01001713# GN target: //src/traced/probes:data_source
Harvey Yang321c4fc2021-10-25 14:11:50 +08001714perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001715 name = "src_traced_probes_data_source",
1716 srcs = [
1717 "src/traced/probes/probes_data_source.cc",
1718 "src/traced/probes/probes_data_source.h",
1719 ],
1720)
1721
1722# GN target: //src/traced/probes:probes
Harvey Yang321c4fc2021-10-25 14:11:50 +08001723perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001724 name = "src_traced_probes_probes",
1725 srcs = [
1726 "src/traced/probes/probes.cc",
1727 ],
1728)
1729
1730# GN target: //src/traced/probes:probes_src
Harvey Yang321c4fc2021-10-25 14:11:50 +08001731perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001732 name = "src_traced_probes_probes_src",
1733 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05001734 "src/traced/probes/kmem_activity_trigger.cc",
1735 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001736 "src/traced/probes/probes_producer.cc",
1737 "src/traced/probes/probes_producer.h",
1738 ],
1739)
1740
1741# GN target: //src/traced/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001742perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001743 name = "src_traced_service_service",
1744 srcs = [
1745 "src/traced/service/builtin_producer.cc",
1746 "src/traced/service/builtin_producer.h",
1747 "src/traced/service/service.cc",
1748 ],
1749)
1750
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001751# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
Harvey Yang321c4fc2021-10-25 14:11:50 +08001752perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001753 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1754 srcs = [
1755 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1756 ],
1757)
1758
1759# GN target: //src/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +08001760perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001761 name = "src_tracing_core_core",
1762 srcs = [
1763 "src/tracing/core/id_allocator.cc",
1764 "src/tracing/core/id_allocator.h",
1765 "src/tracing/core/null_trace_writer.cc",
1766 "src/tracing/core/null_trace_writer.h",
1767 "src/tracing/core/patch_list.h",
1768 "src/tracing/core/shared_memory_abi.cc",
1769 "src/tracing/core/shared_memory_arbiter_impl.cc",
1770 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001771 "src/tracing/core/trace_packet.cc",
1772 "src/tracing/core/trace_writer_impl.cc",
1773 "src/tracing/core/trace_writer_impl.h",
1774 "src/tracing/core/virtual_destructors.cc",
1775 ],
1776)
1777
1778# GN target: //src/tracing/core:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001779perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001780 name = "src_tracing_core_service",
1781 srcs = [
1782 "src/tracing/core/metatrace_writer.cc",
1783 "src/tracing/core/metatrace_writer.h",
1784 "src/tracing/core/packet_stream_validator.cc",
1785 "src/tracing/core/packet_stream_validator.h",
1786 "src/tracing/core/trace_buffer.cc",
1787 "src/tracing/core/trace_buffer.h",
1788 "src/tracing/core/tracing_service_impl.cc",
1789 "src/tracing/core/tracing_service_impl.h",
1790 ],
1791)
1792
1793# GN target: //src/tracing/ipc/consumer:consumer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001794perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001795 name = "src_tracing_ipc_consumer_consumer",
1796 srcs = [
1797 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1798 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1799 ],
1800)
1801
1802# GN target: //src/tracing/ipc/producer:producer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001803perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001804 name = "src_tracing_ipc_producer_producer",
1805 srcs = [
1806 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1807 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1808 ],
1809)
1810
1811# GN target: //src/tracing/ipc/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001812perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001813 name = "src_tracing_ipc_service_service",
1814 srcs = [
1815 "src/tracing/ipc/service/consumer_ipc_service.cc",
1816 "src/tracing/ipc/service/consumer_ipc_service.h",
1817 "src/tracing/ipc/service/producer_ipc_service.cc",
1818 "src/tracing/ipc/service/producer_ipc_service.h",
1819 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1820 "src/tracing/ipc/service/service_ipc_host_impl.h",
1821 ],
1822)
1823
1824# GN target: //src/tracing/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001825perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001826 name = "src_tracing_ipc_common",
1827 srcs = [
Eric Seckler14a22db2020-02-03 13:47:08 +00001828 "src/tracing/ipc/memfd.cc",
1829 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001830 "src/tracing/ipc/posix_shared_memory.cc",
1831 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001832 "src/tracing/ipc/shared_memory_windows.cc",
1833 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001834 ],
1835)
1836
Primiano Tucci8761a312021-11-25 17:17:23 +00001837# GN target: //src/tracing/ipc:default_socket
1838perfetto_filegroup(
1839 name = "src_tracing_ipc_default_socket",
1840 srcs = [
1841 "src/tracing/ipc/default_socket.cc",
1842 ],
1843)
1844
Primiano Tucci3feec552020-02-04 11:14:42 +00001845# GN target: //src/tracing:client_api_without_backends
Harvey Yang321c4fc2021-10-25 14:11:50 +08001846perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001847 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001848 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001849 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001850 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001851 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001852 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001853 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00001854 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001855 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00001856 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00001857 "src/tracing/internal/tracing_muxer_fake.cc",
1858 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001859 "src/tracing/internal/tracing_muxer_impl.cc",
1860 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001861 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00001862 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001863 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00001864 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001865 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01001866 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001867 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001868 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001869 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001870 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001871 "src/tracing/virtual_destructors.cc",
1872 ],
1873)
1874
Primiano Tucci1d409982019-09-19 10:15:18 +01001875# GN target: //src/tracing:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001876perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001877 name = "src_tracing_common",
1878 srcs = [
1879 "src/tracing/trace_writer_base.cc",
1880 ],
1881)
1882
Primiano Tucci55b4d912020-01-28 11:17:51 +00001883# GN target: //src/tracing:in_process_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001884perfetto_filegroup(
Primiano Tucci55b4d912020-01-28 11:17:51 +00001885 name = "src_tracing_in_process_backend",
1886 srcs = [
1887 "src/tracing/internal/in_process_tracing_backend.cc",
1888 ],
1889)
1890
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001891# GN target: //src/tracing:platform_impl
Harvey Yang321c4fc2021-10-25 14:11:50 +08001892perfetto_filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001893 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001894 srcs = [
1895 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001896 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001897 ],
1898)
1899
Primiano Tucci3feec552020-02-04 11:14:42 +00001900# GN target: //src/tracing:system_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001901perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001902 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001903 srcs = [
1904 "src/tracing/internal/system_tracing_backend.cc",
1905 ],
1906)
1907
Lalit Maganti9c2318c2021-05-20 16:21:41 +01001908perfetto_cc_proto_descriptor(
1909 name = "tools_trace_to_text_gen_cc_trace_descriptor",
1910 deps = [
1911 ":protos_perfetto_trace_descriptor",
1912 ],
1913 outs = [
1914 "tools/trace_to_text/trace.descriptor.h",
1915 ],
1916)
1917
Mohit Sainidc2a57b2022-03-04 15:17:25 +00001918# GN target: //tools/trace_to_text:lib
1919perfetto_filegroup(
1920 name = "tools_trace_to_text_lib",
1921 srcs = [
1922 "tools/trace_to_text/deobfuscate_profile.cc",
1923 "tools/trace_to_text/deobfuscate_profile.h",
1924 "tools/trace_to_text/symbolize_profile.cc",
1925 "tools/trace_to_text/symbolize_profile.h",
1926 "tools/trace_to_text/trace_to_hprof.cc",
1927 "tools/trace_to_text/trace_to_hprof.h",
1928 "tools/trace_to_text/trace_to_json.cc",
1929 "tools/trace_to_text/trace_to_json.h",
1930 "tools/trace_to_text/trace_to_profile.cc",
1931 "tools/trace_to_text/trace_to_profile.h",
1932 "tools/trace_to_text/trace_to_systrace.cc",
1933 "tools/trace_to_text/trace_to_systrace.h",
1934 "tools/trace_to_text/trace_to_text.cc",
1935 "tools/trace_to_text/trace_to_text.h",
1936 ],
1937)
1938
1939# GN target: //tools/trace_to_text:main
1940perfetto_filegroup(
1941 name = "tools_trace_to_text_main",
1942 srcs = [
1943 "tools/trace_to_text/main.cc",
1944 ],
1945)
1946
Primiano Tucci1d409982019-09-19 10:15:18 +01001947# GN target: //tools/trace_to_text:pprofbuilder
Harvey Yang321c4fc2021-10-25 14:11:50 +08001948perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001949 name = "tools_trace_to_text_pprofbuilder",
1950 srcs = [
1951 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001952 ],
1953)
1954
Primiano Tucci1d409982019-09-19 10:15:18 +01001955# GN target: //tools/trace_to_text:utils
Harvey Yang321c4fc2021-10-25 14:11:50 +08001956perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001957 name = "tools_trace_to_text_utils",
1958 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001959 "tools/trace_to_text/utils.cc",
1960 "tools/trace_to_text/utils.h",
1961 ],
1962)
1963
Primiano Tucci1d409982019-09-19 10:15:18 +01001964# ##############################################################################
1965# Proto libraries
1966# ##############################################################################
1967
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00001968# GN target: [//protos/perfetto/config:source_set]
1969perfetto_proto_library(
1970 name = "config_proto",
1971 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001972 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00001973 ":protos_perfetto_common_protos",
1974 ":protos_perfetto_config_android_protos",
1975 ":protos_perfetto_config_ftrace_protos",
1976 ":protos_perfetto_config_gpu_protos",
1977 ":protos_perfetto_config_inode_file_protos",
1978 ":protos_perfetto_config_interceptors_protos",
1979 ":protos_perfetto_config_power_protos",
1980 ":protos_perfetto_config_process_stats_protos",
1981 ":protos_perfetto_config_profiling_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00001982 ":protos_perfetto_config_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00001983 ":protos_perfetto_config_sys_stats_protos",
1984 ":protos_perfetto_config_track_event_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001985 ],
1986)
1987
Lalit Magantie69b1dc2022-02-25 20:21:57 +00001988# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti16c28ca2022-02-17 12:20:07 +00001989perfetto_cc_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00001990 name = "config_cc_proto",
1991 visibility = PERFETTO_CONFIG.public_visibility,
1992 deps = [
1993 ":config_proto",
1994 ],
1995)
1996
Lalit Magantie69b1dc2022-02-25 20:21:57 +00001997# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00001998perfetto_java_proto_library(
1999 name = "config_java_proto",
2000 visibility = PERFETTO_CONFIG.public_visibility,
2001 deps = [
2002 ":config_proto",
2003 ],
2004)
2005
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002006# GN target: [//protos/perfetto/config:source_set]
2007perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002008 name = "config_java_proto_lite",
2009 visibility = PERFETTO_CONFIG.public_visibility,
2010 deps = [
2011 ":config_proto",
2012 ],
2013)
2014
2015# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2016perfetto_proto_library(
2017 name = "trace_proto",
2018 visibility = PERFETTO_CONFIG.public_visibility,
2019 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002020 ":protos_perfetto_common_protos",
2021 ":protos_perfetto_config_android_protos",
2022 ":protos_perfetto_config_ftrace_protos",
2023 ":protos_perfetto_config_gpu_protos",
2024 ":protos_perfetto_config_inode_file_protos",
2025 ":protos_perfetto_config_interceptors_protos",
2026 ":protos_perfetto_config_power_protos",
2027 ":protos_perfetto_config_process_stats_protos",
2028 ":protos_perfetto_config_profiling_protos",
2029 ":protos_perfetto_config_protos",
2030 ":protos_perfetto_config_sys_stats_protos",
2031 ":protos_perfetto_config_track_event_protos",
2032 ":protos_perfetto_trace_android_protos",
2033 ":protos_perfetto_trace_chrome_protos",
2034 ":protos_perfetto_trace_filesystem_protos",
2035 ":protos_perfetto_trace_ftrace_protos",
2036 ":protos_perfetto_trace_gpu_protos",
2037 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002038 ":protos_perfetto_trace_minimal_protos",
2039 ":protos_perfetto_trace_non_minimal_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002040 ":protos_perfetto_trace_perfetto_protos",
2041 ":protos_perfetto_trace_power_protos",
2042 ":protos_perfetto_trace_profiling_protos",
2043 ":protos_perfetto_trace_ps_protos",
2044 ":protos_perfetto_trace_sys_stats_protos",
2045 ":protos_perfetto_trace_system_info_protos",
2046 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00002047 ":protos_perfetto_trace_translation_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002048 ],
2049)
2050
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002051# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002052perfetto_cc_proto_library(
2053 name = "trace_cc_proto",
2054 visibility = PERFETTO_CONFIG.public_visibility,
2055 deps = [
2056 ":trace_proto",
2057 ],
2058)
2059
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002060# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002061perfetto_java_proto_library(
2062 name = "trace_java_proto",
2063 visibility = PERFETTO_CONFIG.public_visibility,
2064 deps = [
2065 ":trace_proto",
2066 ],
2067)
2068
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002069# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2070perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002071 name = "trace_java_proto_lite",
2072 visibility = PERFETTO_CONFIG.public_visibility,
2073 deps = [
2074 ":trace_proto",
2075 ],
2076)
2077
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002078# GN target: [//protos/perfetto/metrics:source_set]
2079perfetto_proto_library(
2080 name = "metrics_proto",
2081 visibility = PERFETTO_CONFIG.public_visibility,
2082 deps = [
2083 ":protos_perfetto_metrics_android_protos",
2084 ":protos_perfetto_metrics_protos",
2085 ],
2086)
2087
2088# GN target: [//protos/perfetto/metrics:source_set]
2089perfetto_cc_proto_library(
2090 name = "metrics_cc_proto",
2091 visibility = PERFETTO_CONFIG.public_visibility,
2092 deps = [
2093 ":metrics_proto",
2094 ],
2095)
2096
2097# GN target: [//protos/perfetto/metrics:source_set]
2098perfetto_java_proto_library(
2099 name = "metrics_java_proto",
2100 visibility = PERFETTO_CONFIG.public_visibility,
2101 deps = [
2102 ":metrics_proto",
2103 ],
2104)
2105
2106# GN target: [//protos/perfetto/metrics:source_set]
2107perfetto_java_lite_proto_library(
2108 name = "metrics_java_proto_lite",
2109 visibility = PERFETTO_CONFIG.public_visibility,
2110 deps = [
2111 ":metrics_proto",
2112 ],
2113)
2114
2115# GN target: [//protos/third_party/chromium:source_set]
2116perfetto_proto_library(
2117 name = "chromium_proto",
2118 visibility = PERFETTO_CONFIG.public_visibility,
2119 deps = [
2120 ":protos_perfetto_trace_track_event_protos",
2121 ":protos_third_party_chromium_protos",
2122 ],
2123)
2124
2125# GN target: [//protos/third_party/chromium:source_set]
2126perfetto_cc_proto_library(
2127 name = "chromium_cc_proto",
2128 visibility = PERFETTO_CONFIG.public_visibility,
2129 deps = [
2130 ":chromium_proto",
2131 ],
2132)
2133
2134# GN target: [//protos/third_party/chromium:source_set]
2135perfetto_java_proto_library(
2136 name = "chromium_java_proto",
2137 visibility = PERFETTO_CONFIG.public_visibility,
2138 deps = [
2139 ":chromium_proto",
2140 ],
2141)
2142
2143# GN target: [//protos/third_party/chromium:source_set]
2144perfetto_java_lite_proto_library(
2145 name = "chromium_java_proto_lite",
2146 visibility = PERFETTO_CONFIG.public_visibility,
2147 deps = [
2148 ":chromium_proto",
2149 ],
2150)
2151
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002152# GN target: //protos/perfetto/common:cpp
2153perfetto_cc_protocpp_library(
2154 name = "protos_perfetto_common_cpp",
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002155 deps = [
2156 ":protos_perfetto_common_protos",
2157 ],
2158)
2159
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002160# GN target: //protos/perfetto/common:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002161perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002162 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002163 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08002164 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002165 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01002166 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002167 "protos/perfetto/common/commit_data_request.proto",
2168 "protos/perfetto/common/data_source_descriptor.proto",
2169 "protos/perfetto/common/descriptor.proto",
Daniele Di Proietto97c33812022-02-21 13:49:52 +00002170 "protos/perfetto/common/ftrace_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002171 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002172 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002173 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002174 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002175 "protos/perfetto/common/sys_stats_counters.proto",
2176 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00002177 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002178 "protos/perfetto/common/tracing_service_state.proto",
2179 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002180 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002181 visibility = [
2182 PERFETTO_CONFIG.proto_library_visibility,
2183 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002184)
2185
2186# GN target: //protos/perfetto/common:zero
2187perfetto_cc_protozero_library(
2188 name = "protos_perfetto_common_zero",
2189 deps = [
2190 ":protos_perfetto_common_protos",
2191 ],
2192)
2193
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002194# GN target: //protos/perfetto/config/android:cpp
2195perfetto_cc_protocpp_library(
2196 name = "protos_perfetto_config_android_cpp",
2197 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002198 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002199 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002200 ],
2201)
2202
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002203# GN target: //protos/perfetto/config/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002204perfetto_proto_library(
2205 name = "protos_perfetto_config_android_protos",
2206 srcs = [
2207 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01002208 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002209 "protos/perfetto/config/android/packages_list_config.proto",
2210 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002211 visibility = [
2212 PERFETTO_CONFIG.proto_library_visibility,
2213 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002214 deps = [
2215 ":protos_perfetto_common_protos",
2216 ],
2217)
2218
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002219# GN target: //protos/perfetto/config/android:zero
2220perfetto_cc_protozero_library(
2221 name = "protos_perfetto_config_android_zero",
2222 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002223 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002224 ":protos_perfetto_config_android_protos",
2225 ],
2226)
2227
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002228# GN target: //protos/perfetto/config:cpp
2229perfetto_cc_protocpp_library(
2230 name = "protos_perfetto_config_cpp",
2231 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01002232 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002233 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002234 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002235 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002236 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002237 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002238 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002239 ":protos_perfetto_config_process_stats_cpp",
2240 ":protos_perfetto_config_profiling_cpp",
2241 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002242 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002243 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002244 ],
2245)
2246
Hector Dearmana1d75242020-10-02 09:47:24 +01002247# GN target: //protos/perfetto/config:descriptor
2248perfetto_proto_descriptor(
2249 name = "protos_perfetto_config_descriptor",
2250 deps = [
2251 ":protos_perfetto_config_protos",
2252 ],
2253 outs = [
2254 "protos_perfetto_config_descriptor.bin",
2255 ],
2256)
2257
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002258# GN target: //protos/perfetto/config/ftrace:cpp
2259perfetto_cc_protocpp_library(
2260 name = "protos_perfetto_config_ftrace_cpp",
2261 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002262 ":protos_perfetto_config_ftrace_protos",
2263 ],
2264)
2265
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002266# GN target: //protos/perfetto/config/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002267perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002268 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002269 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002270 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002271 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002272 visibility = [
2273 PERFETTO_CONFIG.proto_library_visibility,
2274 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002275)
2276
2277# GN target: //protos/perfetto/config/ftrace:zero
2278perfetto_cc_protozero_library(
2279 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002280 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002281 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002282 ],
2283)
2284
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002285# GN target: //protos/perfetto/config/gpu:cpp
2286perfetto_cc_protocpp_library(
2287 name = "protos_perfetto_config_gpu_cpp",
2288 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002289 ":protos_perfetto_config_gpu_protos",
2290 ],
2291)
2292
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002293# GN target: //protos/perfetto/config/gpu:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002294perfetto_proto_library(
2295 name = "protos_perfetto_config_gpu_protos",
2296 srcs = [
2297 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05002298 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002299 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002300 visibility = [
2301 PERFETTO_CONFIG.proto_library_visibility,
2302 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002303)
2304
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002305# GN target: //protos/perfetto/config/gpu:zero
2306perfetto_cc_protozero_library(
2307 name = "protos_perfetto_config_gpu_zero",
2308 deps = [
2309 ":protos_perfetto_config_gpu_protos",
2310 ],
2311)
2312
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002313# GN target: //protos/perfetto/config/inode_file:cpp
2314perfetto_cc_protocpp_library(
2315 name = "protos_perfetto_config_inode_file_cpp",
2316 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002317 ":protos_perfetto_config_inode_file_protos",
2318 ],
2319)
2320
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002321# GN target: //protos/perfetto/config/inode_file:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002322perfetto_proto_library(
2323 name = "protos_perfetto_config_inode_file_protos",
2324 srcs = [
2325 "protos/perfetto/config/inode_file/inode_file_config.proto",
2326 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002327 visibility = [
2328 PERFETTO_CONFIG.proto_library_visibility,
2329 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002330)
2331
2332# GN target: //protos/perfetto/config/inode_file:zero
2333perfetto_cc_protozero_library(
2334 name = "protos_perfetto_config_inode_file_zero",
2335 deps = [
2336 ":protos_perfetto_config_inode_file_protos",
2337 ],
2338)
2339
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002340# GN target: //protos/perfetto/config/interceptors:cpp
2341perfetto_cc_protocpp_library(
2342 name = "protos_perfetto_config_interceptors_cpp",
2343 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002344 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002345 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002346 ],
2347)
2348
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002349# GN target: //protos/perfetto/config/interceptors:source_set
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002350perfetto_proto_library(
2351 name = "protos_perfetto_config_interceptors_protos",
2352 srcs = [
2353 "protos/perfetto/config/interceptors/console_config.proto",
2354 ],
2355 visibility = [
2356 PERFETTO_CONFIG.proto_library_visibility,
2357 ],
2358 deps = [
2359 ":protos_perfetto_common_protos",
2360 ],
2361)
2362
2363# GN target: //protos/perfetto/config/interceptors:zero
2364perfetto_cc_protozero_library(
2365 name = "protos_perfetto_config_interceptors_zero",
2366 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002367 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002368 ":protos_perfetto_config_interceptors_protos",
2369 ],
2370)
2371
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002372# GN target: //protos/perfetto/config/power:cpp
2373perfetto_cc_protocpp_library(
2374 name = "protos_perfetto_config_power_cpp",
2375 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002376 ":protos_perfetto_config_power_protos",
2377 ],
2378)
2379
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002380# GN target: //protos/perfetto/config/power:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002381perfetto_proto_library(
2382 name = "protos_perfetto_config_power_protos",
2383 srcs = [
2384 "protos/perfetto/config/power/android_power_config.proto",
2385 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002386 visibility = [
2387 PERFETTO_CONFIG.proto_library_visibility,
2388 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002389)
2390
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002391# GN target: //protos/perfetto/config/power:zero
2392perfetto_cc_protozero_library(
2393 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002394 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002395 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002396 ],
2397)
2398
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002399# GN target: //protos/perfetto/config/process_stats:cpp
2400perfetto_cc_protocpp_library(
2401 name = "protos_perfetto_config_process_stats_cpp",
2402 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002403 ":protos_perfetto_config_process_stats_protos",
2404 ],
2405)
2406
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002407# GN target: //protos/perfetto/config/process_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002408perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002409 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002410 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002411 "protos/perfetto/config/process_stats/process_stats_config.proto",
2412 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002413 visibility = [
2414 PERFETTO_CONFIG.proto_library_visibility,
2415 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002416)
2417
2418# GN target: //protos/perfetto/config/process_stats:zero
2419perfetto_cc_protozero_library(
2420 name = "protos_perfetto_config_process_stats_zero",
2421 deps = [
2422 ":protos_perfetto_config_process_stats_protos",
2423 ],
2424)
2425
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002426# GN target: //protos/perfetto/config/profiling:cpp
2427perfetto_cc_protocpp_library(
2428 name = "protos_perfetto_config_profiling_cpp",
2429 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002430 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002431 ":protos_perfetto_config_profiling_protos",
2432 ],
2433)
2434
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002435# GN target: //protos/perfetto/config/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002436perfetto_proto_library(
2437 name = "protos_perfetto_config_profiling_protos",
2438 srcs = [
2439 "protos/perfetto/config/profiling/heapprofd_config.proto",
2440 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00002441 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002442 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002443 visibility = [
2444 PERFETTO_CONFIG.proto_library_visibility,
2445 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002446 deps = [
2447 ":protos_perfetto_common_protos",
2448 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002449)
2450
2451# GN target: //protos/perfetto/config/profiling:zero
2452perfetto_cc_protozero_library(
2453 name = "protos_perfetto_config_profiling_zero",
2454 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002455 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002456 ":protos_perfetto_config_profiling_protos",
2457 ],
2458)
2459
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002460# GN target: //protos/perfetto/config:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002461perfetto_proto_library(
2462 name = "protos_perfetto_config_protos",
2463 srcs = [
2464 "protos/perfetto/config/chrome/chrome_config.proto",
2465 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002466 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02002467 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002468 "protos/perfetto/config/test_config.proto",
2469 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002470 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002471 visibility = [
2472 PERFETTO_CONFIG.proto_library_visibility,
2473 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002474 deps = [
2475 ":protos_perfetto_common_protos",
2476 ":protos_perfetto_config_android_protos",
2477 ":protos_perfetto_config_ftrace_protos",
2478 ":protos_perfetto_config_gpu_protos",
2479 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002480 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002481 ":protos_perfetto_config_power_protos",
2482 ":protos_perfetto_config_process_stats_protos",
2483 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002484 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002485 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002486 ],
2487)
2488
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002489# GN target: //protos/perfetto/config/sys_stats:cpp
2490perfetto_cc_protocpp_library(
2491 name = "protos_perfetto_config_sys_stats_cpp",
2492 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002493 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002494 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002495 ],
2496)
2497
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002498# GN target: //protos/perfetto/config/sys_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002499perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002500 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002501 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002502 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002503 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002504 visibility = [
2505 PERFETTO_CONFIG.proto_library_visibility,
2506 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002507 deps = [
2508 ":protos_perfetto_common_protos",
2509 ],
2510)
2511
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002512# GN target: //protos/perfetto/config/sys_stats:zero
2513perfetto_cc_protozero_library(
2514 name = "protos_perfetto_config_sys_stats_zero",
2515 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002516 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002517 ":protos_perfetto_config_sys_stats_protos",
2518 ],
2519)
2520
Sami Kyostila38cd0412020-02-12 17:09:52 +00002521# GN target: //protos/perfetto/config/track_event:cpp
2522perfetto_cc_protocpp_library(
2523 name = "protos_perfetto_config_track_event_cpp",
2524 deps = [
2525 ":protos_perfetto_config_track_event_protos",
2526 ],
2527)
2528
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002529# GN target: //protos/perfetto/config/track_event:source_set
Sami Kyostila38cd0412020-02-12 17:09:52 +00002530perfetto_proto_library(
2531 name = "protos_perfetto_config_track_event_protos",
2532 srcs = [
2533 "protos/perfetto/config/track_event/track_event_config.proto",
2534 ],
2535 visibility = [
2536 PERFETTO_CONFIG.proto_library_visibility,
2537 ],
2538)
2539
2540# GN target: //protos/perfetto/config/track_event:zero
2541perfetto_cc_protozero_library(
2542 name = "protos_perfetto_config_track_event_zero",
2543 deps = [
2544 ":protos_perfetto_config_track_event_protos",
2545 ],
2546)
2547
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002548# GN target: //protos/perfetto/config:zero
2549perfetto_cc_protozero_library(
2550 name = "protos_perfetto_config_zero",
2551 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002552 ":protos_perfetto_common_zero",
2553 ":protos_perfetto_config_android_zero",
2554 ":protos_perfetto_config_ftrace_zero",
2555 ":protos_perfetto_config_gpu_zero",
2556 ":protos_perfetto_config_inode_file_zero",
2557 ":protos_perfetto_config_interceptors_zero",
2558 ":protos_perfetto_config_power_zero",
2559 ":protos_perfetto_config_process_stats_zero",
2560 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002561 ":protos_perfetto_config_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002562 ":protos_perfetto_config_sys_stats_zero",
2563 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002564 ],
2565)
2566
Primiano Tuccie8020f92019-11-26 13:24:01 +00002567# GN target: //protos/perfetto/ipc:cpp
2568perfetto_cc_protocpp_library(
2569 name = "protos_perfetto_ipc_cpp",
2570 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002571 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002572 ":protos_perfetto_config_android_cpp",
2573 ":protos_perfetto_config_cpp",
2574 ":protos_perfetto_config_ftrace_cpp",
2575 ":protos_perfetto_config_gpu_cpp",
2576 ":protos_perfetto_config_inode_file_cpp",
2577 ":protos_perfetto_config_interceptors_cpp",
2578 ":protos_perfetto_config_power_cpp",
2579 ":protos_perfetto_config_process_stats_cpp",
2580 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002581 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002582 ":protos_perfetto_config_track_event_cpp",
2583 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002584 ],
2585)
2586
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002587# GN target: //protos/perfetto/ipc:ipc
2588perfetto_cc_ipc_library(
2589 name = "protos_perfetto_ipc_ipc",
2590 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00002591 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002592 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002593 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002594 ":protos_perfetto_config_ftrace_cpp",
2595 ":protos_perfetto_config_gpu_cpp",
2596 ":protos_perfetto_config_inode_file_cpp",
2597 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002598 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002599 ":protos_perfetto_config_process_stats_cpp",
2600 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002601 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002602 ":protos_perfetto_config_track_event_cpp",
2603 ":protos_perfetto_ipc_cpp",
2604 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002605 ],
2606)
2607
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002608# GN target: //protos/perfetto/ipc:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002609perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002610 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002611 srcs = [
2612 "protos/perfetto/ipc/consumer_port.proto",
2613 "protos/perfetto/ipc/producer_port.proto",
2614 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002615 visibility = [
2616 PERFETTO_CONFIG.proto_library_visibility,
2617 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002618 deps = [
2619 ":protos_perfetto_common_protos",
2620 ":protos_perfetto_config_android_protos",
2621 ":protos_perfetto_config_ftrace_protos",
2622 ":protos_perfetto_config_gpu_protos",
2623 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002624 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002625 ":protos_perfetto_config_power_protos",
2626 ":protos_perfetto_config_process_stats_protos",
2627 ":protos_perfetto_config_profiling_protos",
2628 ":protos_perfetto_config_protos",
2629 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002630 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002631 ],
2632)
2633
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002634# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2635perfetto_cc_protocpp_library(
2636 name = "protos_perfetto_ipc_wire_protocol_cpp",
2637 deps = [
2638 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002639 ],
2640)
2641
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002642# GN target: //protos/perfetto/ipc:wire_protocol_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002643perfetto_proto_library(
2644 name = "protos_perfetto_ipc_wire_protocol_protos",
2645 srcs = [
2646 "protos/perfetto/ipc/wire_protocol.proto",
2647 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002648 visibility = [
2649 PERFETTO_CONFIG.proto_library_visibility,
2650 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002651)
2652
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002653# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002654perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002655 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002656 srcs = [
David LeGare20d39c42022-01-20 20:38:43 +00002657 "protos/perfetto/metrics/android/android_trusty_workqueues.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002658 "protos/perfetto/metrics/android/batt_metric.proto",
Lalit Maganti262252a2021-10-15 12:17:53 +01002659 "protos/perfetto/metrics/android/camera_metric.proto",
Lalit Magantic16c7212021-12-16 17:32:55 +00002660 "protos/perfetto/metrics/android/camera_unagg_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002661 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002662 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07002663 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Luke Chang476e9442021-11-09 23:14:34 +08002664 "protos/perfetto/metrics/android/dvfs_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08002665 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08002666 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002667 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08002668 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002669 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002670 "protos/perfetto/metrics/android/ion_metric.proto",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08002671 "protos/perfetto/metrics/android/irq_runtime_metric.proto",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00002672 "protos/perfetto/metrics/android/jank_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002673 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002674 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002675 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002676 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002677 "protos/perfetto/metrics/android/mem_metric.proto",
2678 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Adam Bookatzd5aa7632021-08-25 16:13:44 -07002679 "protos/perfetto/metrics/android/multiuser_metric.proto",
Luke Change25d2c42021-12-07 16:08:32 +08002680 "protos/perfetto/metrics/android/network_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002681 "protos/perfetto/metrics/android/package_list.proto",
2682 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002683 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01002684 "protos/perfetto/metrics/android/profiler_smaps.proto",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08002685 "protos/perfetto/metrics/android/rt_runtime_metric.proto",
Wiwit Rifa'ia944ed62021-09-29 15:11:18 +08002686 "protos/perfetto/metrics/android/simpleperf.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002687 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002688 "protos/perfetto/metrics/android/surfaceflinger.proto",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00002689 "protos/perfetto/metrics/android/sysui_cuj_metrics.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002690 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002691 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01002692 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002693 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002694 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00002695 visibility = [
2696 PERFETTO_CONFIG.proto_library_visibility,
2697 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002698)
2699
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002700# GN target: //protos/perfetto/metrics/chrome:descriptor
2701perfetto_proto_descriptor(
2702 name = "protos_perfetto_metrics_chrome_descriptor",
2703 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002704 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002705 ],
2706 outs = [
2707 "protos_perfetto_metrics_chrome_descriptor.bin",
2708 ],
2709)
2710
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002711# GN target: //protos/perfetto/metrics/chrome:source_set
2712perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002713 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002714 srcs = [
2715 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01002716 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mingjing Zhang309a1c02021-11-04 22:41:40 -04002717 "protos/perfetto/metrics/chrome/dropped_frames.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00002718 "protos/perfetto/metrics/chrome/frame_times.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01002719 "protos/perfetto/metrics/chrome/media_metric.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00002720 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01002721 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002722 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
Dan Elphick08baa102021-09-02 16:06:44 +01002723 "protos/perfetto/metrics/chrome/touch_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002724 ],
2725 visibility = [
2726 PERFETTO_CONFIG.proto_library_visibility,
2727 ],
2728 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002729 ":protos_perfetto_metrics_android_protos",
2730 ":protos_perfetto_metrics_custom_options_protos",
2731 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002732 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2733)
2734
2735# GN target: //protos/perfetto/metrics:custom_options_source_set
2736perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002737 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002738 srcs = [
2739 "protos/perfetto/metrics/custom_options.proto",
2740 ],
2741 visibility = [
2742 PERFETTO_CONFIG.proto_library_visibility,
2743 ],
2744 deps = [
2745 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2746)
2747
Lalit Maganti117272f2020-09-11 14:01:18 +01002748# GN target: //protos/perfetto/metrics:descriptor
2749perfetto_proto_descriptor(
2750 name = "protos_perfetto_metrics_descriptor",
2751 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002752 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002753 ],
2754 outs = [
2755 "protos_perfetto_metrics_descriptor.bin",
2756 ],
2757)
2758
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002759# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002760perfetto_proto_library(
2761 name = "protos_perfetto_metrics_protos",
2762 srcs = [
2763 "protos/perfetto/metrics/metrics.proto",
2764 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00002765 visibility = [
2766 PERFETTO_CONFIG.proto_library_visibility,
2767 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002768 deps = [
2769 ":protos_perfetto_metrics_android_protos",
2770 ],
2771)
2772
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002773# GN target: //protos/perfetto/trace/android:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002774perfetto_proto_library(
2775 name = "protos_perfetto_trace_android_protos",
2776 srcs = [
2777 "protos/perfetto/trace/android/android_log.proto",
Michael Eastwoodeb86b892022-01-20 15:59:09 -08002778 "protos/perfetto/trace/android/camera_event.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08002779 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002780 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002781 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002782 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002783 "protos/perfetto/trace/android/packages_list.proto",
2784 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002785 visibility = [
2786 PERFETTO_CONFIG.proto_library_visibility,
2787 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002788 deps = [
2789 ":protos_perfetto_common_protos",
2790 ],
2791)
2792
2793# GN target: //protos/perfetto/trace/android:zero
2794perfetto_cc_protozero_library(
2795 name = "protos_perfetto_trace_android_zero",
2796 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002797 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002798 ":protos_perfetto_trace_android_protos",
2799 ],
2800)
2801
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002802# GN target: //protos/perfetto/trace/chrome:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002803perfetto_proto_library(
2804 name = "protos_perfetto_trace_chrome_protos",
2805 srcs = [
2806 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2807 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2808 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2809 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002810 visibility = [
2811 PERFETTO_CONFIG.proto_library_visibility,
2812 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002813)
2814
2815# GN target: //protos/perfetto/trace/chrome:zero
2816perfetto_cc_protozero_library(
2817 name = "protos_perfetto_trace_chrome_zero",
2818 deps = [
2819 ":protos_perfetto_trace_chrome_protos",
2820 ],
2821)
2822
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002823# GN target: //protos/perfetto/trace:descriptor
2824perfetto_proto_descriptor(
2825 name = "protos_perfetto_trace_descriptor",
2826 deps = [
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002827 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002828 ],
2829 outs = [
2830 "protos_perfetto_trace_descriptor.bin",
2831 ],
2832)
2833
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002834# GN target: //protos/perfetto/trace/filesystem:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002835perfetto_proto_library(
2836 name = "protos_perfetto_trace_filesystem_protos",
2837 srcs = [
2838 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2839 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002840 visibility = [
2841 PERFETTO_CONFIG.proto_library_visibility,
2842 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002843)
2844
2845# GN target: //protos/perfetto/trace/filesystem:zero
2846perfetto_cc_protozero_library(
2847 name = "protos_perfetto_trace_filesystem_zero",
2848 deps = [
2849 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002850 ],
2851)
2852
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002853# GN target: //protos/perfetto/trace/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002854perfetto_proto_library(
2855 name = "protos_perfetto_trace_ftrace_protos",
2856 srcs = [
2857 "protos/perfetto/trace/ftrace/binder.proto",
2858 "protos/perfetto/trace/ftrace/block.proto",
2859 "protos/perfetto/trace/ftrace/cgroup.proto",
2860 "protos/perfetto/trace/ftrace/clk.proto",
2861 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002862 "protos/perfetto/trace/ftrace/cpuhp.proto",
Harvey Yangcb9754b2022-02-09 18:13:06 +08002863 "protos/perfetto/trace/ftrace/cros_ec.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07002864 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002865 "protos/perfetto/trace/ftrace/dpu.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002866 "protos/perfetto/trace/ftrace/ext4.proto",
2867 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01002868 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002869 "protos/perfetto/trace/ftrace/fence.proto",
2870 "protos/perfetto/trace/ftrace/filemap.proto",
2871 "protos/perfetto/trace/ftrace/ftrace.proto",
2872 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2873 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2874 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002875 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002876 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002877 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002878 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002879 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002880 "protos/perfetto/trace/ftrace/ipi.proto",
2881 "protos/perfetto/trace/ftrace/irq.proto",
2882 "protos/perfetto/trace/ftrace/kmem.proto",
Primiano Tuccif954f862022-03-04 13:58:18 +00002883 "protos/perfetto/trace/ftrace/kvm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002884 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00002885 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002886 "protos/perfetto/trace/ftrace/mdss.proto",
2887 "protos/perfetto/trace/ftrace/mm_event.proto",
Luke Chang496f94a2021-12-03 17:13:00 +08002888 "protos/perfetto/trace/ftrace/net.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002889 "protos/perfetto/trace/ftrace/oom.proto",
2890 "protos/perfetto/trace/ftrace/power.proto",
2891 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2892 "protos/perfetto/trace/ftrace/regulator.proto",
2893 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002894 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002895 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002896 "protos/perfetto/trace/ftrace/signal.proto",
Luke Changd041e6e2022-02-25 13:24:42 +08002897 "protos/perfetto/trace/ftrace/skb.proto",
Luke Chang1b904072022-01-26 09:33:19 +08002898 "protos/perfetto/trace/ftrace/sock.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002899 "protos/perfetto/trace/ftrace/sync.proto",
Kalesh Singh84f62e42021-11-15 19:01:23 -08002900 "protos/perfetto/trace/ftrace/synthetic.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002901 "protos/perfetto/trace/ftrace/systrace.proto",
2902 "protos/perfetto/trace/ftrace/task.proto",
Luke Chang4eb23ab2022-01-27 16:31:46 +08002903 "protos/perfetto/trace/ftrace/tcp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002904 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002905 "protos/perfetto/trace/ftrace/thermal.proto",
YH Linbce42862022-03-15 02:45:18 +08002906 "protos/perfetto/trace/ftrace/ufs.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002907 "protos/perfetto/trace/ftrace/vmscan.proto",
2908 "protos/perfetto/trace/ftrace/workqueue.proto",
2909 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002910 visibility = [
2911 PERFETTO_CONFIG.proto_library_visibility,
2912 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002913)
2914
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002915# GN target: //protos/perfetto/trace/ftrace:zero
2916perfetto_cc_protozero_library(
2917 name = "protos_perfetto_trace_ftrace_zero",
2918 deps = [
2919 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002920 ],
2921)
2922
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002923# GN target: //protos/perfetto/trace/gpu:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002924perfetto_proto_library(
2925 name = "protos_perfetto_trace_gpu_protos",
2926 srcs = [
2927 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07002928 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002929 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08002930 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002931 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
2932 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002933 visibility = [
2934 PERFETTO_CONFIG.proto_library_visibility,
2935 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002936 deps = [
2937 ":protos_perfetto_common_protos",
2938 ],
2939)
2940
2941# GN target: //protos/perfetto/trace/gpu:zero
2942perfetto_cc_protozero_library(
2943 name = "protos_perfetto_trace_gpu_zero",
2944 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002945 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002946 ":protos_perfetto_trace_gpu_protos",
2947 ],
2948)
2949
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002950# GN target: //protos/perfetto/trace/interned_data:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002951perfetto_proto_library(
2952 name = "protos_perfetto_trace_interned_data_protos",
2953 srcs = [
2954 "protos/perfetto/trace/interned_data/interned_data.proto",
2955 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002956 visibility = [
2957 PERFETTO_CONFIG.proto_library_visibility,
2958 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002959 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07002960 ":protos_perfetto_common_protos",
2961 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002962 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002963 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002964 ],
2965)
2966
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002967# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002968perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002969 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002970 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002971 ":protos_perfetto_common_zero",
2972 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002973 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002974 ":protos_perfetto_trace_profiling_zero",
2975 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002976 ],
2977)
2978
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002979# GN target: //protos/perfetto/trace:minimal_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002980perfetto_proto_library(
2981 name = "protos_perfetto_trace_minimal_protos",
2982 srcs = [
2983 "protos/perfetto/trace/clock_snapshot.proto",
2984 "protos/perfetto/trace/system_info.proto",
2985 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002986 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002987 visibility = [
2988 PERFETTO_CONFIG.proto_library_visibility,
2989 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002990 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002991 ":protos_perfetto_common_protos",
2992 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002993 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002994 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002995 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002996 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002997 ":protos_perfetto_config_power_protos",
2998 ":protos_perfetto_config_process_stats_protos",
2999 ":protos_perfetto_config_profiling_protos",
3000 ":protos_perfetto_config_protos",
3001 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003002 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003003 ],
3004)
3005
3006# GN target: //protos/perfetto/trace:minimal_zero
3007perfetto_cc_protozero_library(
3008 name = "protos_perfetto_trace_minimal_zero",
3009 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003010 ":protos_perfetto_common_zero",
3011 ":protos_perfetto_config_android_zero",
3012 ":protos_perfetto_config_ftrace_zero",
3013 ":protos_perfetto_config_gpu_zero",
3014 ":protos_perfetto_config_inode_file_zero",
3015 ":protos_perfetto_config_interceptors_zero",
3016 ":protos_perfetto_config_power_zero",
3017 ":protos_perfetto_config_process_stats_zero",
3018 ":protos_perfetto_config_profiling_zero",
3019 ":protos_perfetto_config_sys_stats_zero",
3020 ":protos_perfetto_config_track_event_zero",
3021 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003022 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003023 ],
3024)
3025
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003026# GN target: //protos/perfetto/trace:non_minimal_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003027perfetto_proto_library(
3028 name = "protos_perfetto_trace_non_minimal_protos",
3029 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01003030 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02003031 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003032 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00003033 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003034 "protos/perfetto/trace/trace.proto",
3035 "protos/perfetto/trace/trace_packet.proto",
3036 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01003037 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003038 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003039 visibility = [
3040 PERFETTO_CONFIG.proto_library_visibility,
3041 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003042 deps = [
3043 ":protos_perfetto_common_protos",
3044 ":protos_perfetto_config_android_protos",
3045 ":protos_perfetto_config_ftrace_protos",
3046 ":protos_perfetto_config_gpu_protos",
3047 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003048 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003049 ":protos_perfetto_config_power_protos",
3050 ":protos_perfetto_config_process_stats_protos",
3051 ":protos_perfetto_config_profiling_protos",
3052 ":protos_perfetto_config_protos",
3053 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003054 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003055 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003056 ":protos_perfetto_trace_chrome_protos",
3057 ":protos_perfetto_trace_filesystem_protos",
3058 ":protos_perfetto_trace_ftrace_protos",
3059 ":protos_perfetto_trace_gpu_protos",
3060 ":protos_perfetto_trace_interned_data_protos",
3061 ":protos_perfetto_trace_minimal_protos",
3062 ":protos_perfetto_trace_perfetto_protos",
3063 ":protos_perfetto_trace_power_protos",
3064 ":protos_perfetto_trace_profiling_protos",
3065 ":protos_perfetto_trace_ps_protos",
3066 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003067 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003068 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003069 ":protos_perfetto_trace_translation_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003070 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00003071 exports = [
3072 ":protos_perfetto_trace_track_event_protos",
3073 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003074)
3075
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003076# GN target: //protos/perfetto/trace:non_minimal_zero
3077perfetto_cc_protozero_library(
3078 name = "protos_perfetto_trace_non_minimal_zero",
3079 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003080 ":protos_perfetto_common_zero",
3081 ":protos_perfetto_config_android_zero",
3082 ":protos_perfetto_config_ftrace_zero",
3083 ":protos_perfetto_config_gpu_zero",
3084 ":protos_perfetto_config_inode_file_zero",
3085 ":protos_perfetto_config_interceptors_zero",
3086 ":protos_perfetto_config_power_zero",
3087 ":protos_perfetto_config_process_stats_zero",
3088 ":protos_perfetto_config_profiling_zero",
3089 ":protos_perfetto_config_sys_stats_zero",
3090 ":protos_perfetto_config_track_event_zero",
3091 ":protos_perfetto_config_zero",
3092 ":protos_perfetto_trace_android_zero",
3093 ":protos_perfetto_trace_chrome_zero",
3094 ":protos_perfetto_trace_filesystem_zero",
3095 ":protos_perfetto_trace_ftrace_zero",
3096 ":protos_perfetto_trace_gpu_zero",
3097 ":protos_perfetto_trace_interned_data_zero",
3098 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003099 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003100 ":protos_perfetto_trace_perfetto_zero",
3101 ":protos_perfetto_trace_power_zero",
3102 ":protos_perfetto_trace_profiling_zero",
3103 ":protos_perfetto_trace_ps_zero",
3104 ":protos_perfetto_trace_sys_stats_zero",
3105 ":protos_perfetto_trace_system_info_zero",
3106 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003107 ":protos_perfetto_trace_translation_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003108 ],
3109)
3110
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003111# GN target: //protos/perfetto/trace/perfetto:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003112perfetto_proto_library(
3113 name = "protos_perfetto_trace_perfetto_protos",
3114 srcs = [
3115 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01003116 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003117 ],
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/trace/perfetto:zero
3124perfetto_cc_protozero_library(
3125 name = "protos_perfetto_trace_perfetto_zero",
3126 deps = [
3127 ":protos_perfetto_trace_perfetto_protos",
3128 ],
3129)
3130
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003131# GN target: //protos/perfetto/trace/power:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003132perfetto_proto_library(
3133 name = "protos_perfetto_trace_power_protos",
3134 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003135 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003136 "protos/perfetto/trace/power/battery_counters.proto",
3137 "protos/perfetto/trace/power/power_rails.proto",
3138 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003139 visibility = [
3140 PERFETTO_CONFIG.proto_library_visibility,
3141 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003142 deps = [
3143 ":protos_perfetto_common_protos",
3144 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003145)
3146
3147# GN target: //protos/perfetto/trace/power:zero
3148perfetto_cc_protozero_library(
3149 name = "protos_perfetto_trace_power_zero",
3150 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003151 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003152 ":protos_perfetto_trace_power_protos",
3153 ],
3154)
3155
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003156# GN target: //protos/perfetto/trace_processor:metrics_impl_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003157perfetto_proto_library(
3158 name = "protos_perfetto_trace_processor_metrics_impl_protos",
3159 srcs = [
3160 "protos/perfetto/trace_processor/metrics_impl.proto",
3161 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003162 visibility = [
3163 PERFETTO_CONFIG.proto_library_visibility,
3164 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003165)
3166
3167# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3168perfetto_cc_protozero_library(
3169 name = "protos_perfetto_trace_processor_metrics_impl_zero",
3170 deps = [
3171 ":protos_perfetto_trace_processor_metrics_impl_protos",
3172 ],
3173)
3174
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003175# GN target: //protos/perfetto/trace_processor:source_set
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003176perfetto_proto_library(
3177 name = "protos_perfetto_trace_processor_protos",
3178 srcs = [
3179 "protos/perfetto/trace_processor/trace_processor.proto",
3180 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003181 visibility = [
3182 PERFETTO_CONFIG.proto_library_visibility,
3183 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04003184 deps = [
3185 ":protos_perfetto_common_protos",
3186 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003187)
3188
3189# GN target: //protos/perfetto/trace_processor:zero
3190perfetto_cc_protozero_library(
3191 name = "protos_perfetto_trace_processor_zero",
3192 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003193 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003194 ":protos_perfetto_trace_processor_protos",
3195 ],
3196)
3197
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003198# GN target: //protos/perfetto/trace/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003199perfetto_proto_library(
3200 name = "protos_perfetto_trace_profiling_protos",
3201 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01003202 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003203 "protos/perfetto/trace/profiling/heap_graph.proto",
3204 "protos/perfetto/trace/profiling/profile_common.proto",
3205 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02003206 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003207 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003208 visibility = [
3209 PERFETTO_CONFIG.proto_library_visibility,
3210 ],
Ryan Savitski45517322021-03-09 16:38:19 +00003211 deps = [
3212 ":protos_perfetto_common_protos",
3213 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003214)
3215
3216# GN target: //protos/perfetto/trace/profiling:zero
3217perfetto_cc_protozero_library(
3218 name = "protos_perfetto_trace_profiling_zero",
3219 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003220 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003221 ":protos_perfetto_trace_profiling_protos",
3222 ],
3223)
3224
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003225# GN target: //protos/perfetto/trace/ps:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003226perfetto_proto_library(
3227 name = "protos_perfetto_trace_ps_protos",
3228 srcs = [
3229 "protos/perfetto/trace/ps/process_stats.proto",
3230 "protos/perfetto/trace/ps/process_tree.proto",
3231 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003232 visibility = [
3233 PERFETTO_CONFIG.proto_library_visibility,
3234 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003235)
3236
3237# GN target: //protos/perfetto/trace/ps:zero
3238perfetto_cc_protozero_library(
3239 name = "protos_perfetto_trace_ps_zero",
3240 deps = [
3241 ":protos_perfetto_trace_ps_protos",
3242 ],
3243)
3244
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003245# GN target: //protos/perfetto/trace/sys_stats:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003246perfetto_proto_library(
3247 name = "protos_perfetto_trace_sys_stats_protos",
3248 srcs = [
3249 "protos/perfetto/trace/sys_stats/sys_stats.proto",
3250 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003251 visibility = [
3252 PERFETTO_CONFIG.proto_library_visibility,
3253 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003254 deps = [
3255 ":protos_perfetto_common_protos",
3256 ],
3257)
3258
3259# GN target: //protos/perfetto/trace/sys_stats:zero
3260perfetto_cc_protozero_library(
3261 name = "protos_perfetto_trace_sys_stats_zero",
3262 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003263 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003264 ":protos_perfetto_trace_sys_stats_protos",
3265 ],
3266)
3267
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003268# GN target: //protos/perfetto/trace/system_info:source_set
Rafal Slawikb013a112020-04-03 16:12:02 +01003269perfetto_proto_library(
3270 name = "protos_perfetto_trace_system_info_protos",
3271 srcs = [
3272 "protos/perfetto/trace/system_info/cpu_info.proto",
3273 ],
3274 visibility = [
3275 PERFETTO_CONFIG.proto_library_visibility,
3276 ],
3277)
3278
3279# GN target: //protos/perfetto/trace/system_info:zero
3280perfetto_cc_protozero_library(
3281 name = "protos_perfetto_trace_system_info_zero",
3282 deps = [
3283 ":protos_perfetto_trace_system_info_protos",
3284 ],
3285)
3286
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003287# GN target: //protos/perfetto/trace/track_event:cpp
3288perfetto_cc_protocpp_library(
3289 name = "protos_perfetto_trace_track_event_cpp",
3290 deps = [
3291 ":protos_perfetto_trace_track_event_protos",
3292 ],
3293)
3294
Lalit Magantic21a4a82022-02-15 16:08:46 +00003295# GN target: //protos/perfetto/trace/track_event:descriptor
3296perfetto_proto_descriptor(
3297 name = "protos_perfetto_trace_track_event_descriptor",
3298 deps = [
3299 ":protos_perfetto_trace_track_event_protos",
3300 ],
3301 outs = [
3302 "protos_perfetto_trace_track_event_descriptor.bin",
3303 ],
3304)
3305
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003306# GN target: //protos/perfetto/trace/track_event:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003307perfetto_proto_library(
3308 name = "protos_perfetto_trace_track_event_protos",
3309 srcs = [
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08003310 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00003311 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08003312 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04003313 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08003314 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003315 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00003316 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003317 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07003318 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07003319 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003320 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01003321 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003322 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003323 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07003324 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00003325 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003326 "protos/perfetto/trace/track_event/debug_annotation.proto",
3327 "protos/perfetto/trace/track_event/log_message.proto",
3328 "protos/perfetto/trace/track_event/process_descriptor.proto",
3329 "protos/perfetto/trace/track_event/source_location.proto",
3330 "protos/perfetto/trace/track_event/task_execution.proto",
3331 "protos/perfetto/trace/track_event/thread_descriptor.proto",
3332 "protos/perfetto/trace/track_event/track_descriptor.proto",
3333 "protos/perfetto/trace/track_event/track_event.proto",
3334 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003335 visibility = [
3336 PERFETTO_CONFIG.proto_library_visibility,
3337 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003338)
3339
3340# GN target: //protos/perfetto/trace/track_event:zero
3341perfetto_cc_protozero_library(
3342 name = "protos_perfetto_trace_track_event_zero",
3343 deps = [
3344 ":protos_perfetto_trace_track_event_protos",
3345 ],
3346)
3347
Igor Kraskevich49b42882022-03-21 13:03:02 +00003348# GN target: //protos/perfetto/trace/translation:source_set
3349perfetto_proto_library(
3350 name = "protos_perfetto_trace_translation_protos",
3351 srcs = [
3352 "protos/perfetto/trace/translation/translation_table.proto",
3353 ],
3354 visibility = [
3355 PERFETTO_CONFIG.proto_library_visibility,
3356 ],
3357)
3358
3359# GN target: //protos/perfetto/trace/translation:zero
3360perfetto_cc_protozero_library(
3361 name = "protos_perfetto_trace_translation_zero",
3362 deps = [
3363 ":protos_perfetto_trace_translation_protos",
3364 ],
3365)
3366
Lalit Magantic21a4a82022-02-15 16:08:46 +00003367# GN target: //protos/third_party/chromium:descriptor
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003368perfetto_proto_descriptor(
Lalit Magantic21a4a82022-02-15 16:08:46 +00003369 name = "protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003370 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00003371 ":protos_third_party_chromium_protos",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003372 ],
3373 outs = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00003374 "protos_third_party_chromium_descriptor.bin",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003375 ],
3376)
3377
Lalit Magantic21a4a82022-02-15 16:08:46 +00003378# GN target: //protos/third_party/chromium:source_set
ssid3d81d4d2021-06-21 16:08:02 -07003379perfetto_proto_library(
3380 name = "protos_third_party_chromium_protos",
3381 srcs = [
3382 "protos/third_party/chromium/chrome_track_event.proto",
3383 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003384 visibility = [
3385 PERFETTO_CONFIG.proto_library_visibility,
3386 ],
ssid3d81d4d2021-06-21 16:08:02 -07003387 deps = [
3388 ":protos_perfetto_trace_track_event_protos",
3389 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00003390 exports = [
3391 ":protos_perfetto_trace_track_event_protos",
3392 ],
ssid3d81d4d2021-06-21 16:08:02 -07003393)
3394
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003395# GN target: //protos/third_party/pprof:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003396perfetto_proto_library(
3397 name = "protos_third_party_pprof_protos",
3398 srcs = [
3399 "protos/third_party/pprof/profile.proto",
3400 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003401 visibility = [
3402 PERFETTO_CONFIG.proto_library_visibility,
3403 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003404)
3405
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003406# GN target: //protos/third_party/pprof:zero
3407perfetto_cc_protozero_library(
3408 name = "protos_third_party_pprof_zero",
3409 deps = [
3410 ":protos_third_party_pprof_protos",
3411 ],
3412)
3413
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003414# GN target: //src/perfetto_cmd:protos_cpp
Hector Dearman040f9582019-12-03 18:06:33 +00003415perfetto_cc_protocpp_library(
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003416 name = "src_perfetto_cmd_protos_cpp",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003417 deps = [
3418 ":src_perfetto_cmd_protos_protos",
3419 ],
3420)
3421
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003422# GN target: //src/perfetto_cmd:protos_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003423perfetto_proto_library(
3424 name = "src_perfetto_cmd_protos_protos",
3425 srcs = [
3426 "src/perfetto_cmd/perfetto_cmd_state.proto",
3427 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003428 visibility = [
3429 PERFETTO_CONFIG.proto_library_visibility,
3430 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003431)
3432
Primiano Tucci1d409982019-09-19 10:15:18 +01003433# ##############################################################################
3434# Public targets
3435# ##############################################################################
3436
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003437# GN target: //:libperfetto_client_experimental
3438perfetto_cc_library(
3439 name = "libperfetto_client_experimental",
3440 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00003441 ":src_android_stats_android_stats",
3442 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01003443 ":src_protozero_filtering_bytecode_common",
3444 ":src_protozero_filtering_bytecode_parser",
3445 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00003446 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003447 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003448 ":src_tracing_core_core",
3449 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00003450 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003451 ":src_tracing_ipc_common",
3452 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003453 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003454 ":src_tracing_ipc_producer_producer",
3455 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01003456 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00003457 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003458 ],
3459 hdrs = [
3460 ":include_perfetto_base_base",
3461 ":include_perfetto_ext_base_base",
3462 ":include_perfetto_ext_ipc_ipc",
3463 ":include_perfetto_ext_tracing_core_core",
3464 ":include_perfetto_ext_tracing_ipc_ipc",
3465 ":include_perfetto_protozero_protozero",
3466 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003467 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003468 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00003469 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003470 ],
3471 visibility = [
3472 "//visibility:public",
3473 ],
3474 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003475 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003476 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003477 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003478 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003479 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003480 ":protos_perfetto_config_cpp",
3481 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003482 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003483 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003484 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003485 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003486 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003487 ":protos_perfetto_config_interceptors_cpp",
3488 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003489 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003490 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003491 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003492 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003493 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003494 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003495 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003496 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003497 ":protos_perfetto_config_track_event_cpp",
3498 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003499 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003500 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003501 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003502 ":protos_perfetto_trace_android_zero",
3503 ":protos_perfetto_trace_chrome_zero",
3504 ":protos_perfetto_trace_filesystem_zero",
3505 ":protos_perfetto_trace_ftrace_zero",
3506 ":protos_perfetto_trace_gpu_zero",
3507 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003508 ":protos_perfetto_trace_minimal_zero",
3509 ":protos_perfetto_trace_non_minimal_zero",
3510 ":protos_perfetto_trace_perfetto_zero",
3511 ":protos_perfetto_trace_power_zero",
3512 ":protos_perfetto_trace_profiling_zero",
3513 ":protos_perfetto_trace_ps_zero",
3514 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003515 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003516 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003517 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003518 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003519 ":protozero",
3520 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003521 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003522 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003523)
3524
Primiano Tucci1d409982019-09-19 10:15:18 +01003525# GN target: //src/perfetto_cmd:perfetto
3526perfetto_cc_binary(
3527 name = "perfetto",
3528 srcs = [
3529 ":include_perfetto_base_base",
3530 ":include_perfetto_ext_base_base",
3531 ":include_perfetto_ext_ipc_ipc",
3532 ":include_perfetto_ext_traced_traced",
3533 ":include_perfetto_ext_tracing_core_core",
3534 ":include_perfetto_ext_tracing_ipc_ipc",
3535 ":include_perfetto_protozero_protozero",
3536 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003537 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01003538 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00003539 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00003540 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01003541 ":src_perfetto_cmd_perfetto_cmd",
3542 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003543 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003544 ":src_tracing_core_core",
3545 ":src_tracing_ipc_common",
3546 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003547 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003548 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003549 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003550 ],
3551 visibility = [
3552 "//visibility:public",
3553 ],
3554 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003555 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003556 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003557 ":protos_perfetto_common_zero",
3558 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003559 ":protos_perfetto_config_android_zero",
3560 ":protos_perfetto_config_cpp",
3561 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003562 ":protos_perfetto_config_ftrace_zero",
3563 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003564 ":protos_perfetto_config_gpu_zero",
3565 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003566 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003567 ":protos_perfetto_config_interceptors_cpp",
3568 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003569 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003570 ":protos_perfetto_config_power_zero",
3571 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003572 ":protos_perfetto_config_process_stats_zero",
3573 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003574 ":protos_perfetto_config_profiling_zero",
3575 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003576 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003577 ":protos_perfetto_config_track_event_cpp",
3578 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003579 ":protos_perfetto_config_zero",
3580 ":protos_perfetto_ipc_cpp",
3581 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003582 ":protos_perfetto_trace_android_zero",
3583 ":protos_perfetto_trace_chrome_zero",
3584 ":protos_perfetto_trace_filesystem_zero",
3585 ":protos_perfetto_trace_ftrace_zero",
3586 ":protos_perfetto_trace_gpu_zero",
3587 ":protos_perfetto_trace_interned_data_zero",
3588 ":protos_perfetto_trace_minimal_zero",
3589 ":protos_perfetto_trace_non_minimal_zero",
3590 ":protos_perfetto_trace_perfetto_zero",
3591 ":protos_perfetto_trace_power_zero",
3592 ":protos_perfetto_trace_profiling_zero",
3593 ":protos_perfetto_trace_ps_zero",
3594 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003595 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003596 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003597 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003598 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003599 ":protozero",
3600 ":src_base_base",
Lalit Maganti2939c082021-03-11 17:25:44 +00003601 ":src_perfetto_cmd_gen_cc_config_descriptor",
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003602 ":src_perfetto_cmd_protos_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003603 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01003604)
3605
3606# GN target: //src/trace_processor:trace_processor
3607perfetto_cc_library(
3608 name = "trace_processor",
3609 srcs = [
Lalit Maganti97d7d472020-04-07 18:49:17 +01003610 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003611 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003612 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003613 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003614 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003615 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003616 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003617 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003618 ":src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01003619 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003620 ":src_trace_processor_storage_full",
3621 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003622 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003623 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003624 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003625 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003626 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003627 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003628 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003629 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003630 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003631 ],
3632 hdrs = [
3633 ":include_perfetto_base_base",
3634 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003635 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003636 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003637 ":include_perfetto_ext_traced_sys_stats_counters",
Eric Secklera7870e62019-11-01 10:11:58 +00003638 ":include_perfetto_trace_processor_basic_types",
3639 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003640 ":include_perfetto_trace_processor_trace_processor",
3641 ],
3642 visibility = [
3643 "//visibility:public",
3644 ],
3645 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003646 ":protos_perfetto_common_zero",
3647 ":protos_perfetto_config_android_zero",
3648 ":protos_perfetto_config_ftrace_zero",
3649 ":protos_perfetto_config_gpu_zero",
3650 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003651 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003652 ":protos_perfetto_config_power_zero",
3653 ":protos_perfetto_config_process_stats_zero",
3654 ":protos_perfetto_config_profiling_zero",
3655 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003656 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003657 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003658 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003659 ":protos_perfetto_trace_chrome_zero",
3660 ":protos_perfetto_trace_filesystem_zero",
3661 ":protos_perfetto_trace_ftrace_zero",
3662 ":protos_perfetto_trace_gpu_zero",
3663 ":protos_perfetto_trace_interned_data_zero",
3664 ":protos_perfetto_trace_minimal_zero",
3665 ":protos_perfetto_trace_non_minimal_zero",
3666 ":protos_perfetto_trace_perfetto_zero",
3667 ":protos_perfetto_trace_power_zero",
3668 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003669 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003670 ":protos_perfetto_trace_profiling_zero",
3671 ":protos_perfetto_trace_ps_zero",
3672 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003673 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003674 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003675 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003676 ":protozero",
3677 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003678 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003679 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003680 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003681 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003682 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003683 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003684 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003685 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003686 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3687 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003688 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003689 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003690 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003691)
3692
3693# GN target: //src/trace_processor:trace_processor_shell
3694perfetto_cc_binary(
3695 name = "trace_processor_shell",
3696 srcs = [
3697 ":include_perfetto_base_base",
3698 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003699 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003700 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003701 ":include_perfetto_ext_traced_sys_stats_counters",
3702 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003703 ":include_perfetto_trace_processor_basic_types",
3704 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003705 ":include_perfetto_trace_processor_trace_processor",
Florian Mayerf4255a42020-12-14 19:12:34 +00003706 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003707 ":src_profiling_symbolizer_symbolize_database",
3708 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01003709 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003710 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003711 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003712 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003713 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003714 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003715 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003716 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003717 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003718 ":src_trace_processor_metrics_metrics",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003719 ":src_trace_processor_rpc_httpd",
3720 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003721 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003722 ":src_trace_processor_storage_full",
3723 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003724 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003725 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003726 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003727 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003728 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003729 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003730 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003731 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003732 ":src_trace_processor_util_util",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003733 "src/trace_processor/trace_processor_shell.cc",
3734 "src/trace_processor/util/proto_to_json.cc",
3735 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003736 ],
3737 visibility = [
3738 "//visibility:public",
3739 ],
3740 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003741 ":protos_perfetto_common_zero",
3742 ":protos_perfetto_config_android_zero",
3743 ":protos_perfetto_config_ftrace_zero",
3744 ":protos_perfetto_config_gpu_zero",
3745 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003746 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003747 ":protos_perfetto_config_power_zero",
3748 ":protos_perfetto_config_process_stats_zero",
3749 ":protos_perfetto_config_profiling_zero",
3750 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003751 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003752 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003753 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003754 ":protos_perfetto_trace_chrome_zero",
3755 ":protos_perfetto_trace_filesystem_zero",
3756 ":protos_perfetto_trace_ftrace_zero",
3757 ":protos_perfetto_trace_gpu_zero",
3758 ":protos_perfetto_trace_interned_data_zero",
3759 ":protos_perfetto_trace_minimal_zero",
3760 ":protos_perfetto_trace_non_minimal_zero",
3761 ":protos_perfetto_trace_perfetto_zero",
3762 ":protos_perfetto_trace_power_zero",
3763 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003764 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003765 ":protos_perfetto_trace_profiling_zero",
3766 ":protos_perfetto_trace_ps_zero",
3767 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003768 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003769 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003770 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003771 ":protozero",
3772 ":src_base_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +00003773 ":src_base_http_http",
Ryan7ad6b7d2021-04-22 17:03:54 +01003774 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003775 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003776 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003777 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003778 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003779 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003780 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003781 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003782 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003783 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003784 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3785 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003786 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003787 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003788)
3789
3790# GN target: //src/traced/probes:traced_probes
3791perfetto_cc_binary(
3792 name = "traced_probes",
3793 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003794 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003795 "src/traced/probes/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003796 ],
3797 visibility = [
3798 "//visibility:public",
3799 ],
3800 deps = [
3801 ":libperfetto",
3802 ],
3803)
3804
3805# GN target: //src/traced/service:traced
3806perfetto_cc_binary(
3807 name = "traced",
3808 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003809 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003810 "src/traced/service/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003811 ],
3812 visibility = [
3813 "//visibility:public",
3814 ],
3815 deps = [
3816 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003817 ],
3818)
3819
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003820# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003821perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003822 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003823 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003824 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003825 ":src_profiling_symbolizer_symbolize_database",
3826 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003827 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003828 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003829 ],
3830 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003831 ":include_perfetto_base_base",
3832 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003833 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003834 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003835 ":include_perfetto_trace_processor_basic_types",
3836 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003837 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003838 ],
3839 visibility = [
3840 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003841 ],
3842 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003843 ":protos_perfetto_common_zero",
3844 ":protos_perfetto_config_android_zero",
3845 ":protos_perfetto_config_ftrace_zero",
3846 ":protos_perfetto_config_gpu_zero",
3847 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003848 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003849 ":protos_perfetto_config_power_zero",
3850 ":protos_perfetto_config_process_stats_zero",
3851 ":protos_perfetto_config_profiling_zero",
3852 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003853 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003854 ":protos_perfetto_config_zero",
3855 ":protos_perfetto_trace_android_zero",
3856 ":protos_perfetto_trace_chrome_zero",
3857 ":protos_perfetto_trace_filesystem_zero",
3858 ":protos_perfetto_trace_ftrace_zero",
3859 ":protos_perfetto_trace_gpu_zero",
3860 ":protos_perfetto_trace_interned_data_zero",
3861 ":protos_perfetto_trace_minimal_zero",
3862 ":protos_perfetto_trace_non_minimal_zero",
3863 ":protos_perfetto_trace_perfetto_zero",
3864 ":protos_perfetto_trace_power_zero",
3865 ":protos_perfetto_trace_profiling_zero",
3866 ":protos_perfetto_trace_ps_zero",
3867 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003868 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003869 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003870 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003871 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00003872 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01003873 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003874 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003875 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003876)
3877
Lalit Maganti65600342019-09-19 21:35:35 +01003878# GN target: //tools/trace_to_text:trace_to_text
3879perfetto_cc_binary(
3880 name = "trace_to_text",
3881 srcs = [
3882 ":include_perfetto_base_base",
3883 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003884 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003885 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01003886 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003887 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003888 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003889 ":include_perfetto_trace_processor_basic_types",
3890 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003891 ":include_perfetto_trace_processor_trace_processor",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003892 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003893 ":src_profiling_symbolizer_symbolize_database",
3894 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01003895 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003896 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003897 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003898 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003899 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003900 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003901 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti65600342019-09-19 21:35:35 +01003902 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003903 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003904 ":src_trace_processor_metrics_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003905 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003906 ":src_trace_processor_storage_full",
3907 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003908 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003909 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003910 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003911 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003912 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003913 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003914 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003915 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003916 ":src_trace_processor_util_util",
Mohit Sainidc2a57b2022-03-04 15:17:25 +00003917 ":tools_trace_to_text_lib",
3918 ":tools_trace_to_text_main",
Lalit Maganti65600342019-09-19 21:35:35 +01003919 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01003920 ":tools_trace_to_text_utils",
3921 ],
3922 visibility = [
3923 "//visibility:public",
3924 ],
3925 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003926 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003927 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003928 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003929 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003930 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003931 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003932 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003933 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003934 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003935 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003936 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003937 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003938 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003939 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003940 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003941 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003942 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003943 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003944 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003945 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003946 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003947 ":protos_perfetto_trace_power_zero",
3948 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003949 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003950 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003951 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003952 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003953 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003954 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003955 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003956 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003957 ":protozero",
3958 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003959 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003960 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003961 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003962 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003963 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003964 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003965 ":tools_trace_to_text_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003966 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003967 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003968 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3969 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003970 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003971 ],
3972)
3973
Primiano Tucci1d409982019-09-19 10:15:18 +01003974# Content from BUILD.extras
3975
3976build_config_dir_ = "include/perfetto/base/build_configs/bazel"
3977
3978# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
3979# This is pulled as a default dep by all targets.
Harvey Yang321c4fc2021-10-25 14:11:50 +08003980perfetto_build_config_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01003981 name = "build_config_hdr",
3982 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
3983 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02003984)
3985
Primiano Tucci1d409982019-09-19 10:15:18 +01003986perfetto_cc_library(
Lalit Maganti4c328e32021-11-09 19:29:50 +00003987 name = "cc_amalgamated_sql_metrics",
3988 hdrs = ["src/trace_processor/metrics/sql/amalgamated_sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02003989)
3990
Primiano Tucci1d409982019-09-19 10:15:18 +01003991perfetto_py_binary(
Lalit Maganti4c328e32021-11-09 19:29:50 +00003992 name = "gen_amalgamated_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003993 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003994 "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantiab619fa2019-05-02 12:56:37 +01003995 ],
Lalit Maganti4c328e32021-11-09 19:29:50 +00003996 main = "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01003997 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003998)
Lalit Maganti65600342019-09-19 21:35:35 +01003999
Lalit Maganti117272f2020-09-11 14:01:18 +01004000perfetto_py_binary(
4001 name = "gen_cc_proto_descriptor_py",
4002 srcs = [
4003 "tools/gen_cc_proto_descriptor.py",
4004 ],
4005 main = "tools/gen_cc_proto_descriptor.py",
4006 python_version = "PY3",
4007)
4008
Lalit Maganti65600342019-09-19 21:35:35 +01004009perfetto_java_proto_library(
4010 name = "protos_perfetto_metrics_java",
4011 deps = [
4012 ":protos_perfetto_metrics_protos",
4013 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00004014 visibility = PERFETTO_CONFIG.public_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01004015)
4016
4017perfetto_java_proto_library(
4018 name = "protos_perfetto_metrics_android_java",
4019 deps = [
4020 ":protos_perfetto_metrics_android_protos",
4021 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00004022 visibility = PERFETTO_CONFIG.public_visibility,
Lalit Maganti46e2bda2020-05-06 12:51:33 +01004023)
4024
Lalit Maganti65600342019-09-19 21:35:35 +01004025perfetto_gensignature_internal_only(
4026 name = "trace_processor_sig",
4027 srcs = [
4028 ":trace_processor_shell",
4029 ":trace_to_text",
4030 ],
4031 tags = [
4032 "__TRACE_PROCESSOR_SIG_TAG1",
4033 "__TRACE_PROCESSOR_SIG_TAG2",
4034 ],
4035)
Anindita Ghosh237a7762020-06-30 10:46:52 +00004036
Primiano Tucciec590132020-11-16 14:16:44 +01004037# This is overridden in google internal builds via
4038# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
4039perfetto_cc_library(
4040 name = "cc_perfetto_version_header",
4041 hdrs = ["perfetto_version.gen.h"],
4042)
4043
4044perfetto_py_binary(
4045 name = "gen_version_header_py",
4046 srcs = ["tools/write_version_header.py"],
4047 data = ["CHANGELOG"],
4048 main = "tools/write_version_header.py",
4049 python_version = "PY3",
4050)