blob: 5d93094a9fde5fe0db98571b2b09cd3274b6806a [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
Ryan Savitskie65c4052022-03-24 18:22:19 +0000426# GN target: //include/perfetto/ext/trace_processor:demangle
427perfetto_filegroup(
428 name = "include_perfetto_ext_trace_processor_demangle",
429 srcs = [
430 "include/perfetto/ext/trace_processor/demangle.h",
431 ],
432)
433
Eric Seckler7fb1d232019-10-23 14:42:43 +0100434# GN target: //include/perfetto/ext/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +0800435perfetto_filegroup(
Eric Seckler7fb1d232019-10-23 14:42:43 +0100436 name = "include_perfetto_ext_trace_processor_export_json",
437 srcs = [
438 "include/perfetto/ext/trace_processor/export_json.h",
439 ],
440)
441
Primiano Tucci1d409982019-09-19 10:15:18 +0100442# GN target: //include/perfetto/ext/traced:sys_stats_counters
Harvey Yang321c4fc2021-10-25 14:11:50 +0800443perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100444 name = "include_perfetto_ext_traced_sys_stats_counters",
445 srcs = [
446 "include/perfetto/ext/traced/sys_stats_counters.h",
447 ],
448)
449
450# GN target: //include/perfetto/ext/traced:traced
Harvey Yang321c4fc2021-10-25 14:11:50 +0800451perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100452 name = "include_perfetto_ext_traced_traced",
453 srcs = [
454 "include/perfetto/ext/traced/data_source_types.h",
455 "include/perfetto/ext/traced/traced.h",
456 ],
457)
458
459# GN target: //include/perfetto/ext/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800460perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100461 name = "include_perfetto_ext_tracing_core_core",
462 srcs = [
463 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100464 "include/perfetto/ext/tracing/core/commit_data_request.h",
465 "include/perfetto/ext/tracing/core/consumer.h",
466 "include/perfetto/ext/tracing/core/observable_events.h",
467 "include/perfetto/ext/tracing/core/producer.h",
468 "include/perfetto/ext/tracing/core/shared_memory.h",
469 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
470 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
471 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100472 "include/perfetto/ext/tracing/core/trace_packet.h",
473 "include/perfetto/ext/tracing/core/trace_stats.h",
474 "include/perfetto/ext/tracing/core/trace_writer.h",
475 "include/perfetto/ext/tracing/core/tracing_service.h",
476 ],
477)
478
479# GN target: //include/perfetto/ext/tracing/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800480perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100481 name = "include_perfetto_ext_tracing_ipc_ipc",
482 srcs = [
483 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
484 "include/perfetto/ext/tracing/ipc/default_socket.h",
485 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
486 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
487 ],
488)
489
Florian Mayerbd88ff82019-12-18 16:36:37 +0000490# GN target: //include/perfetto/profiling:pprof_builder
Harvey Yang321c4fc2021-10-25 14:11:50 +0800491perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000492 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100493 srcs = [
494 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100495 ],
496)
497
Primiano Tucci1d409982019-09-19 10:15:18 +0100498# GN target: //include/perfetto/protozero:protozero
Harvey Yang321c4fc2021-10-25 14:11:50 +0800499perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100500 name = "include_perfetto_protozero_protozero",
501 srcs = [
502 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000503 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000504 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100505 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000506 "include/perfetto/protozero/field_writer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100507 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200508 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100509 "include/perfetto/protozero/message_handle.h",
510 "include/perfetto/protozero/packed_repeated_fields.h",
511 "include/perfetto/protozero/proto_decoder.h",
512 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200513 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100514 "include/perfetto/protozero/scattered_heap_buffer.h",
515 "include/perfetto/protozero/scattered_stream_null_delegate.h",
516 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000517 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100518 ],
519)
520
521# GN target: //include/perfetto/public:public
Harvey Yang321c4fc2021-10-25 14:11:50 +0800522perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100523 name = "include_perfetto_public_public",
524 srcs = [
525 "include/perfetto/public/consumer_api.h",
526 ],
527)
528
Eric Secklera7870e62019-11-01 10:11:58 +0000529# GN target: //include/perfetto/trace_processor:basic_types
Harvey Yang321c4fc2021-10-25 14:11:50 +0800530perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000531 name = "include_perfetto_trace_processor_basic_types",
532 srcs = [
533 "include/perfetto/trace_processor/basic_types.h",
534 "include/perfetto/trace_processor/status.h",
535 ],
536)
537
538# GN target: //include/perfetto/trace_processor:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +0800539perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000540 name = "include_perfetto_trace_processor_storage",
541 srcs = [
Primiano Tucci3264b592021-11-08 18:20:51 +0000542 "include/perfetto/trace_processor/trace_blob.h",
543 "include/perfetto/trace_processor/trace_blob_view.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000544 "include/perfetto/trace_processor/trace_processor_storage.h",
545 ],
546)
547
Primiano Tucci1d409982019-09-19 10:15:18 +0100548# GN target: //include/perfetto/trace_processor:trace_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800549perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100550 name = "include_perfetto_trace_processor_trace_processor",
551 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100552 "include/perfetto/trace_processor/iterator.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100553 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci8b970aa2021-11-09 20:21:33 +0000554 "include/perfetto/trace_processor/ref_counted.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100555 "include/perfetto/trace_processor/trace_processor.h",
556 ],
557)
558
559# GN target: //include/perfetto/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800560perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100561 name = "include_perfetto_tracing_core_core",
562 srcs = [
563 "include/perfetto/tracing/core/chrome_config.h",
564 "include/perfetto/tracing/core/data_source_config.h",
565 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100566 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000567 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100568 "include/perfetto/tracing/core/tracing_service_state.h",
569 ],
570)
571
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000572# GN target: //include/perfetto/tracing/core:forward_decls
Harvey Yang321c4fc2021-10-25 14:11:50 +0800573perfetto_filegroup(
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000574 name = "include_perfetto_tracing_core_forward_decls",
575 srcs = [
576 "include/perfetto/tracing/core/forward_decls.h",
577 ],
578)
579
Primiano Tucci1d409982019-09-19 10:15:18 +0100580# GN target: //include/perfetto/tracing:tracing
Harvey Yang321c4fc2021-10-25 14:11:50 +0800581perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100582 name = "include_perfetto_tracing_tracing",
583 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100584 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100585 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000586 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100587 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000588 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000589 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000590 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100591 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000592 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000593 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100594 "include/perfetto/tracing/internal/data_source_internal.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000595 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000596 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000597 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000598 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100599 "include/perfetto/tracing/internal/tracing_muxer.h",
600 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700601 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100602 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000603 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100604 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000605 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100606 "include/perfetto/tracing/locked_handle.h",
607 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000608 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100609 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000610 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000611 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000612 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100613 "include/perfetto/tracing/tracing.h",
614 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100615 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000616 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700617 "include/perfetto/tracing/track_event.h",
Alexander Timin84af38b2021-10-05 17:10:31 +0100618 "include/perfetto/tracing/track_event_args.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100619 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000620 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000621 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000622 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100623 ],
624)
625
626# GN target: //src/android_internal:headers
Harvey Yang321c4fc2021-10-25 14:11:50 +0800627perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100628 name = "src_android_internal_headers",
629 srcs = [
630 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100631 "src/android_internal/health_hal.h",
632 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000633 "src/android_internal/power_stats.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000634 "src/android_internal/statsd_logging.h",
Collin Fijalkovichef96fb72021-01-06 16:14:33 -0800635 "src/android_internal/tracing_service_proxy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100636 ],
637)
638
639# GN target: //src/android_internal:lazy_library_loader
Harvey Yang321c4fc2021-10-25 14:11:50 +0800640perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100641 name = "src_android_internal_lazy_library_loader",
642 srcs = [
643 "src/android_internal/lazy_library_loader.cc",
644 "src/android_internal/lazy_library_loader.h",
645 ],
646)
647
Lalit Magantif2d81b72020-12-11 01:53:29 +0000648# GN target: //src/android_stats:android_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +0800649perfetto_filegroup(
Lalit Magantif2d81b72020-12-11 01:53:29 +0000650 name = "src_android_stats_android_stats",
651 srcs = [
652 "src/android_stats/statsd_logging_helper.cc",
653 "src/android_stats/statsd_logging_helper.h",
654 ],
655)
656
Lalit Magantid37172d2020-12-10 19:30:05 +0000657# GN target: //src/android_stats:perfetto_atoms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800658perfetto_filegroup(
Lalit Magantid37172d2020-12-10 19:30:05 +0000659 name = "src_android_stats_perfetto_atoms",
660 srcs = [
661 "src/android_stats/perfetto_atoms.h",
662 ],
663)
664
Primiano Tucci44a15be2021-11-06 21:40:18 +0000665# GN target: //src/base/http:http
666perfetto_cc_library(
667 name = "src_base_http_http",
668 srcs = [
669 "src/base/http/http_server.cc",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000670 "src/base/http/sha1.cc",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000671 ],
672 hdrs = [
673 ":include_perfetto_base_base",
674 ":include_perfetto_ext_base_base",
675 ":include_perfetto_ext_base_http_http",
676 ],
677 deps = [
678 ":src_base_base",
679 ":src_base_unix_socket",
680 ],
681 linkstatic = True,
682)
683
Primiano Tucci1d409982019-09-19 10:15:18 +0100684# GN target: //src/base:base
Primiano Tucci916f4e52020-10-16 20:40:33 +0200685perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100686 name = "src_base_base",
687 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000688 "src/base/android_utils.cc",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000689 "src/base/base64.cc",
Primiano Tucciab699b72021-10-15 11:53:00 +0100690 "src/base/crash_keys.cc",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100691 "src/base/ctrl_c_handler.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100692 "src/base/event_fd.cc",
693 "src/base/file_utils.cc",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100694 "src/base/getopt_compat.cc",
Primiano Tuccic7fb63f2021-10-11 16:28:05 +0100695 "src/base/log_ring_buffer.h",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000696 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100697 "src/base/metatrace.cc",
698 "src/base/paged_memory.cc",
Primiano Tuccidac91702021-04-30 15:47:51 +0100699 "src/base/periodic_task.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100700 "src/base/pipe.cc",
Primiano Tuccidf440312020-10-30 16:43:58 +0100701 "src/base/status.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100702 "src/base/string_splitter.cc",
703 "src/base/string_utils.cc",
704 "src/base/string_view.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100705 "src/base/subprocess.cc",
Primiano Tucci8163b2c2020-12-21 15:26:04 +0100706 "src/base/subprocess_posix.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100707 "src/base/subprocess_windows.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100708 "src/base/temp_file.cc",
709 "src/base/thread_checker.cc",
710 "src/base/thread_task_runner.cc",
711 "src/base/time.cc",
712 "src/base/unix_task_runner.cc",
Primiano Tuccia81d2772020-10-07 00:12:41 +0200713 "src/base/utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100714 "src/base/uuid.cc",
Primiano Tucciec590132020-11-16 14:16:44 +0100715 "src/base/version.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100716 "src/base/virtual_destructors.cc",
717 "src/base/waitable_event.cc",
718 "src/base/watchdog_posix.cc",
719 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200720 hdrs = [
721 ":include_perfetto_base_base",
722 ":include_perfetto_ext_base_base",
723 ],
Primiano Tucciec590132020-11-16 14:16:44 +0100724 deps = [
725 ] + PERFETTO_CONFIG.deps.version_header,
Primiano Tucci916f4e52020-10-16 20:40:33 +0200726 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100727)
728
729# GN target: //src/base:unix_socket
Primiano Tucci916f4e52020-10-16 20:40:33 +0200730perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100731 name = "src_base_unix_socket",
732 srcs = [
733 "src/base/unix_socket.cc",
734 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200735 hdrs = [
736 ":include_perfetto_base_base",
737 ":include_perfetto_ext_base_base",
738 ],
739 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100740)
741
Harvey Yang321c4fc2021-10-25 14:11:50 +0800742perfetto_genrule(
Primiano Tucciec590132020-11-16 14:16:44 +0100743 name = "src_base_version_gen_h",
744 srcs = [
745 "CHANGELOG",
746 ],
747 outs = [
748 "perfetto_version.gen.h",
749 ],
Joshua Gilpatrick042931b2020-12-04 08:55:59 -0800750 cmd = "$(location gen_version_header_py) --cpp_out=$@ --changelog=$(location CHANGELOG)",
Primiano Tucciec590132020-11-16 14:16:44 +0100751 exec_tools = [
752 ":gen_version_header_py",
753 ],
754)
755
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000756# GN target: //src/ipc:client
Harvey Yang321c4fc2021-10-25 14:11:50 +0800757perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000758 name = "src_ipc_client",
759 srcs = [
760 "src/ipc/client_impl.cc",
761 "src/ipc/client_impl.h",
762 "src/ipc/service_proxy.cc",
763 ],
764)
765
766# GN target: //src/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800767perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000768 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100769 srcs = [
770 "src/ipc/buffered_frame_deserializer.cc",
771 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100772 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000773 "src/ipc/virtual_destructors.cc",
774 ],
775)
776
777# GN target: //src/ipc:host
Harvey Yang321c4fc2021-10-25 14:11:50 +0800778perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000779 name = "src_ipc_host",
780 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100781 "src/ipc/host_impl.cc",
782 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100783 ],
784)
785
Ryan Savitskidc218882020-11-16 18:02:02 +0000786# GN target: //src/kallsyms:kallsyms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800787perfetto_filegroup(
Ryan Savitskidc218882020-11-16 18:02:02 +0000788 name = "src_kallsyms_kallsyms",
789 srcs = [
790 "src/kallsyms/kernel_symbol_map.cc",
791 "src/kallsyms/kernel_symbol_map.h",
792 "src/kallsyms/lazy_kernel_symbolizer.cc",
793 "src/kallsyms/lazy_kernel_symbolizer.h",
794 ],
795)
796
Lalit Maganti2939c082021-03-11 17:25:44 +0000797perfetto_cc_proto_descriptor(
798 name = "src_perfetto_cmd_gen_cc_config_descriptor",
799 deps = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000800 ":protos_perfetto_config_descriptor",
Lalit Maganti2939c082021-03-11 17:25:44 +0000801 ],
802 outs = [
Lalit Maganti8d6d7c12022-02-24 20:35:23 +0000803 "src/perfetto_cmd/config.descriptor.h",
Lalit Maganti2939c082021-03-11 17:25:44 +0000804 ],
805)
806
Primiano Tucci1d409982019-09-19 10:15:18 +0100807# GN target: //src/perfetto_cmd:perfetto_cmd
Harvey Yang321c4fc2021-10-25 14:11:50 +0800808perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100809 name = "src_perfetto_cmd_perfetto_cmd",
810 srcs = [
811 "src/perfetto_cmd/config.cc",
812 "src/perfetto_cmd/config.h",
813 "src/perfetto_cmd/packet_writer.cc",
814 "src/perfetto_cmd/packet_writer.h",
815 "src/perfetto_cmd/pbtxt_to_pb.cc",
816 "src/perfetto_cmd/pbtxt_to_pb.h",
817 "src/perfetto_cmd/perfetto_cmd.cc",
818 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100819 "src/perfetto_cmd/rate_limiter.cc",
820 "src/perfetto_cmd/rate_limiter.h",
821 ],
822)
823
824# GN target: //src/perfetto_cmd:trigger_producer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800825perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100826 name = "src_perfetto_cmd_trigger_producer",
827 srcs = [
828 "src/perfetto_cmd/trigger_producer.cc",
829 "src/perfetto_cmd/trigger_producer.h",
830 ],
831)
832
Florian Mayerbd88ff82019-12-18 16:36:37 +0000833# GN target: //src/profiling/symbolizer:symbolize_database
Harvey Yang321c4fc2021-10-25 14:11:50 +0800834perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000835 name = "src_profiling_symbolizer_symbolize_database",
836 srcs = [
837 "src/profiling/symbolizer/symbolize_database.cc",
838 "src/profiling/symbolizer/symbolize_database.h",
839 ],
840)
841
842# GN target: //src/profiling/symbolizer:symbolizer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800843perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000844 name = "src_profiling_symbolizer_symbolizer",
845 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000846 "src/profiling/symbolizer/breakpad_parser.cc",
847 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000848 "src/profiling/symbolizer/breakpad_symbolizer.cc",
849 "src/profiling/symbolizer/breakpad_symbolizer.h",
Daniele Di Proietto25f80692021-09-17 10:14:41 +0000850 "src/profiling/symbolizer/elf.h",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000851 "src/profiling/symbolizer/local_symbolizer.cc",
852 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800853 "src/profiling/symbolizer/scoped_read_mmap.h",
854 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800855 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800856 "src/profiling/symbolizer/subprocess.h",
857 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800858 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000859 "src/profiling/symbolizer/symbolizer.cc",
860 "src/profiling/symbolizer/symbolizer.h",
861 ],
862)
863
Florian Mayer3be55fb2019-11-22 13:08:47 +0000864# GN target: //src/profiling:deobfuscator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800865perfetto_filegroup(
Florian Mayer3be55fb2019-11-22 13:08:47 +0000866 name = "src_profiling_deobfuscator",
867 srcs = [
868 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000869 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000870 ],
871)
872
Primiano Tuccif18ab812021-05-14 23:01:19 +0100873# GN target: //src/protozero/filtering:bytecode_common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800874perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100875 name = "src_protozero_filtering_bytecode_common",
876 srcs = [
877 "src/protozero/filtering/filter_bytecode_common.h",
878 ],
879)
880
Lalit Magantiff9b3262021-07-01 22:24:01 +0100881# GN target: //src/protozero/filtering:bytecode_generator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800882perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100883 name = "src_protozero_filtering_bytecode_generator",
884 srcs = [
885 "src/protozero/filtering/filter_bytecode_generator.cc",
886 "src/protozero/filtering/filter_bytecode_generator.h",
887 ],
888)
889
Primiano Tuccif18ab812021-05-14 23:01:19 +0100890# GN target: //src/protozero/filtering:bytecode_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +0800891perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100892 name = "src_protozero_filtering_bytecode_parser",
893 srcs = [
894 "src/protozero/filtering/filter_bytecode_parser.cc",
895 "src/protozero/filtering/filter_bytecode_parser.h",
896 ],
897)
898
Lalit Magantiff9b3262021-07-01 22:24:01 +0100899# GN target: //src/protozero/filtering:filter_util
Harvey Yang321c4fc2021-10-25 14:11:50 +0800900perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100901 name = "src_protozero_filtering_filter_util",
902 srcs = [
903 "src/protozero/filtering/filter_util.cc",
904 "src/protozero/filtering/filter_util.h",
905 ],
906)
907
Primiano Tuccif18ab812021-05-14 23:01:19 +0100908# GN target: //src/protozero/filtering:message_filter
Harvey Yang321c4fc2021-10-25 14:11:50 +0800909perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100910 name = "src_protozero_filtering_message_filter",
911 srcs = [
912 "src/protozero/filtering/message_filter.cc",
913 "src/protozero/filtering/message_filter.h",
914 "src/protozero/filtering/message_tokenizer.h",
915 ],
916)
917
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100918# GN target: //src/protozero:proto_ring_buffer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800919perfetto_filegroup(
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100920 name = "src_protozero_proto_ring_buffer",
921 srcs = [
922 "src/protozero/proto_ring_buffer.cc",
923 "src/protozero/proto_ring_buffer.h",
924 ],
925)
926
Lalit Maganti97d7d472020-04-07 18:49:17 +0100927# GN target: //src/trace_processor/analysis:analysis
Harvey Yang321c4fc2021-10-25 14:11:50 +0800928perfetto_filegroup(
Lalit Maganti97d7d472020-04-07 18:49:17 +0100929 name = "src_trace_processor_analysis_analysis",
930 srcs = [
931 "src/trace_processor/analysis/describe_slice.cc",
932 "src/trace_processor/analysis/describe_slice.h",
933 ],
934)
935
Lalit Maganti2aa88582019-12-17 17:06:49 +0000936# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +0100937perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +0000938 name = "src_trace_processor_containers_containers",
939 srcs = [
940 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000941 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +0100942 "src/trace_processor/containers/nullable_vector.cc",
943 "src/trace_processor/containers/row_map.cc",
944 "src/trace_processor/containers/string_pool.cc",
945 ],
946 hdrs = [
947 ":include_perfetto_base_base",
948 ":include_perfetto_protozero_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +0100949 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000950 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000951 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +0100952 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000953 "src/trace_processor/containers/row_map.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000954 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000955 ],
Ryan0331ac02021-04-26 15:41:47 +0100956 deps = [
957 ":src_base_base",
958 ],
959 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +0000960)
961
Lalit Maganti1534bb72021-04-23 14:11:26 +0100962# GN target: //src/trace_processor/db:db
Harvey Yang321c4fc2021-10-25 14:11:50 +0800963perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100964 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +0100965 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100966 "src/trace_processor/db/column.cc",
967 "src/trace_processor/db/column.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +0000968 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100969 "src/trace_processor/db/table.cc",
970 "src/trace_processor/db/table.h",
971 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +0000972 "src/trace_processor/db/typed_column_internal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100973 ],
974)
975
Lalit Maganti1534bb72021-04-23 14:11:26 +0100976# GN target: //src/trace_processor/importers/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800977perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100978 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100979 srcs = [
980 "src/trace_processor/importers/common/args_tracker.cc",
981 "src/trace_processor/importers/common/args_tracker.h",
Igor Kraskevichbadba0b2022-03-22 19:44:20 +0000982 "src/trace_processor/importers/common/args_translation_table.cc",
983 "src/trace_processor/importers/common/args_translation_table.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +0100984 "src/trace_processor/importers/common/chunked_trace_reader.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100985 "src/trace_processor/importers/common/clock_tracker.cc",
986 "src/trace_processor/importers/common/clock_tracker.h",
987 "src/trace_processor/importers/common/event_tracker.cc",
988 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300989 "src/trace_processor/importers/common/flow_tracker.cc",
990 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100991 "src/trace_processor/importers/common/global_args_tracker.cc",
992 "src/trace_processor/importers/common/global_args_tracker.h",
993 "src/trace_processor/importers/common/process_tracker.cc",
994 "src/trace_processor/importers/common/process_tracker.h",
995 "src/trace_processor/importers/common/slice_tracker.cc",
996 "src/trace_processor/importers/common/slice_tracker.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100997 "src/trace_processor/importers/common/system_info_tracker.cc",
998 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantid1a7b032021-04-23 14:46:57 +0100999 "src/trace_processor/importers/common/trace_parser.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01001000 "src/trace_processor/importers/common/track_tracker.cc",
1001 "src/trace_processor/importers/common/track_tracker.h",
1002 ],
1003)
1004
Lalit Maganti1534bb72021-04-23 14:11:26 +01001005# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +08001006perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +01001007 name = "src_trace_processor_importers_memory_tracker_graph_processor",
1008 srcs = [
1009 "src/trace_processor/importers/memory_tracker/graph.cc",
1010 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
1011 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
1012 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
1013 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
1014 ],
1015)
1016
Lalit Maganti117272f2020-09-11 14:01:18 +01001017perfetto_cc_proto_descriptor(
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00001018 name = "src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
1019 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00001020 ":protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00001021 ],
1022 outs = [
1023 "src/trace_processor/importers/chrome_track_event.descriptor.h",
1024 ],
1025)
1026
1027perfetto_cc_proto_descriptor(
Hector Dearmana1d75242020-10-02 09:47:24 +01001028 name = "src_trace_processor_importers_gen_cc_config_descriptor",
1029 deps = [
1030 ":protos_perfetto_config_descriptor",
1031 ],
1032 outs = [
1033 "src/trace_processor/importers/config.descriptor.h",
1034 ],
1035)
1036
1037perfetto_cc_proto_descriptor(
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001038 name = "src_trace_processor_importers_gen_cc_track_event_descriptor",
1039 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00001040 ":protos_perfetto_trace_track_event_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001041 ],
1042 outs = [
1043 "src/trace_processor/importers/track_event.descriptor.h",
1044 ],
1045)
1046
Lalit Maganti4c328e32021-11-09 19:29:50 +00001047perfetto_genrule(
1048 name = "src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
1049 srcs = [
1050 "src/trace_processor/metrics/sql/android/android_batt.sql",
1051 "src/trace_processor/metrics/sql/android/android_camera.sql",
Lalit Magantic16c7212021-12-16 17:32:55 +00001052 "src/trace_processor/metrics/sql/android/android_camera_unagg.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001053 "src/trace_processor/metrics/sql/android/android_cpu.sql",
1054 "src/trace_processor/metrics/sql/android/android_cpu_agg.sql",
1055 "src/trace_processor/metrics/sql/android/android_cpu_raw_metrics_per_core.sql",
1056 "src/trace_processor/metrics/sql/android/android_dma_heap.sql",
Luke Chang476e9442021-11-09 23:14:34 +08001057 "src/trace_processor/metrics/sql/android/android_dvfs.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001058 "src/trace_processor/metrics/sql/android/android_fastrpc.sql",
1059 "src/trace_processor/metrics/sql/android/android_gpu.sql",
1060 "src/trace_processor/metrics/sql/android/android_hwcomposer.sql",
1061 "src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
1062 "src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
1063 "src/trace_processor/metrics/sql/android/android_ion.sql",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08001064 "src/trace_processor/metrics/sql/android/android_irq_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001065 "src/trace_processor/metrics/sql/android/android_jank.sql",
1066 "src/trace_processor/metrics/sql/android/android_lmk.sql",
1067 "src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
1068 "src/trace_processor/metrics/sql/android/android_mem.sql",
1069 "src/trace_processor/metrics/sql/android/android_mem_unagg.sql",
1070 "src/trace_processor/metrics/sql/android/android_multiuser.sql",
1071 "src/trace_processor/metrics/sql/android/android_multiuser_populator.sql",
Luke Change25d2c42021-12-07 16:08:32 +08001072 "src/trace_processor/metrics/sql/android/android_netperf.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001073 "src/trace_processor/metrics/sql/android/android_package_list.sql",
1074 "src/trace_processor/metrics/sql/android/android_powrails.sql",
1075 "src/trace_processor/metrics/sql/android/android_proxy_power.sql",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08001076 "src/trace_processor/metrics/sql/android/android_rt_runtime.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001077 "src/trace_processor/metrics/sql/android/android_simpleperf.sql",
1078 "src/trace_processor/metrics/sql/android/android_startup.sql",
1079 "src/trace_processor/metrics/sql/android/android_surfaceflinger.sql",
1080 "src/trace_processor/metrics/sql/android/android_sysui_cuj.sql",
1081 "src/trace_processor/metrics/sql/android/android_sysui_cuj_jank_query.sql",
Nick Pollard54c1fc32022-02-15 18:21:21 +00001082 "src/trace_processor/metrics/sql/android/android_sysui_cuj_surfaceflinger.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001083 "src/trace_processor/metrics/sql/android/android_task_names.sql",
1084 "src/trace_processor/metrics/sql/android/android_thread_time_in_state.sql",
1085 "src/trace_processor/metrics/sql/android/android_trace_quality.sql",
David LeGare20d39c42022-01-20 20:38:43 +00001086 "src/trace_processor/metrics/sql/android/android_trusty_workqueues.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001087 "src/trace_processor/metrics/sql/android/composer_execution.sql",
1088 "src/trace_processor/metrics/sql/android/composition_layers.sql",
1089 "src/trace_processor/metrics/sql/android/cpu_info.sql",
1090 "src/trace_processor/metrics/sql/android/display_metrics.sql",
1091 "src/trace_processor/metrics/sql/android/frame_missed.sql",
1092 "src/trace_processor/metrics/sql/android/g2d.sql",
1093 "src/trace_processor/metrics/sql/android/g2d_duration.sql",
1094 "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
1095 "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
1096 "src/trace_processor/metrics/sql/android/java_heap_histogram.sql",
1097 "src/trace_processor/metrics/sql/android/java_heap_stats.sql",
1098 "src/trace_processor/metrics/sql/android/mem_stats_priority_breakdown.sql",
1099 "src/trace_processor/metrics/sql/android/power_drain_in_watts.sql",
1100 "src/trace_processor/metrics/sql/android/power_profile_data.sql",
1101 "src/trace_processor/metrics/sql/android/process_counter_span_view.sql",
1102 "src/trace_processor/metrics/sql/android/process_mem.sql",
1103 "src/trace_processor/metrics/sql/android/process_metadata.sql",
1104 "src/trace_processor/metrics/sql/android/process_oom_score.sql",
1105 "src/trace_processor/metrics/sql/android/process_unagg_mem_view.sql",
1106 "src/trace_processor/metrics/sql/android/profiler_smaps.sql",
1107 "src/trace_processor/metrics/sql/android/span_view_stats.sql",
1108 "src/trace_processor/metrics/sql/android/startup/hsc.sql",
1109 "src/trace_processor/metrics/sql/android/startup/launches.sql",
Lalit Maganti186ed0f2021-12-02 18:13:15 +00001110 "src/trace_processor/metrics/sql/android/startup/launches_maxsdk28.sql",
1111 "src/trace_processor/metrics/sql/android/startup/launches_minsdk29.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001112 "src/trace_processor/metrics/sql/android/thread_counter_span_view.sql",
1113 "src/trace_processor/metrics/sql/android/unsymbolized_frames.sql",
1114 "src/trace_processor/metrics/sql/chrome/actual_power_by_category.sql",
1115 "src/trace_processor/metrics/sql/chrome/actual_power_by_rail_mode.sql",
1116 "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00001117 "src/trace_processor/metrics/sql/chrome/chrome_histogram_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001118 "src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
Omar Elmekkawy07d02b02021-12-14 20:36:36 +00001119 "src/trace_processor/metrics/sql/chrome/chrome_thread_slice.sql",
Igor Kraskevich32214832022-03-25 13:12:53 +00001120 "src/trace_processor/metrics/sql/chrome/chrome_user_event_hashes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001121 "src/trace_processor/metrics/sql/chrome/cpu_time_by_category.sql",
1122 "src/trace_processor/metrics/sql/chrome/cpu_time_by_rail_mode.sql",
1123 "src/trace_processor/metrics/sql/chrome/estimated_power_by_category.sql",
1124 "src/trace_processor/metrics/sql/chrome/estimated_power_by_rail_mode.sql",
1125 "src/trace_processor/metrics/sql/chrome/gesture_flow_event.sql",
1126 "src/trace_processor/metrics/sql/chrome/gesture_flow_event_queuing_delay.sql",
1127 "src/trace_processor/metrics/sql/chrome/gesture_jank.sql",
Omar Elmekkawyc50cd612022-01-20 16:18:33 +00001128 "src/trace_processor/metrics/sql/chrome/jank_utilities.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001129 "src/trace_processor/metrics/sql/chrome/rail_modes.sql",
1130 "src/trace_processor/metrics/sql/chrome/scroll_flow_event.sql",
1131 "src/trace_processor/metrics/sql/chrome/scroll_flow_event_queuing_delay.sql",
1132 "src/trace_processor/metrics/sql/chrome/scroll_jank.sql",
1133 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause.sql",
1134 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_task.sql",
1135 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_touch_move.sql",
1136 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_get_bitmap.sql",
1137 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_queuing_delay.sql",
Omar Elmekkawy0d6b3462021-12-09 20:28:02 +00001138 "src/trace_processor/metrics/sql/chrome/sufficient_chrome_processes.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001139 "src/trace_processor/metrics/sql/chrome/test_chrome_metric.sql",
1140 "src/trace_processor/metrics/sql/chrome/touch_flow_event.sql",
1141 "src/trace_processor/metrics/sql/chrome/touch_flow_event_queuing_delay.sql",
1142 "src/trace_processor/metrics/sql/chrome/touch_jank.sql",
1143 "src/trace_processor/metrics/sql/experimental/blink_gc_metric.sql",
1144 "src/trace_processor/metrics/sql/experimental/chrome_dropped_frames.sql",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04001145 "src/trace_processor/metrics/sql/experimental/chrome_long_latency.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001146 "src/trace_processor/metrics/sql/experimental/frame_times.sql",
1147 "src/trace_processor/metrics/sql/experimental/media_metric.sql",
1148 "src/trace_processor/metrics/sql/experimental/reported_by_page.sql",
1149 "src/trace_processor/metrics/sql/trace_metadata.sql",
1150 "src/trace_processor/metrics/sql/trace_stats.sql",
1151 "src/trace_processor/metrics/sql/webview/webview_power_usage.sql",
1152 ],
1153 outs = [
1154 "src/trace_processor/metrics/sql/amalgamated_sql_metrics.h",
1155 ],
1156 cmd = "$(location gen_amalgamated_sql_metrics_py) --cpp_out=$@ $(SRCS)",
1157 exec_tools = [
1158 ":gen_amalgamated_sql_metrics_py",
1159 ],
1160)
1161
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001162perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001163 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
1164 deps = [
1165 ":protos_perfetto_metrics_chrome_descriptor",
1166 ],
1167 outs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001168 "src/trace_processor/metrics/all_chrome_metrics.descriptor.h",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001169 ],
1170)
1171
1172perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001173 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1174 deps = [
1175 ":protos_perfetto_metrics_descriptor",
1176 ],
1177 outs = [
1178 "src/trace_processor/metrics/metrics.descriptor.h",
1179 ],
1180)
1181
Lalit Maganti4c328e32021-11-09 19:29:50 +00001182# GN target: //src/trace_processor/metrics:metrics
Harvey Yang321c4fc2021-10-25 14:11:50 +08001183perfetto_filegroup(
Lalit Maganti4c328e32021-11-09 19:29:50 +00001184 name = "src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01001185 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001186 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001187 "src/trace_processor/metrics/metrics.h",
1188 ],
1189)
1190
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001191# GN target: //src/trace_processor/rpc:httpd
Harvey Yang321c4fc2021-10-25 14:11:50 +08001192perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001193 name = "src_trace_processor_rpc_httpd",
1194 srcs = [
1195 "src/trace_processor/rpc/httpd.cc",
1196 "src/trace_processor/rpc/httpd.h",
1197 ],
1198)
1199
1200# GN target: //src/trace_processor/rpc:rpc
Harvey Yang321c4fc2021-10-25 14:11:50 +08001201perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001202 name = "src_trace_processor_rpc_rpc",
1203 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001204 "src/trace_processor/rpc/query_result_serializer.cc",
1205 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001206 "src/trace_processor/rpc/rpc.cc",
1207 "src/trace_processor/rpc/rpc.h",
1208 ],
1209)
1210
Primiano Tucci1d409982019-09-19 10:15:18 +01001211# GN target: //src/trace_processor/sqlite:sqlite
Harvey Yang321c4fc2021-10-25 14:11:50 +08001212perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001213 name = "src_trace_processor_sqlite_sqlite",
1214 srcs = [
Lalit Maganti00ca67c2021-11-10 14:11:19 +00001215 "src/trace_processor/sqlite/create_function.cc",
1216 "src/trace_processor/sqlite/create_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001217 "src/trace_processor/sqlite/db_sqlite_table.cc",
1218 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001219 "src/trace_processor/sqlite/query_cache.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001220 "src/trace_processor/sqlite/query_constraints.cc",
1221 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti82517672021-11-04 23:39:15 +00001222 "src/trace_processor/sqlite/register_function.cc",
1223 "src/trace_processor/sqlite/register_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001224 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001225 "src/trace_processor/sqlite/span_join_operator_table.cc",
1226 "src/trace_processor/sqlite/span_join_operator_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001227 "src/trace_processor/sqlite/sql_stats_table.cc",
1228 "src/trace_processor/sqlite/sql_stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001229 "src/trace_processor/sqlite/sqlite3_str_split.cc",
1230 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001231 "src/trace_processor/sqlite/sqlite_raw_table.cc",
1232 "src/trace_processor/sqlite/sqlite_raw_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001233 "src/trace_processor/sqlite/sqlite_table.cc",
1234 "src/trace_processor/sqlite/sqlite_table.h",
1235 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001236 "src/trace_processor/sqlite/stats_table.cc",
1237 "src/trace_processor/sqlite/stats_table.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001238 "src/trace_processor/sqlite/window_operator_table.cc",
1239 "src/trace_processor/sqlite/window_operator_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001240 ],
1241)
1242
Lalit Maganti7010b332020-02-07 10:51:15 +00001243# GN target: //src/trace_processor/storage:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +08001244perfetto_filegroup(
Lalit Maganti7010b332020-02-07 10:51:15 +00001245 name = "src_trace_processor_storage_storage",
1246 srcs = [
1247 "src/trace_processor/storage/metadata.h",
1248 "src/trace_processor/storage/stats.h",
1249 "src/trace_processor/storage/trace_storage.cc",
1250 "src/trace_processor/storage/trace_storage.h",
1251 ],
1252)
1253
Primiano Tucci1d409982019-09-19 10:15:18 +01001254# GN target: //src/trace_processor/tables:tables
Harvey Yang321c4fc2021-10-25 14:11:50 +08001255perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001256 name = "src_trace_processor_tables_tables",
1257 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +00001258 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +00001259 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001260 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001261 "src/trace_processor/tables/macros.h",
1262 "src/trace_processor/tables/macros_internal.h",
Witold Fijalkowskicdaed0e2020-10-02 09:47:21 +02001263 "src/trace_processor/tables/memory_tables.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +00001264 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001265 "src/trace_processor/tables/profiler_tables.h",
1266 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01001267 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001268 "src/trace_processor/tables/track_tables.h",
1269 ],
1270)
1271
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001272# GN target: //src/trace_processor/types:types
Harvey Yang321c4fc2021-10-25 14:11:50 +08001273perfetto_filegroup(
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001274 name = "src_trace_processor_types_types",
1275 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01001276 "src/trace_processor/types/destructible.cc",
1277 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001278 "src/trace_processor/types/gfp_flags.cc",
1279 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12001280 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01001281 "src/trace_processor/types/task_state.cc",
1282 "src/trace_processor/types/task_state.h",
Luke Chang1b904072022-01-26 09:33:19 +08001283 "src/trace_processor/types/tcp_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01001284 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001285 "src/trace_processor/types/variadic.cc",
1286 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001287 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001288 ],
1289)
1290
Lalit Magantie7107402020-04-15 13:41:12 +01001291# GN target: //src/trace_processor/util:descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001292perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001293 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001294 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01001295 "src/trace_processor/util/descriptors.cc",
1296 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001297 ],
1298)
1299
Lalit Maganti69216ec2021-05-21 14:10:42 +01001300# GN target: //src/trace_processor/util:gzip
Harvey Yang321c4fc2021-10-25 14:11:50 +08001301perfetto_filegroup(
Lalit Maganti69216ec2021-05-21 14:10:42 +01001302 name = "src_trace_processor_util_gzip",
1303 srcs = [
1304 "src/trace_processor/util/gzip_utils.cc",
1305 "src/trace_processor/util/gzip_utils.h",
1306 ],
1307)
1308
Alexander Timin97d87852021-05-17 18:01:33 +00001309# GN target: //src/trace_processor/util:interned_message_view
Harvey Yang321c4fc2021-10-25 14:11:50 +08001310perfetto_filegroup(
Alexander Timin97d87852021-05-17 18:01:33 +00001311 name = "src_trace_processor_util_interned_message_view",
1312 srcs = [
1313 "src/trace_processor/util/interned_message_view.h",
1314 ],
1315)
1316
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001317# GN target: //src/trace_processor/util:proto_to_args_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001318perfetto_filegroup(
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001319 name = "src_trace_processor_util_proto_to_args_parser",
1320 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00001321 "src/trace_processor/util/debug_annotation_parser.cc",
1322 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001323 "src/trace_processor/util/proto_to_args_parser.cc",
1324 "src/trace_processor/util/proto_to_args_parser.h",
1325 ],
1326)
1327
Deepanjan Roy1e048012020-09-23 12:49:04 -04001328# GN target: //src/trace_processor/util:protozero_to_text
Harvey Yang321c4fc2021-10-25 14:11:50 +08001329perfetto_filegroup(
Deepanjan Roy1e048012020-09-23 12:49:04 -04001330 name = "src_trace_processor_util_protozero_to_text",
1331 srcs = [
1332 "src/trace_processor/util/protozero_to_text.cc",
1333 "src/trace_processor/util/protozero_to_text.h",
1334 ],
1335)
1336
Lalit Magantie7107402020-04-15 13:41:12 +01001337# GN target: //src/trace_processor/util:util
Harvey Yang321c4fc2021-10-25 14:11:50 +08001338perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001339 name = "src_trace_processor_util_util",
1340 srcs = [
1341 "src/trace_processor/util/status_macros.h",
1342 ],
1343)
1344
Ryan Savitskie65c4052022-03-24 18:22:19 +00001345# GN target: //src/trace_processor:demangle
1346perfetto_cc_library(
1347 name = "src_trace_processor_demangle",
1348 srcs = [
1349 "src/trace_processor/demangle.cc",
1350 ],
1351 hdrs = [
1352 ":include_perfetto_base_base",
1353 ":include_perfetto_ext_base_base",
1354 ":include_perfetto_ext_trace_processor_demangle",
1355 ],
1356 linkstatic = True,
1357)
1358
Eric Secklera7870e62019-11-01 10:11:58 +00001359# GN target: //src/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +08001360perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +00001361 name = "src_trace_processor_export_json",
1362 srcs = [
1363 "src/trace_processor/export_json.cc",
1364 "src/trace_processor/export_json.h",
1365 ],
1366)
1367
Lalit Maganti655adae2020-04-14 21:01:25 +01001368# GN target: //src/trace_processor:ftrace_descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001369perfetto_filegroup(
Lalit Maganti655adae2020-04-14 21:01:25 +01001370 name = "src_trace_processor_ftrace_descriptors",
1371 srcs = [
1372 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1373 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1374 ],
1375)
1376
Primiano Tucci1d409982019-09-19 10:15:18 +01001377# GN target: //src/trace_processor:lib
Harvey Yang321c4fc2021-10-25 14:11:50 +08001378perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001379 name = "src_trace_processor_lib",
1380 srcs = [
Stephen Nuskodd7f6dc2020-11-26 17:04:08 -05001381 "src/trace_processor/dynamic/ancestor_generator.cc",
1382 "src/trace_processor/dynamic/ancestor_generator.h",
Andrii824107d2020-09-29 10:13:36 +03001383 "src/trace_processor/dynamic/connected_flow_generator.cc",
1384 "src/trace_processor/dynamic/connected_flow_generator.h",
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +00001385 "src/trace_processor/dynamic/descendant_generator.cc",
1386 "src/trace_processor/dynamic/descendant_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001387 "src/trace_processor/dynamic/describe_slice_generator.cc",
1388 "src/trace_processor/dynamic/describe_slice_generator.h",
Ryanddeb3b12021-04-12 15:55:17 +01001389 "src/trace_processor/dynamic/experimental_annotated_stack_generator.cc",
1390 "src/trace_processor/dynamic/experimental_annotated_stack_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001391 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
1392 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
1393 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
1394 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
Lalit Maganti40fbe8e2021-06-10 16:21:25 +01001395 "src/trace_processor/dynamic/experimental_flat_slice_generator.cc",
1396 "src/trace_processor/dynamic/experimental_flat_slice_generator.h",
Lalit Magantic59b1bc2020-07-28 16:36:58 +01001397 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
1398 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
Hector Dearman5b523762020-04-16 10:36:32 +01001399 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
1400 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
Lalit Maganti2fc5db22020-08-13 15:02:47 +01001401 "src/trace_processor/dynamic/thread_state_generator.cc",
1402 "src/trace_processor/dynamic/thread_state_generator.h",
Primiano Tucci4e01f632020-06-11 17:03:05 +01001403 "src/trace_processor/iterator_impl.cc",
1404 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001405 "src/trace_processor/read_trace.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001406 "src/trace_processor/trace_processor.cc",
1407 "src/trace_processor/trace_processor_impl.cc",
1408 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001409 ],
1410)
1411
Lalit Maganti427b8332020-05-27 16:09:45 +01001412# GN target: //src/trace_processor:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001413perfetto_filegroup(
Lalit Maganti427b8332020-05-27 16:09:45 +01001414 name = "src_trace_processor_metatrace",
1415 srcs = [
1416 "src/trace_processor/tp_metatrace.cc",
1417 "src/trace_processor/tp_metatrace.h",
1418 ],
1419)
1420
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001421# GN target: //src/trace_processor:storage_full
Harvey Yang321c4fc2021-10-25 14:11:50 +08001422perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001423 name = "src_trace_processor_storage_full",
1424 srcs = [
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001425 "src/trace_processor/importers/additional_modules.cc",
1426 "src/trace_processor/importers/additional_modules.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001427 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1428 "src/trace_processor/importers/ftrace/binder_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001429 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1430 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1431 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1432 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1433 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1434 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
Lalit Maganti697894f2019-12-23 14:32:13 +00001435 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1436 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001437 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1438 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001439 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1440 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1441 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1442 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1443 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1444 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001445 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1446 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001447 "src/trace_processor/importers/json/json_trace_parser.cc",
1448 "src/trace_processor/importers/json/json_trace_parser.h",
1449 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1450 "src/trace_processor/importers/json/json_trace_tokenizer.h",
Mikhail Khokhlov9996d5d2019-12-17 14:43:17 +00001451 "src/trace_processor/importers/proto/android_probes_module.cc",
1452 "src/trace_processor/importers/proto/android_probes_module.h",
1453 "src/trace_processor/importers/proto/android_probes_parser.cc",
1454 "src/trace_processor/importers/proto/android_probes_parser.h",
Florian Mayer19ce3952020-04-08 15:27:32 +02001455 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1456 "src/trace_processor/importers/proto/android_probes_tracker.h",
Adithya Srinivasan526a34e2020-11-06 13:40:58 -08001457 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1458 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001459 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1460 "src/trace_processor/importers/proto/gpu_event_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001461 "src/trace_processor/importers/proto/graphics_event_module.cc",
1462 "src/trace_processor/importers/proto/graphics_event_module.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001463 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1464 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
Mikhail Khokhlov6146a582019-12-17 17:33:47 +00001465 "src/trace_processor/importers/proto/heap_graph_module.cc",
1466 "src/trace_processor/importers/proto/heap_graph_module.h",
1467 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1468 "src/trace_processor/importers/proto/heap_graph_tracker.h",
Mikhail Khokhlov04f6eb72019-12-17 14:33:11 +00001469 "src/trace_processor/importers/proto/system_probes_module.cc",
1470 "src/trace_processor/importers/proto/system_probes_module.h",
1471 "src/trace_processor/importers/proto/system_probes_parser.cc",
1472 "src/trace_processor/importers/proto/system_probes_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001473 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1474 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001475 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1476 "src/trace_processor/importers/syscalls/syscalls_aarch32.h",
1477 "src/trace_processor/importers/syscalls/syscalls_aarch64.h",
1478 "src/trace_processor/importers/syscalls/syscalls_armeabi.h",
1479 "src/trace_processor/importers/syscalls/syscalls_x86.h",
1480 "src/trace_processor/importers/syscalls/syscalls_x86_64.h",
Lalit Maganti2f0b41d2020-02-27 13:35:39 +00001481 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1482 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1483 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1484 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001485 "src/trace_processor/importers/systrace/systrace_parser.cc",
1486 "src/trace_processor/importers/systrace/systrace_parser.h",
1487 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1488 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001489 ],
1490)
1491
1492# GN target: //src/trace_processor:storage_minimal
Harvey Yang321c4fc2021-10-25 14:11:50 +08001493perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001494 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00001495 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001496 "src/trace_processor/forwarding_trace_parser.cc",
1497 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001498 "src/trace_processor/importers/default_modules.cc",
1499 "src/trace_processor/importers/default_modules.h",
Mikhail Khokhlovdd1db002019-12-09 16:34:07 +00001500 "src/trace_processor/importers/ftrace/ftrace_module.cc",
Eric Seckleracfe35b2019-10-18 15:50:17 +01001501 "src/trace_processor/importers/ftrace/ftrace_module.h",
Eric Seckler67e15a92020-01-03 13:20:46 +00001502 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
Eric Secklerd8b52082019-10-17 15:58:38 +01001503 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
Lalit Maganti0bfeb972020-03-14 03:57:30 +00001504 "src/trace_processor/importers/json/json_utils.cc",
1505 "src/trace_processor/importers/json/json_utils.h",
Primiano Tucci50446cb2020-02-14 10:40:23 +00001506 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1507 "src/trace_processor/importers/ninja/ninja_log_parser.h",
Michael Eastwood413e77a2022-02-09 17:02:43 -08001508 "src/trace_processor/importers/proto/android_camera_event_module.cc",
1509 "src/trace_processor/importers/proto/android_camera_event_module.h",
Lalit Magantif7a1a732020-10-12 15:42:34 +01001510 "src/trace_processor/importers/proto/async_track_set_tracker.cc",
1511 "src/trace_processor/importers/proto/async_track_set_tracker.h",
Oystein Eftevaag8e39ed82021-03-30 13:52:58 -07001512 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1513 "src/trace_processor/importers/proto/chrome_string_lookup.h",
ssid7f0c8592021-03-01 13:35:25 -08001514 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1515 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1516 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1517 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Tuchila Octavian8c795cd2021-08-25 09:48:35 +01001518 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.cc",
1519 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001520 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1521 "src/trace_processor/importers/proto/heap_profile_tracker.h",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01001522 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1523 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1524 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1525 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
Lalit Maganti8532fc92021-03-30 15:48:15 +01001526 "src/trace_processor/importers/proto/metadata_module.cc",
1527 "src/trace_processor/importers/proto/metadata_module.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001528 "src/trace_processor/importers/proto/metadata_tracker.cc",
1529 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001530 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001531 "src/trace_processor/importers/proto/packet_sequence_state.h",
Ryan Savitskic6c7e842021-03-10 14:26:59 +00001532 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1533 "src/trace_processor/importers/proto/perf_sample_tracker.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001534 "src/trace_processor/importers/proto/profile_module.cc",
1535 "src/trace_processor/importers/proto/profile_module.h",
1536 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1537 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001538 "src/trace_processor/importers/proto/profiler_util.cc",
1539 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001540 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001541 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001542 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001543 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1544 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001545 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1546 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001547 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1548 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001549 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1550 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001551 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001552 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001553 "src/trace_processor/importers/proto/track_event_parser.cc",
1554 "src/trace_processor/importers/proto/track_event_parser.h",
1555 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1556 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganti62b741f2020-12-10 18:24:00 +00001557 "src/trace_processor/importers/proto/track_event_tracker.cc",
1558 "src/trace_processor/importers/proto/track_event_tracker.h",
Igor Kraskevichbadba0b2022-03-22 19:44:20 +00001559 "src/trace_processor/importers/proto/translation_table_module.cc",
1560 "src/trace_processor/importers/proto/translation_table_module.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001561 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001562 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001563 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci3264b592021-11-08 18:20:51 +00001564 "src/trace_processor/trace_blob.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001565 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001566 "src/trace_processor/trace_processor_storage.cc",
1567 "src/trace_processor/trace_processor_storage_impl.cc",
1568 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001569 "src/trace_processor/trace_sorter.cc",
1570 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001571 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001572 ],
1573)
1574
1575# GN target: //src/traced/probes/android_log:android_log
Harvey Yang321c4fc2021-10-25 14:11:50 +08001576perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001577 name = "src_traced_probes_android_log_android_log",
1578 srcs = [
1579 "src/traced/probes/android_log/android_log_data_source.cc",
1580 "src/traced/probes/android_log/android_log_data_source.h",
1581 ],
1582)
1583
Rafal Slawik8053a682020-04-08 17:26:40 +01001584# GN target: //src/traced/probes/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001585perfetto_filegroup(
Rafal Slawik8053a682020-04-08 17:26:40 +01001586 name = "src_traced_probes_common_common",
1587 srcs = [
1588 "src/traced/probes/common/cpu_freq_info.cc",
1589 "src/traced/probes/common/cpu_freq_info.h",
1590 ],
1591)
1592
Primiano Tucci1d409982019-09-19 10:15:18 +01001593# GN target: //src/traced/probes/filesystem:filesystem
Harvey Yang321c4fc2021-10-25 14:11:50 +08001594perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001595 name = "src_traced_probes_filesystem_filesystem",
1596 srcs = [
1597 "src/traced/probes/filesystem/file_scanner.cc",
1598 "src/traced/probes/filesystem/file_scanner.h",
1599 "src/traced/probes/filesystem/fs_mount.cc",
1600 "src/traced/probes/filesystem/fs_mount.h",
1601 "src/traced/probes/filesystem/inode_file_data_source.cc",
1602 "src/traced/probes/filesystem/inode_file_data_source.h",
1603 "src/traced/probes/filesystem/lru_inode_cache.cc",
1604 "src/traced/probes/filesystem/lru_inode_cache.h",
1605 "src/traced/probes/filesystem/prefix_finder.cc",
1606 "src/traced/probes/filesystem/prefix_finder.h",
1607 "src/traced/probes/filesystem/range_tree.cc",
1608 "src/traced/probes/filesystem/range_tree.h",
1609 ],
1610)
1611
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001612# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001613perfetto_filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001614 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01001615 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001616 "src/traced/probes/ftrace/format_parser/format_parser.cc",
1617 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001618 ],
1619)
1620
1621# GN target: //src/traced/probes/ftrace:ftrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001622perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001623 name = "src_traced_probes_ftrace_ftrace",
1624 srcs = [
1625 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1626 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1627 "src/traced/probes/ftrace/atrace_wrapper.cc",
1628 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001629 "src/traced/probes/ftrace/compact_sched.cc",
1630 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001631 "src/traced/probes/ftrace/cpu_reader.cc",
1632 "src/traced/probes/ftrace/cpu_reader.h",
1633 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1634 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001635 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1636 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001637 "src/traced/probes/ftrace/event_info.cc",
1638 "src/traced/probes/ftrace/event_info.h",
1639 "src/traced/probes/ftrace/event_info_constants.cc",
1640 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001641 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1642 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1643 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1644 "src/traced/probes/ftrace/ftrace_config_utils.h",
1645 "src/traced/probes/ftrace/ftrace_controller.cc",
1646 "src/traced/probes/ftrace/ftrace_controller.h",
1647 "src/traced/probes/ftrace/ftrace_data_source.cc",
1648 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001649 "src/traced/probes/ftrace/ftrace_metadata.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001650 "src/traced/probes/ftrace/ftrace_stats.cc",
1651 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00001652 "src/traced/probes/ftrace/printk_formats_parser.cc",
1653 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001654 "src/traced/probes/ftrace/proto_translation_table.cc",
1655 "src/traced/probes/ftrace/proto_translation_table.h",
1656 ],
1657)
1658
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001659# GN target: //src/traced/probes/ftrace:ftrace_procfs
Harvey Yang321c4fc2021-10-25 14:11:50 +08001660perfetto_filegroup(
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001661 name = "src_traced_probes_ftrace_ftrace_procfs",
1662 srcs = [
1663 "src/traced/probes/ftrace/ftrace_procfs.cc",
1664 "src/traced/probes/ftrace/ftrace_procfs.h",
1665 ],
1666)
1667
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001668# GN target: //src/traced/probes/initial_display_state:initial_display_state
Harvey Yang321c4fc2021-10-25 14:11:50 +08001669perfetto_filegroup(
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001670 name = "src_traced_probes_initial_display_state_initial_display_state",
1671 srcs = [
1672 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1673 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1674 ],
1675)
1676
Primiano Tucci1d409982019-09-19 10:15:18 +01001677# GN target: //src/traced/probes/metatrace:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001678perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001679 name = "src_traced_probes_metatrace_metatrace",
1680 srcs = [
1681 "src/traced/probes/metatrace/metatrace_data_source.cc",
1682 "src/traced/probes/metatrace/metatrace_data_source.h",
1683 ],
1684)
1685
1686# GN target: //src/traced/probes/packages_list:packages_list
Harvey Yang321c4fc2021-10-25 14:11:50 +08001687perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001688 name = "src_traced_probes_packages_list_packages_list",
1689 srcs = [
1690 "src/traced/probes/packages_list/packages_list_data_source.cc",
1691 "src/traced/probes/packages_list/packages_list_data_source.h",
1692 ],
1693)
1694
Florian Mayer29e17182020-12-23 10:59:02 +00001695# GN target: //src/traced/probes/packages_list:packages_list_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001696perfetto_filegroup(
Florian Mayer29e17182020-12-23 10:59:02 +00001697 name = "src_traced_probes_packages_list_packages_list_parser",
1698 srcs = [
1699 "src/traced/probes/packages_list/packages_list_parser.cc",
1700 "src/traced/probes/packages_list/packages_list_parser.h",
1701 ],
1702)
1703
Primiano Tucci1d409982019-09-19 10:15:18 +01001704# GN target: //src/traced/probes/power:power
Harvey Yang321c4fc2021-10-25 14:11:50 +08001705perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001706 name = "src_traced_probes_power_power",
1707 srcs = [
1708 "src/traced/probes/power/android_power_data_source.cc",
1709 "src/traced/probes/power/android_power_data_source.h",
Chinglin Yu819ef1a2021-11-15 22:25:05 +08001710 "src/traced/probes/power/linux_power_sysfs_data_source.cc",
1711 "src/traced/probes/power/linux_power_sysfs_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001712 ],
1713)
1714
1715# GN target: //src/traced/probes/ps:ps
Harvey Yang321c4fc2021-10-25 14:11:50 +08001716perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001717 name = "src_traced_probes_ps_ps",
1718 srcs = [
1719 "src/traced/probes/ps/process_stats_data_source.cc",
1720 "src/traced/probes/ps/process_stats_data_source.h",
1721 ],
1722)
1723
1724# GN target: //src/traced/probes/sys_stats:sys_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +08001725perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001726 name = "src_traced_probes_sys_stats_sys_stats",
1727 srcs = [
1728 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1729 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1730 ],
1731)
1732
Rafal Slawikb013a112020-04-03 16:12:02 +01001733# GN target: //src/traced/probes/system_info:system_info
Harvey Yang321c4fc2021-10-25 14:11:50 +08001734perfetto_filegroup(
Rafal Slawikb013a112020-04-03 16:12:02 +01001735 name = "src_traced_probes_system_info_system_info",
1736 srcs = [
1737 "src/traced/probes/system_info/system_info_data_source.cc",
1738 "src/traced/probes/system_info/system_info_data_source.h",
1739 ],
1740)
1741
Primiano Tucci1d409982019-09-19 10:15:18 +01001742# GN target: //src/traced/probes:data_source
Harvey Yang321c4fc2021-10-25 14:11:50 +08001743perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001744 name = "src_traced_probes_data_source",
1745 srcs = [
1746 "src/traced/probes/probes_data_source.cc",
1747 "src/traced/probes/probes_data_source.h",
1748 ],
1749)
1750
1751# GN target: //src/traced/probes:probes
Harvey Yang321c4fc2021-10-25 14:11:50 +08001752perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001753 name = "src_traced_probes_probes",
1754 srcs = [
1755 "src/traced/probes/probes.cc",
1756 ],
1757)
1758
1759# GN target: //src/traced/probes:probes_src
Harvey Yang321c4fc2021-10-25 14:11:50 +08001760perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001761 name = "src_traced_probes_probes_src",
1762 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05001763 "src/traced/probes/kmem_activity_trigger.cc",
1764 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001765 "src/traced/probes/probes_producer.cc",
1766 "src/traced/probes/probes_producer.h",
1767 ],
1768)
1769
1770# GN target: //src/traced/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001771perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001772 name = "src_traced_service_service",
1773 srcs = [
1774 "src/traced/service/builtin_producer.cc",
1775 "src/traced/service/builtin_producer.h",
1776 "src/traced/service/service.cc",
1777 ],
1778)
1779
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001780# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
Harvey Yang321c4fc2021-10-25 14:11:50 +08001781perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001782 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1783 srcs = [
1784 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1785 ],
1786)
1787
1788# GN target: //src/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +08001789perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001790 name = "src_tracing_core_core",
1791 srcs = [
1792 "src/tracing/core/id_allocator.cc",
1793 "src/tracing/core/id_allocator.h",
1794 "src/tracing/core/null_trace_writer.cc",
1795 "src/tracing/core/null_trace_writer.h",
1796 "src/tracing/core/patch_list.h",
1797 "src/tracing/core/shared_memory_abi.cc",
1798 "src/tracing/core/shared_memory_arbiter_impl.cc",
1799 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001800 "src/tracing/core/trace_packet.cc",
1801 "src/tracing/core/trace_writer_impl.cc",
1802 "src/tracing/core/trace_writer_impl.h",
1803 "src/tracing/core/virtual_destructors.cc",
1804 ],
1805)
1806
1807# GN target: //src/tracing/core:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001808perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001809 name = "src_tracing_core_service",
1810 srcs = [
1811 "src/tracing/core/metatrace_writer.cc",
1812 "src/tracing/core/metatrace_writer.h",
1813 "src/tracing/core/packet_stream_validator.cc",
1814 "src/tracing/core/packet_stream_validator.h",
1815 "src/tracing/core/trace_buffer.cc",
1816 "src/tracing/core/trace_buffer.h",
1817 "src/tracing/core/tracing_service_impl.cc",
1818 "src/tracing/core/tracing_service_impl.h",
1819 ],
1820)
1821
1822# GN target: //src/tracing/ipc/consumer:consumer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001823perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001824 name = "src_tracing_ipc_consumer_consumer",
1825 srcs = [
1826 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1827 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1828 ],
1829)
1830
1831# GN target: //src/tracing/ipc/producer:producer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001832perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001833 name = "src_tracing_ipc_producer_producer",
1834 srcs = [
1835 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1836 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1837 ],
1838)
1839
1840# GN target: //src/tracing/ipc/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001841perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001842 name = "src_tracing_ipc_service_service",
1843 srcs = [
1844 "src/tracing/ipc/service/consumer_ipc_service.cc",
1845 "src/tracing/ipc/service/consumer_ipc_service.h",
1846 "src/tracing/ipc/service/producer_ipc_service.cc",
1847 "src/tracing/ipc/service/producer_ipc_service.h",
1848 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1849 "src/tracing/ipc/service/service_ipc_host_impl.h",
1850 ],
1851)
1852
1853# GN target: //src/tracing/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001854perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001855 name = "src_tracing_ipc_common",
1856 srcs = [
Eric Seckler14a22db2020-02-03 13:47:08 +00001857 "src/tracing/ipc/memfd.cc",
1858 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001859 "src/tracing/ipc/posix_shared_memory.cc",
1860 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001861 "src/tracing/ipc/shared_memory_windows.cc",
1862 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001863 ],
1864)
1865
Primiano Tucci8761a312021-11-25 17:17:23 +00001866# GN target: //src/tracing/ipc:default_socket
1867perfetto_filegroup(
1868 name = "src_tracing_ipc_default_socket",
1869 srcs = [
1870 "src/tracing/ipc/default_socket.cc",
1871 ],
1872)
1873
Primiano Tucci3feec552020-02-04 11:14:42 +00001874# GN target: //src/tracing:client_api_without_backends
Harvey Yang321c4fc2021-10-25 14:11:50 +08001875perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001876 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001877 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001878 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001879 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001880 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001881 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001882 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00001883 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001884 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00001885 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00001886 "src/tracing/internal/tracing_muxer_fake.cc",
1887 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001888 "src/tracing/internal/tracing_muxer_impl.cc",
1889 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001890 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00001891 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001892 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00001893 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001894 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01001895 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001896 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001897 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001898 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001899 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001900 "src/tracing/virtual_destructors.cc",
1901 ],
1902)
1903
Primiano Tucci1d409982019-09-19 10:15:18 +01001904# GN target: //src/tracing:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001905perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001906 name = "src_tracing_common",
1907 srcs = [
1908 "src/tracing/trace_writer_base.cc",
1909 ],
1910)
1911
Primiano Tucci55b4d912020-01-28 11:17:51 +00001912# GN target: //src/tracing:in_process_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001913perfetto_filegroup(
Primiano Tucci55b4d912020-01-28 11:17:51 +00001914 name = "src_tracing_in_process_backend",
1915 srcs = [
1916 "src/tracing/internal/in_process_tracing_backend.cc",
1917 ],
1918)
1919
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001920# GN target: //src/tracing:platform_impl
Harvey Yang321c4fc2021-10-25 14:11:50 +08001921perfetto_filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001922 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001923 srcs = [
1924 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001925 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001926 ],
1927)
1928
Primiano Tucci3feec552020-02-04 11:14:42 +00001929# GN target: //src/tracing:system_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001930perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001931 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001932 srcs = [
1933 "src/tracing/internal/system_tracing_backend.cc",
1934 ],
1935)
1936
Lalit Maganti9c2318c2021-05-20 16:21:41 +01001937perfetto_cc_proto_descriptor(
1938 name = "tools_trace_to_text_gen_cc_trace_descriptor",
1939 deps = [
1940 ":protos_perfetto_trace_descriptor",
1941 ],
1942 outs = [
1943 "tools/trace_to_text/trace.descriptor.h",
1944 ],
1945)
1946
Mohit Sainidc2a57b2022-03-04 15:17:25 +00001947# GN target: //tools/trace_to_text:lib
1948perfetto_filegroup(
1949 name = "tools_trace_to_text_lib",
1950 srcs = [
1951 "tools/trace_to_text/deobfuscate_profile.cc",
1952 "tools/trace_to_text/deobfuscate_profile.h",
1953 "tools/trace_to_text/symbolize_profile.cc",
1954 "tools/trace_to_text/symbolize_profile.h",
1955 "tools/trace_to_text/trace_to_hprof.cc",
1956 "tools/trace_to_text/trace_to_hprof.h",
1957 "tools/trace_to_text/trace_to_json.cc",
1958 "tools/trace_to_text/trace_to_json.h",
1959 "tools/trace_to_text/trace_to_profile.cc",
1960 "tools/trace_to_text/trace_to_profile.h",
1961 "tools/trace_to_text/trace_to_systrace.cc",
1962 "tools/trace_to_text/trace_to_systrace.h",
1963 "tools/trace_to_text/trace_to_text.cc",
1964 "tools/trace_to_text/trace_to_text.h",
1965 ],
1966)
1967
1968# GN target: //tools/trace_to_text:main
1969perfetto_filegroup(
1970 name = "tools_trace_to_text_main",
1971 srcs = [
1972 "tools/trace_to_text/main.cc",
1973 ],
1974)
1975
Primiano Tucci1d409982019-09-19 10:15:18 +01001976# GN target: //tools/trace_to_text:pprofbuilder
Harvey Yang321c4fc2021-10-25 14:11:50 +08001977perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001978 name = "tools_trace_to_text_pprofbuilder",
1979 srcs = [
1980 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001981 ],
1982)
1983
Primiano Tucci1d409982019-09-19 10:15:18 +01001984# GN target: //tools/trace_to_text:utils
Harvey Yang321c4fc2021-10-25 14:11:50 +08001985perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001986 name = "tools_trace_to_text_utils",
1987 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001988 "tools/trace_to_text/utils.cc",
1989 "tools/trace_to_text/utils.h",
1990 ],
1991)
1992
Primiano Tucci1d409982019-09-19 10:15:18 +01001993# ##############################################################################
1994# Proto libraries
1995# ##############################################################################
1996
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00001997# GN target: [//protos/perfetto/config:source_set]
1998perfetto_proto_library(
1999 name = "config_proto",
2000 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002001 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002002 ":protos_perfetto_common_protos",
2003 ":protos_perfetto_config_android_protos",
2004 ":protos_perfetto_config_ftrace_protos",
2005 ":protos_perfetto_config_gpu_protos",
2006 ":protos_perfetto_config_inode_file_protos",
2007 ":protos_perfetto_config_interceptors_protos",
2008 ":protos_perfetto_config_power_protos",
2009 ":protos_perfetto_config_process_stats_protos",
2010 ":protos_perfetto_config_profiling_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002011 ":protos_perfetto_config_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002012 ":protos_perfetto_config_sys_stats_protos",
2013 ":protos_perfetto_config_track_event_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002014 ],
2015)
2016
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002017# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002018perfetto_cc_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002019 name = "config_cc_proto",
2020 visibility = PERFETTO_CONFIG.public_visibility,
2021 deps = [
2022 ":config_proto",
2023 ],
2024)
2025
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002026# GN target: [//protos/perfetto/config:source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002027perfetto_java_proto_library(
2028 name = "config_java_proto",
2029 visibility = PERFETTO_CONFIG.public_visibility,
2030 deps = [
2031 ":config_proto",
2032 ],
2033)
2034
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002035# GN target: [//protos/perfetto/config:source_set]
2036perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002037 name = "config_java_proto_lite",
2038 visibility = PERFETTO_CONFIG.public_visibility,
2039 deps = [
2040 ":config_proto",
2041 ],
2042)
2043
2044# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2045perfetto_proto_library(
2046 name = "trace_proto",
2047 visibility = PERFETTO_CONFIG.public_visibility,
2048 deps = [
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002049 ":protos_perfetto_common_protos",
2050 ":protos_perfetto_config_android_protos",
2051 ":protos_perfetto_config_ftrace_protos",
2052 ":protos_perfetto_config_gpu_protos",
2053 ":protos_perfetto_config_inode_file_protos",
2054 ":protos_perfetto_config_interceptors_protos",
2055 ":protos_perfetto_config_power_protos",
2056 ":protos_perfetto_config_process_stats_protos",
2057 ":protos_perfetto_config_profiling_protos",
2058 ":protos_perfetto_config_protos",
2059 ":protos_perfetto_config_sys_stats_protos",
2060 ":protos_perfetto_config_track_event_protos",
2061 ":protos_perfetto_trace_android_protos",
2062 ":protos_perfetto_trace_chrome_protos",
2063 ":protos_perfetto_trace_filesystem_protos",
2064 ":protos_perfetto_trace_ftrace_protos",
2065 ":protos_perfetto_trace_gpu_protos",
2066 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002067 ":protos_perfetto_trace_minimal_protos",
2068 ":protos_perfetto_trace_non_minimal_protos",
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002069 ":protos_perfetto_trace_perfetto_protos",
2070 ":protos_perfetto_trace_power_protos",
2071 ":protos_perfetto_trace_profiling_protos",
2072 ":protos_perfetto_trace_ps_protos",
2073 ":protos_perfetto_trace_sys_stats_protos",
2074 ":protos_perfetto_trace_system_info_protos",
2075 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00002076 ":protos_perfetto_trace_translation_protos",
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002077 ],
2078)
2079
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002080# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002081perfetto_cc_proto_library(
2082 name = "trace_cc_proto",
2083 visibility = PERFETTO_CONFIG.public_visibility,
2084 deps = [
2085 ":trace_proto",
2086 ],
2087)
2088
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002089# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002090perfetto_java_proto_library(
2091 name = "trace_java_proto",
2092 visibility = PERFETTO_CONFIG.public_visibility,
2093 deps = [
2094 ":trace_proto",
2095 ],
2096)
2097
Lalit Magantie69b1dc2022-02-25 20:21:57 +00002098# GN target: [//protos/perfetto/trace:non_minimal_source_set, //protos/perfetto/trace:minimal_source_set]
2099perfetto_java_lite_proto_library(
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002100 name = "trace_java_proto_lite",
2101 visibility = PERFETTO_CONFIG.public_visibility,
2102 deps = [
2103 ":trace_proto",
2104 ],
2105)
2106
Lalit Maganti3a7d7532022-03-02 18:11:06 +00002107# GN target: [//protos/perfetto/metrics:source_set]
2108perfetto_proto_library(
2109 name = "metrics_proto",
2110 visibility = PERFETTO_CONFIG.public_visibility,
2111 deps = [
2112 ":protos_perfetto_metrics_android_protos",
2113 ":protos_perfetto_metrics_protos",
2114 ],
2115)
2116
2117# GN target: [//protos/perfetto/metrics:source_set]
2118perfetto_cc_proto_library(
2119 name = "metrics_cc_proto",
2120 visibility = PERFETTO_CONFIG.public_visibility,
2121 deps = [
2122 ":metrics_proto",
2123 ],
2124)
2125
2126# GN target: [//protos/perfetto/metrics:source_set]
2127perfetto_java_proto_library(
2128 name = "metrics_java_proto",
2129 visibility = PERFETTO_CONFIG.public_visibility,
2130 deps = [
2131 ":metrics_proto",
2132 ],
2133)
2134
2135# GN target: [//protos/perfetto/metrics:source_set]
2136perfetto_java_lite_proto_library(
2137 name = "metrics_java_proto_lite",
2138 visibility = PERFETTO_CONFIG.public_visibility,
2139 deps = [
2140 ":metrics_proto",
2141 ],
2142)
2143
2144# GN target: [//protos/third_party/chromium:source_set]
2145perfetto_proto_library(
2146 name = "chromium_proto",
2147 visibility = PERFETTO_CONFIG.public_visibility,
2148 deps = [
2149 ":protos_perfetto_trace_track_event_protos",
2150 ":protos_third_party_chromium_protos",
2151 ],
2152)
2153
2154# GN target: [//protos/third_party/chromium:source_set]
2155perfetto_cc_proto_library(
2156 name = "chromium_cc_proto",
2157 visibility = PERFETTO_CONFIG.public_visibility,
2158 deps = [
2159 ":chromium_proto",
2160 ],
2161)
2162
2163# GN target: [//protos/third_party/chromium:source_set]
2164perfetto_java_proto_library(
2165 name = "chromium_java_proto",
2166 visibility = PERFETTO_CONFIG.public_visibility,
2167 deps = [
2168 ":chromium_proto",
2169 ],
2170)
2171
2172# GN target: [//protos/third_party/chromium:source_set]
2173perfetto_java_lite_proto_library(
2174 name = "chromium_java_proto_lite",
2175 visibility = PERFETTO_CONFIG.public_visibility,
2176 deps = [
2177 ":chromium_proto",
2178 ],
2179)
2180
Igor Kraskevich833f3cb2022-03-29 14:47:35 +00002181# GN target: [//protos/perfetto/metrics/chrome:source_set]
2182perfetto_proto_library(
2183 name = "chrome_metrics_proto",
2184 visibility = PERFETTO_CONFIG.public_visibility,
2185 deps = [
2186 ":protos_perfetto_metrics_android_protos",
2187 ":protos_perfetto_metrics_chrome_protos",
2188 ":protos_perfetto_metrics_custom_options_protos",
2189 ":protos_perfetto_metrics_protos",
2190 ],
2191)
2192
2193# GN target: [//protos/perfetto/metrics/chrome:source_set]
2194perfetto_cc_proto_library(
2195 name = "chrome_metrics_cc_proto",
2196 visibility = PERFETTO_CONFIG.public_visibility,
2197 deps = [
2198 ":chrome_metrics_proto",
2199 ],
2200)
2201
2202# GN target: [//protos/perfetto/metrics/chrome:source_set]
2203perfetto_java_proto_library(
2204 name = "chrome_metrics_java_proto",
2205 visibility = PERFETTO_CONFIG.public_visibility,
2206 deps = [
2207 ":chrome_metrics_proto",
2208 ],
2209)
2210
2211# GN target: [//protos/perfetto/metrics/chrome:source_set]
2212perfetto_java_lite_proto_library(
2213 name = "chrome_metrics_java_proto_lite",
2214 visibility = PERFETTO_CONFIG.public_visibility,
2215 deps = [
2216 ":chrome_metrics_proto",
2217 ],
2218)
2219
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002220# GN target: //protos/perfetto/common:cpp
2221perfetto_cc_protocpp_library(
2222 name = "protos_perfetto_common_cpp",
Lalit Maganti16c28ca2022-02-17 12:20:07 +00002223 deps = [
2224 ":protos_perfetto_common_protos",
2225 ],
2226)
2227
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002228# GN target: //protos/perfetto/common:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002229perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002230 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002231 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08002232 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002233 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01002234 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002235 "protos/perfetto/common/commit_data_request.proto",
2236 "protos/perfetto/common/data_source_descriptor.proto",
2237 "protos/perfetto/common/descriptor.proto",
Daniele Di Proietto97c33812022-02-21 13:49:52 +00002238 "protos/perfetto/common/ftrace_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002239 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002240 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002241 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002242 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002243 "protos/perfetto/common/sys_stats_counters.proto",
2244 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00002245 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002246 "protos/perfetto/common/tracing_service_state.proto",
2247 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002248 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002249 visibility = [
2250 PERFETTO_CONFIG.proto_library_visibility,
2251 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002252)
2253
2254# GN target: //protos/perfetto/common:zero
2255perfetto_cc_protozero_library(
2256 name = "protos_perfetto_common_zero",
2257 deps = [
2258 ":protos_perfetto_common_protos",
2259 ],
2260)
2261
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002262# GN target: //protos/perfetto/config/android:cpp
2263perfetto_cc_protocpp_library(
2264 name = "protos_perfetto_config_android_cpp",
2265 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002266 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002267 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002268 ],
2269)
2270
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002271# GN target: //protos/perfetto/config/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002272perfetto_proto_library(
2273 name = "protos_perfetto_config_android_protos",
2274 srcs = [
2275 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01002276 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002277 "protos/perfetto/config/android/packages_list_config.proto",
2278 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002279 visibility = [
2280 PERFETTO_CONFIG.proto_library_visibility,
2281 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002282 deps = [
2283 ":protos_perfetto_common_protos",
2284 ],
2285)
2286
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002287# GN target: //protos/perfetto/config/android:zero
2288perfetto_cc_protozero_library(
2289 name = "protos_perfetto_config_android_zero",
2290 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002291 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002292 ":protos_perfetto_config_android_protos",
2293 ],
2294)
2295
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002296# GN target: //protos/perfetto/config:cpp
2297perfetto_cc_protocpp_library(
2298 name = "protos_perfetto_config_cpp",
2299 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01002300 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002301 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002302 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002303 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002304 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002305 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002306 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002307 ":protos_perfetto_config_process_stats_cpp",
2308 ":protos_perfetto_config_profiling_cpp",
2309 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002310 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002311 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002312 ],
2313)
2314
Hector Dearmana1d75242020-10-02 09:47:24 +01002315# GN target: //protos/perfetto/config:descriptor
2316perfetto_proto_descriptor(
2317 name = "protos_perfetto_config_descriptor",
2318 deps = [
2319 ":protos_perfetto_config_protos",
2320 ],
2321 outs = [
2322 "protos_perfetto_config_descriptor.bin",
2323 ],
2324)
2325
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002326# GN target: //protos/perfetto/config/ftrace:cpp
2327perfetto_cc_protocpp_library(
2328 name = "protos_perfetto_config_ftrace_cpp",
2329 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002330 ":protos_perfetto_config_ftrace_protos",
2331 ],
2332)
2333
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002334# GN target: //protos/perfetto/config/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002335perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002336 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002337 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002338 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002339 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002340 visibility = [
2341 PERFETTO_CONFIG.proto_library_visibility,
2342 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002343)
2344
2345# GN target: //protos/perfetto/config/ftrace:zero
2346perfetto_cc_protozero_library(
2347 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002348 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002349 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002350 ],
2351)
2352
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002353# GN target: //protos/perfetto/config/gpu:cpp
2354perfetto_cc_protocpp_library(
2355 name = "protos_perfetto_config_gpu_cpp",
2356 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002357 ":protos_perfetto_config_gpu_protos",
2358 ],
2359)
2360
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002361# GN target: //protos/perfetto/config/gpu:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002362perfetto_proto_library(
2363 name = "protos_perfetto_config_gpu_protos",
2364 srcs = [
2365 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05002366 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002367 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002368 visibility = [
2369 PERFETTO_CONFIG.proto_library_visibility,
2370 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002371)
2372
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002373# GN target: //protos/perfetto/config/gpu:zero
2374perfetto_cc_protozero_library(
2375 name = "protos_perfetto_config_gpu_zero",
2376 deps = [
2377 ":protos_perfetto_config_gpu_protos",
2378 ],
2379)
2380
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002381# GN target: //protos/perfetto/config/inode_file:cpp
2382perfetto_cc_protocpp_library(
2383 name = "protos_perfetto_config_inode_file_cpp",
2384 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002385 ":protos_perfetto_config_inode_file_protos",
2386 ],
2387)
2388
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002389# GN target: //protos/perfetto/config/inode_file:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002390perfetto_proto_library(
2391 name = "protos_perfetto_config_inode_file_protos",
2392 srcs = [
2393 "protos/perfetto/config/inode_file/inode_file_config.proto",
2394 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002395 visibility = [
2396 PERFETTO_CONFIG.proto_library_visibility,
2397 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002398)
2399
2400# GN target: //protos/perfetto/config/inode_file:zero
2401perfetto_cc_protozero_library(
2402 name = "protos_perfetto_config_inode_file_zero",
2403 deps = [
2404 ":protos_perfetto_config_inode_file_protos",
2405 ],
2406)
2407
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002408# GN target: //protos/perfetto/config/interceptors:cpp
2409perfetto_cc_protocpp_library(
2410 name = "protos_perfetto_config_interceptors_cpp",
2411 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002412 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002413 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002414 ],
2415)
2416
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002417# GN target: //protos/perfetto/config/interceptors:source_set
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002418perfetto_proto_library(
2419 name = "protos_perfetto_config_interceptors_protos",
2420 srcs = [
2421 "protos/perfetto/config/interceptors/console_config.proto",
2422 ],
2423 visibility = [
2424 PERFETTO_CONFIG.proto_library_visibility,
2425 ],
2426 deps = [
2427 ":protos_perfetto_common_protos",
2428 ],
2429)
2430
2431# GN target: //protos/perfetto/config/interceptors:zero
2432perfetto_cc_protozero_library(
2433 name = "protos_perfetto_config_interceptors_zero",
2434 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002435 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002436 ":protos_perfetto_config_interceptors_protos",
2437 ],
2438)
2439
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002440# GN target: //protos/perfetto/config/power:cpp
2441perfetto_cc_protocpp_library(
2442 name = "protos_perfetto_config_power_cpp",
2443 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002444 ":protos_perfetto_config_power_protos",
2445 ],
2446)
2447
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002448# GN target: //protos/perfetto/config/power:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002449perfetto_proto_library(
2450 name = "protos_perfetto_config_power_protos",
2451 srcs = [
2452 "protos/perfetto/config/power/android_power_config.proto",
2453 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002454 visibility = [
2455 PERFETTO_CONFIG.proto_library_visibility,
2456 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002457)
2458
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002459# GN target: //protos/perfetto/config/power:zero
2460perfetto_cc_protozero_library(
2461 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002462 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002463 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002464 ],
2465)
2466
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002467# GN target: //protos/perfetto/config/process_stats:cpp
2468perfetto_cc_protocpp_library(
2469 name = "protos_perfetto_config_process_stats_cpp",
2470 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002471 ":protos_perfetto_config_process_stats_protos",
2472 ],
2473)
2474
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002475# GN target: //protos/perfetto/config/process_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002476perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002477 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002478 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002479 "protos/perfetto/config/process_stats/process_stats_config.proto",
2480 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002481 visibility = [
2482 PERFETTO_CONFIG.proto_library_visibility,
2483 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002484)
2485
2486# GN target: //protos/perfetto/config/process_stats:zero
2487perfetto_cc_protozero_library(
2488 name = "protos_perfetto_config_process_stats_zero",
2489 deps = [
2490 ":protos_perfetto_config_process_stats_protos",
2491 ],
2492)
2493
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002494# GN target: //protos/perfetto/config/profiling:cpp
2495perfetto_cc_protocpp_library(
2496 name = "protos_perfetto_config_profiling_cpp",
2497 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002498 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002499 ":protos_perfetto_config_profiling_protos",
2500 ],
2501)
2502
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002503# GN target: //protos/perfetto/config/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002504perfetto_proto_library(
2505 name = "protos_perfetto_config_profiling_protos",
2506 srcs = [
2507 "protos/perfetto/config/profiling/heapprofd_config.proto",
2508 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00002509 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002510 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002511 visibility = [
2512 PERFETTO_CONFIG.proto_library_visibility,
2513 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002514 deps = [
2515 ":protos_perfetto_common_protos",
2516 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002517)
2518
2519# GN target: //protos/perfetto/config/profiling:zero
2520perfetto_cc_protozero_library(
2521 name = "protos_perfetto_config_profiling_zero",
2522 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002523 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002524 ":protos_perfetto_config_profiling_protos",
2525 ],
2526)
2527
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002528# GN target: //protos/perfetto/config:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002529perfetto_proto_library(
2530 name = "protos_perfetto_config_protos",
2531 srcs = [
2532 "protos/perfetto/config/chrome/chrome_config.proto",
2533 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002534 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02002535 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002536 "protos/perfetto/config/test_config.proto",
2537 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002538 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00002539 visibility = [
2540 PERFETTO_CONFIG.proto_library_visibility,
2541 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002542 deps = [
2543 ":protos_perfetto_common_protos",
2544 ":protos_perfetto_config_android_protos",
2545 ":protos_perfetto_config_ftrace_protos",
2546 ":protos_perfetto_config_gpu_protos",
2547 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002548 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002549 ":protos_perfetto_config_power_protos",
2550 ":protos_perfetto_config_process_stats_protos",
2551 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002552 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002553 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002554 ],
2555)
2556
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002557# GN target: //protos/perfetto/config/sys_stats:cpp
2558perfetto_cc_protocpp_library(
2559 name = "protos_perfetto_config_sys_stats_cpp",
2560 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002561 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002562 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002563 ],
2564)
2565
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002566# GN target: //protos/perfetto/config/sys_stats:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002567perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002568 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002569 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002570 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002571 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002572 visibility = [
2573 PERFETTO_CONFIG.proto_library_visibility,
2574 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002575 deps = [
2576 ":protos_perfetto_common_protos",
2577 ],
2578)
2579
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002580# GN target: //protos/perfetto/config/sys_stats:zero
2581perfetto_cc_protozero_library(
2582 name = "protos_perfetto_config_sys_stats_zero",
2583 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002584 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002585 ":protos_perfetto_config_sys_stats_protos",
2586 ],
2587)
2588
Sami Kyostila38cd0412020-02-12 17:09:52 +00002589# GN target: //protos/perfetto/config/track_event:cpp
2590perfetto_cc_protocpp_library(
2591 name = "protos_perfetto_config_track_event_cpp",
2592 deps = [
2593 ":protos_perfetto_config_track_event_protos",
2594 ],
2595)
2596
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002597# GN target: //protos/perfetto/config/track_event:source_set
Sami Kyostila38cd0412020-02-12 17:09:52 +00002598perfetto_proto_library(
2599 name = "protos_perfetto_config_track_event_protos",
2600 srcs = [
2601 "protos/perfetto/config/track_event/track_event_config.proto",
2602 ],
2603 visibility = [
2604 PERFETTO_CONFIG.proto_library_visibility,
2605 ],
2606)
2607
2608# GN target: //protos/perfetto/config/track_event:zero
2609perfetto_cc_protozero_library(
2610 name = "protos_perfetto_config_track_event_zero",
2611 deps = [
2612 ":protos_perfetto_config_track_event_protos",
2613 ],
2614)
2615
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002616# GN target: //protos/perfetto/config:zero
2617perfetto_cc_protozero_library(
2618 name = "protos_perfetto_config_zero",
2619 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002620 ":protos_perfetto_common_zero",
2621 ":protos_perfetto_config_android_zero",
2622 ":protos_perfetto_config_ftrace_zero",
2623 ":protos_perfetto_config_gpu_zero",
2624 ":protos_perfetto_config_inode_file_zero",
2625 ":protos_perfetto_config_interceptors_zero",
2626 ":protos_perfetto_config_power_zero",
2627 ":protos_perfetto_config_process_stats_zero",
2628 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002629 ":protos_perfetto_config_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002630 ":protos_perfetto_config_sys_stats_zero",
2631 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002632 ],
2633)
2634
Primiano Tuccie8020f92019-11-26 13:24:01 +00002635# GN target: //protos/perfetto/ipc:cpp
2636perfetto_cc_protocpp_library(
2637 name = "protos_perfetto_ipc_cpp",
2638 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002639 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002640 ":protos_perfetto_config_android_cpp",
2641 ":protos_perfetto_config_cpp",
2642 ":protos_perfetto_config_ftrace_cpp",
2643 ":protos_perfetto_config_gpu_cpp",
2644 ":protos_perfetto_config_inode_file_cpp",
2645 ":protos_perfetto_config_interceptors_cpp",
2646 ":protos_perfetto_config_power_cpp",
2647 ":protos_perfetto_config_process_stats_cpp",
2648 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002649 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002650 ":protos_perfetto_config_track_event_cpp",
2651 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002652 ],
2653)
2654
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002655# GN target: //protos/perfetto/ipc:ipc
2656perfetto_cc_ipc_library(
2657 name = "protos_perfetto_ipc_ipc",
2658 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00002659 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002660 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002661 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002662 ":protos_perfetto_config_ftrace_cpp",
2663 ":protos_perfetto_config_gpu_cpp",
2664 ":protos_perfetto_config_inode_file_cpp",
2665 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002666 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002667 ":protos_perfetto_config_process_stats_cpp",
2668 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002669 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002670 ":protos_perfetto_config_track_event_cpp",
2671 ":protos_perfetto_ipc_cpp",
2672 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002673 ],
2674)
2675
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002676# GN target: //protos/perfetto/ipc:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002677perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002678 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002679 srcs = [
2680 "protos/perfetto/ipc/consumer_port.proto",
2681 "protos/perfetto/ipc/producer_port.proto",
2682 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002683 visibility = [
2684 PERFETTO_CONFIG.proto_library_visibility,
2685 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002686 deps = [
2687 ":protos_perfetto_common_protos",
2688 ":protos_perfetto_config_android_protos",
2689 ":protos_perfetto_config_ftrace_protos",
2690 ":protos_perfetto_config_gpu_protos",
2691 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002692 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002693 ":protos_perfetto_config_power_protos",
2694 ":protos_perfetto_config_process_stats_protos",
2695 ":protos_perfetto_config_profiling_protos",
2696 ":protos_perfetto_config_protos",
2697 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002698 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002699 ],
2700)
2701
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002702# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2703perfetto_cc_protocpp_library(
2704 name = "protos_perfetto_ipc_wire_protocol_cpp",
2705 deps = [
2706 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002707 ],
2708)
2709
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002710# GN target: //protos/perfetto/ipc:wire_protocol_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002711perfetto_proto_library(
2712 name = "protos_perfetto_ipc_wire_protocol_protos",
2713 srcs = [
2714 "protos/perfetto/ipc/wire_protocol.proto",
2715 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002716 visibility = [
2717 PERFETTO_CONFIG.proto_library_visibility,
2718 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002719)
2720
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002721# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002722perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002723 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002724 srcs = [
David LeGare20d39c42022-01-20 20:38:43 +00002725 "protos/perfetto/metrics/android/android_trusty_workqueues.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002726 "protos/perfetto/metrics/android/batt_metric.proto",
Lalit Maganti262252a2021-10-15 12:17:53 +01002727 "protos/perfetto/metrics/android/camera_metric.proto",
Lalit Magantic16c7212021-12-16 17:32:55 +00002728 "protos/perfetto/metrics/android/camera_unagg_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002729 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002730 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07002731 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Luke Chang476e9442021-11-09 23:14:34 +08002732 "protos/perfetto/metrics/android/dvfs_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08002733 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08002734 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002735 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08002736 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002737 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002738 "protos/perfetto/metrics/android/ion_metric.proto",
Shihhsun Ho2305a1d2022-01-13 19:58:02 +08002739 "protos/perfetto/metrics/android/irq_runtime_metric.proto",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00002740 "protos/perfetto/metrics/android/jank_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002741 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002742 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002743 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002744 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002745 "protos/perfetto/metrics/android/mem_metric.proto",
2746 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Adam Bookatzd5aa7632021-08-25 16:13:44 -07002747 "protos/perfetto/metrics/android/multiuser_metric.proto",
Luke Change25d2c42021-12-07 16:08:32 +08002748 "protos/perfetto/metrics/android/network_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002749 "protos/perfetto/metrics/android/package_list.proto",
2750 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002751 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01002752 "protos/perfetto/metrics/android/profiler_smaps.proto",
Shihhsun Ho9cc8d502022-01-03 13:21:23 +08002753 "protos/perfetto/metrics/android/rt_runtime_metric.proto",
Wiwit Rifa'ia944ed62021-09-29 15:11:18 +08002754 "protos/perfetto/metrics/android/simpleperf.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002755 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002756 "protos/perfetto/metrics/android/surfaceflinger.proto",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00002757 "protos/perfetto/metrics/android/sysui_cuj_metrics.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002758 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002759 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01002760 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002761 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002762 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00002763 visibility = [
2764 PERFETTO_CONFIG.proto_library_visibility,
2765 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002766)
2767
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002768# GN target: //protos/perfetto/metrics/chrome:descriptor
2769perfetto_proto_descriptor(
2770 name = "protos_perfetto_metrics_chrome_descriptor",
2771 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002772 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002773 ],
2774 outs = [
2775 "protos_perfetto_metrics_chrome_descriptor.bin",
2776 ],
2777)
2778
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002779# GN target: //protos/perfetto/metrics/chrome:source_set
2780perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002781 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002782 srcs = [
2783 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01002784 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mingjing Zhang309a1c02021-11-04 22:41:40 -04002785 "protos/perfetto/metrics/chrome/dropped_frames.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00002786 "protos/perfetto/metrics/chrome/frame_times.proto",
Igor Kraskevich95d635f2022-03-24 16:03:57 +00002787 "protos/perfetto/metrics/chrome/histogram_hashes.proto",
Mingjing Zhang2a32f6b2022-03-22 16:13:21 -04002788 "protos/perfetto/metrics/chrome/long_latency.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01002789 "protos/perfetto/metrics/chrome/media_metric.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00002790 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01002791 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002792 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
Dan Elphick08baa102021-09-02 16:06:44 +01002793 "protos/perfetto/metrics/chrome/touch_jank.proto",
Igor Kraskevich32214832022-03-25 13:12:53 +00002794 "protos/perfetto/metrics/chrome/user_event_hashes.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002795 ],
2796 visibility = [
2797 PERFETTO_CONFIG.proto_library_visibility,
2798 ],
2799 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002800 ":protos_perfetto_metrics_android_protos",
2801 ":protos_perfetto_metrics_custom_options_protos",
2802 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002803 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2804)
2805
2806# GN target: //protos/perfetto/metrics:custom_options_source_set
2807perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002808 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002809 srcs = [
2810 "protos/perfetto/metrics/custom_options.proto",
2811 ],
2812 visibility = [
2813 PERFETTO_CONFIG.proto_library_visibility,
2814 ],
2815 deps = [
2816 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2817)
2818
Lalit Maganti117272f2020-09-11 14:01:18 +01002819# GN target: //protos/perfetto/metrics:descriptor
2820perfetto_proto_descriptor(
2821 name = "protos_perfetto_metrics_descriptor",
2822 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002823 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002824 ],
2825 outs = [
2826 "protos_perfetto_metrics_descriptor.bin",
2827 ],
2828)
2829
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002830# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002831perfetto_proto_library(
2832 name = "protos_perfetto_metrics_protos",
2833 srcs = [
2834 "protos/perfetto/metrics/metrics.proto",
2835 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00002836 visibility = [
2837 PERFETTO_CONFIG.proto_library_visibility,
2838 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002839 deps = [
2840 ":protos_perfetto_metrics_android_protos",
2841 ],
2842)
2843
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002844# GN target: //protos/perfetto/trace/android:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002845perfetto_proto_library(
2846 name = "protos_perfetto_trace_android_protos",
2847 srcs = [
2848 "protos/perfetto/trace/android/android_log.proto",
Michael Eastwoodeb86b892022-01-20 15:59:09 -08002849 "protos/perfetto/trace/android/camera_event.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08002850 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002851 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002852 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002853 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002854 "protos/perfetto/trace/android/packages_list.proto",
2855 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002856 visibility = [
2857 PERFETTO_CONFIG.proto_library_visibility,
2858 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002859 deps = [
2860 ":protos_perfetto_common_protos",
2861 ],
2862)
2863
2864# GN target: //protos/perfetto/trace/android:zero
2865perfetto_cc_protozero_library(
2866 name = "protos_perfetto_trace_android_zero",
2867 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002868 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002869 ":protos_perfetto_trace_android_protos",
2870 ],
2871)
2872
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002873# GN target: //protos/perfetto/trace/chrome:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002874perfetto_proto_library(
2875 name = "protos_perfetto_trace_chrome_protos",
2876 srcs = [
2877 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2878 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2879 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2880 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002881 visibility = [
2882 PERFETTO_CONFIG.proto_library_visibility,
2883 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002884)
2885
2886# GN target: //protos/perfetto/trace/chrome:zero
2887perfetto_cc_protozero_library(
2888 name = "protos_perfetto_trace_chrome_zero",
2889 deps = [
2890 ":protos_perfetto_trace_chrome_protos",
2891 ],
2892)
2893
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002894# GN target: //protos/perfetto/trace:descriptor
2895perfetto_proto_descriptor(
2896 name = "protos_perfetto_trace_descriptor",
2897 deps = [
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002898 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002899 ],
2900 outs = [
2901 "protos_perfetto_trace_descriptor.bin",
2902 ],
2903)
2904
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002905# GN target: //protos/perfetto/trace/filesystem:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002906perfetto_proto_library(
2907 name = "protos_perfetto_trace_filesystem_protos",
2908 srcs = [
2909 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2910 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002911 visibility = [
2912 PERFETTO_CONFIG.proto_library_visibility,
2913 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002914)
2915
2916# GN target: //protos/perfetto/trace/filesystem:zero
2917perfetto_cc_protozero_library(
2918 name = "protos_perfetto_trace_filesystem_zero",
2919 deps = [
2920 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002921 ],
2922)
2923
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002924# GN target: //protos/perfetto/trace/ftrace:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002925perfetto_proto_library(
2926 name = "protos_perfetto_trace_ftrace_protos",
2927 srcs = [
2928 "protos/perfetto/trace/ftrace/binder.proto",
2929 "protos/perfetto/trace/ftrace/block.proto",
2930 "protos/perfetto/trace/ftrace/cgroup.proto",
2931 "protos/perfetto/trace/ftrace/clk.proto",
2932 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002933 "protos/perfetto/trace/ftrace/cpuhp.proto",
Harvey Yangcb9754b2022-02-09 18:13:06 +08002934 "protos/perfetto/trace/ftrace/cros_ec.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07002935 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002936 "protos/perfetto/trace/ftrace/dpu.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002937 "protos/perfetto/trace/ftrace/ext4.proto",
2938 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01002939 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002940 "protos/perfetto/trace/ftrace/fence.proto",
2941 "protos/perfetto/trace/ftrace/filemap.proto",
2942 "protos/perfetto/trace/ftrace/ftrace.proto",
2943 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2944 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2945 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002946 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002947 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002948 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002949 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002950 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002951 "protos/perfetto/trace/ftrace/ipi.proto",
2952 "protos/perfetto/trace/ftrace/irq.proto",
2953 "protos/perfetto/trace/ftrace/kmem.proto",
Primiano Tuccif954f862022-03-04 13:58:18 +00002954 "protos/perfetto/trace/ftrace/kvm.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002955 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00002956 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002957 "protos/perfetto/trace/ftrace/mdss.proto",
2958 "protos/perfetto/trace/ftrace/mm_event.proto",
Luke Chang496f94a2021-12-03 17:13:00 +08002959 "protos/perfetto/trace/ftrace/net.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002960 "protos/perfetto/trace/ftrace/oom.proto",
2961 "protos/perfetto/trace/ftrace/power.proto",
Hector Dearmanae5a60e2022-03-30 19:30:43 +01002962 "protos/perfetto/trace/ftrace/printk.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002963 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2964 "protos/perfetto/trace/ftrace/regulator.proto",
2965 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002966 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002967 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002968 "protos/perfetto/trace/ftrace/signal.proto",
Luke Changd041e6e2022-02-25 13:24:42 +08002969 "protos/perfetto/trace/ftrace/skb.proto",
Luke Chang1b904072022-01-26 09:33:19 +08002970 "protos/perfetto/trace/ftrace/sock.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002971 "protos/perfetto/trace/ftrace/sync.proto",
Kalesh Singh84f62e42021-11-15 19:01:23 -08002972 "protos/perfetto/trace/ftrace/synthetic.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002973 "protos/perfetto/trace/ftrace/systrace.proto",
2974 "protos/perfetto/trace/ftrace/task.proto",
Luke Chang4eb23ab2022-01-27 16:31:46 +08002975 "protos/perfetto/trace/ftrace/tcp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002976 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002977 "protos/perfetto/trace/ftrace/thermal.proto",
YH Linbce42862022-03-15 02:45:18 +08002978 "protos/perfetto/trace/ftrace/ufs.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002979 "protos/perfetto/trace/ftrace/vmscan.proto",
2980 "protos/perfetto/trace/ftrace/workqueue.proto",
2981 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002982 visibility = [
2983 PERFETTO_CONFIG.proto_library_visibility,
2984 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002985)
2986
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002987# GN target: //protos/perfetto/trace/ftrace:zero
2988perfetto_cc_protozero_library(
2989 name = "protos_perfetto_trace_ftrace_zero",
2990 deps = [
2991 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002992 ],
2993)
2994
Lalit Maganti79d70fe2022-02-15 18:31:09 +00002995# GN target: //protos/perfetto/trace/gpu:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002996perfetto_proto_library(
2997 name = "protos_perfetto_trace_gpu_protos",
2998 srcs = [
2999 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07003000 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003001 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08003002 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003003 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
3004 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003005 visibility = [
3006 PERFETTO_CONFIG.proto_library_visibility,
3007 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003008 deps = [
3009 ":protos_perfetto_common_protos",
3010 ],
3011)
3012
3013# GN target: //protos/perfetto/trace/gpu:zero
3014perfetto_cc_protozero_library(
3015 name = "protos_perfetto_trace_gpu_zero",
3016 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003017 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003018 ":protos_perfetto_trace_gpu_protos",
3019 ],
3020)
3021
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003022# GN target: //protos/perfetto/trace/interned_data:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003023perfetto_proto_library(
3024 name = "protos_perfetto_trace_interned_data_protos",
3025 srcs = [
3026 "protos/perfetto/trace/interned_data/interned_data.proto",
3027 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003028 visibility = [
3029 PERFETTO_CONFIG.proto_library_visibility,
3030 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003031 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07003032 ":protos_perfetto_common_protos",
3033 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003034 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003035 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003036 ],
3037)
3038
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003039# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01003040perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003041 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01003042 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003043 ":protos_perfetto_common_zero",
3044 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003045 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003046 ":protos_perfetto_trace_profiling_zero",
3047 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003048 ],
3049)
3050
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003051# GN target: //protos/perfetto/trace:minimal_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003052perfetto_proto_library(
3053 name = "protos_perfetto_trace_minimal_protos",
3054 srcs = [
3055 "protos/perfetto/trace/clock_snapshot.proto",
3056 "protos/perfetto/trace/system_info.proto",
3057 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003058 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003059 visibility = [
3060 PERFETTO_CONFIG.proto_library_visibility,
3061 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003062 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003063 ":protos_perfetto_common_protos",
3064 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003065 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003066 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003067 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003068 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003069 ":protos_perfetto_config_power_protos",
3070 ":protos_perfetto_config_process_stats_protos",
3071 ":protos_perfetto_config_profiling_protos",
3072 ":protos_perfetto_config_protos",
3073 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003074 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003075 ],
3076)
3077
3078# GN target: //protos/perfetto/trace:minimal_zero
3079perfetto_cc_protozero_library(
3080 name = "protos_perfetto_trace_minimal_zero",
3081 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003082 ":protos_perfetto_common_zero",
3083 ":protos_perfetto_config_android_zero",
3084 ":protos_perfetto_config_ftrace_zero",
3085 ":protos_perfetto_config_gpu_zero",
3086 ":protos_perfetto_config_inode_file_zero",
3087 ":protos_perfetto_config_interceptors_zero",
3088 ":protos_perfetto_config_power_zero",
3089 ":protos_perfetto_config_process_stats_zero",
3090 ":protos_perfetto_config_profiling_zero",
3091 ":protos_perfetto_config_sys_stats_zero",
3092 ":protos_perfetto_config_track_event_zero",
3093 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003094 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003095 ],
3096)
3097
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003098# GN target: //protos/perfetto/trace:non_minimal_source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01003099perfetto_proto_library(
3100 name = "protos_perfetto_trace_non_minimal_protos",
3101 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01003102 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02003103 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003104 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00003105 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003106 "protos/perfetto/trace/trace.proto",
3107 "protos/perfetto/trace/trace_packet.proto",
3108 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01003109 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003110 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003111 visibility = [
3112 PERFETTO_CONFIG.proto_library_visibility,
3113 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003114 deps = [
3115 ":protos_perfetto_common_protos",
3116 ":protos_perfetto_config_android_protos",
3117 ":protos_perfetto_config_ftrace_protos",
3118 ":protos_perfetto_config_gpu_protos",
3119 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003120 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003121 ":protos_perfetto_config_power_protos",
3122 ":protos_perfetto_config_process_stats_protos",
3123 ":protos_perfetto_config_profiling_protos",
3124 ":protos_perfetto_config_protos",
3125 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003126 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003127 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003128 ":protos_perfetto_trace_chrome_protos",
3129 ":protos_perfetto_trace_filesystem_protos",
3130 ":protos_perfetto_trace_ftrace_protos",
3131 ":protos_perfetto_trace_gpu_protos",
3132 ":protos_perfetto_trace_interned_data_protos",
3133 ":protos_perfetto_trace_minimal_protos",
3134 ":protos_perfetto_trace_perfetto_protos",
3135 ":protos_perfetto_trace_power_protos",
3136 ":protos_perfetto_trace_profiling_protos",
3137 ":protos_perfetto_trace_ps_protos",
3138 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003139 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003140 ":protos_perfetto_trace_track_event_protos",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003141 ":protos_perfetto_trace_translation_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003142 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00003143 exports = [
3144 ":protos_perfetto_trace_track_event_protos",
3145 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003146)
3147
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003148# GN target: //protos/perfetto/trace:non_minimal_zero
3149perfetto_cc_protozero_library(
3150 name = "protos_perfetto_trace_non_minimal_zero",
3151 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003152 ":protos_perfetto_common_zero",
3153 ":protos_perfetto_config_android_zero",
3154 ":protos_perfetto_config_ftrace_zero",
3155 ":protos_perfetto_config_gpu_zero",
3156 ":protos_perfetto_config_inode_file_zero",
3157 ":protos_perfetto_config_interceptors_zero",
3158 ":protos_perfetto_config_power_zero",
3159 ":protos_perfetto_config_process_stats_zero",
3160 ":protos_perfetto_config_profiling_zero",
3161 ":protos_perfetto_config_sys_stats_zero",
3162 ":protos_perfetto_config_track_event_zero",
3163 ":protos_perfetto_config_zero",
3164 ":protos_perfetto_trace_android_zero",
3165 ":protos_perfetto_trace_chrome_zero",
3166 ":protos_perfetto_trace_filesystem_zero",
3167 ":protos_perfetto_trace_ftrace_zero",
3168 ":protos_perfetto_trace_gpu_zero",
3169 ":protos_perfetto_trace_interned_data_zero",
3170 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003171 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003172 ":protos_perfetto_trace_perfetto_zero",
3173 ":protos_perfetto_trace_power_zero",
3174 ":protos_perfetto_trace_profiling_zero",
3175 ":protos_perfetto_trace_ps_zero",
3176 ":protos_perfetto_trace_sys_stats_zero",
3177 ":protos_perfetto_trace_system_info_zero",
3178 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003179 ":protos_perfetto_trace_translation_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003180 ],
3181)
3182
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003183# GN target: //protos/perfetto/trace/perfetto:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003184perfetto_proto_library(
3185 name = "protos_perfetto_trace_perfetto_protos",
3186 srcs = [
3187 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01003188 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003189 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003190 visibility = [
3191 PERFETTO_CONFIG.proto_library_visibility,
3192 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003193)
3194
3195# GN target: //protos/perfetto/trace/perfetto:zero
3196perfetto_cc_protozero_library(
3197 name = "protos_perfetto_trace_perfetto_zero",
3198 deps = [
3199 ":protos_perfetto_trace_perfetto_protos",
3200 ],
3201)
3202
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003203# GN target: //protos/perfetto/trace/power:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003204perfetto_proto_library(
3205 name = "protos_perfetto_trace_power_protos",
3206 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003207 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003208 "protos/perfetto/trace/power/battery_counters.proto",
3209 "protos/perfetto/trace/power/power_rails.proto",
3210 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003211 visibility = [
3212 PERFETTO_CONFIG.proto_library_visibility,
3213 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003214 deps = [
3215 ":protos_perfetto_common_protos",
3216 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003217)
3218
3219# GN target: //protos/perfetto/trace/power:zero
3220perfetto_cc_protozero_library(
3221 name = "protos_perfetto_trace_power_zero",
3222 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003223 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003224 ":protos_perfetto_trace_power_protos",
3225 ],
3226)
3227
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003228# GN target: //protos/perfetto/trace_processor:metrics_impl_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003229perfetto_proto_library(
3230 name = "protos_perfetto_trace_processor_metrics_impl_protos",
3231 srcs = [
3232 "protos/perfetto/trace_processor/metrics_impl.proto",
3233 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003234 visibility = [
3235 PERFETTO_CONFIG.proto_library_visibility,
3236 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003237)
3238
3239# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3240perfetto_cc_protozero_library(
3241 name = "protos_perfetto_trace_processor_metrics_impl_zero",
3242 deps = [
3243 ":protos_perfetto_trace_processor_metrics_impl_protos",
3244 ],
3245)
3246
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003247# GN target: //protos/perfetto/trace_processor:source_set
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003248perfetto_proto_library(
3249 name = "protos_perfetto_trace_processor_protos",
3250 srcs = [
3251 "protos/perfetto/trace_processor/trace_processor.proto",
3252 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003253 visibility = [
3254 PERFETTO_CONFIG.proto_library_visibility,
3255 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04003256 deps = [
3257 ":protos_perfetto_common_protos",
3258 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003259)
3260
3261# GN target: //protos/perfetto/trace_processor:zero
3262perfetto_cc_protozero_library(
3263 name = "protos_perfetto_trace_processor_zero",
3264 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003265 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003266 ":protos_perfetto_trace_processor_protos",
3267 ],
3268)
3269
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003270# GN target: //protos/perfetto/trace/profiling:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003271perfetto_proto_library(
3272 name = "protos_perfetto_trace_profiling_protos",
3273 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01003274 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003275 "protos/perfetto/trace/profiling/heap_graph.proto",
3276 "protos/perfetto/trace/profiling/profile_common.proto",
3277 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02003278 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003279 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003280 visibility = [
3281 PERFETTO_CONFIG.proto_library_visibility,
3282 ],
Ryan Savitski45517322021-03-09 16:38:19 +00003283 deps = [
3284 ":protos_perfetto_common_protos",
3285 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003286)
3287
3288# GN target: //protos/perfetto/trace/profiling:zero
3289perfetto_cc_protozero_library(
3290 name = "protos_perfetto_trace_profiling_zero",
3291 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003292 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003293 ":protos_perfetto_trace_profiling_protos",
3294 ],
3295)
3296
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003297# GN target: //protos/perfetto/trace/ps:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003298perfetto_proto_library(
3299 name = "protos_perfetto_trace_ps_protos",
3300 srcs = [
3301 "protos/perfetto/trace/ps/process_stats.proto",
3302 "protos/perfetto/trace/ps/process_tree.proto",
3303 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003304 visibility = [
3305 PERFETTO_CONFIG.proto_library_visibility,
3306 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003307)
3308
3309# GN target: //protos/perfetto/trace/ps:zero
3310perfetto_cc_protozero_library(
3311 name = "protos_perfetto_trace_ps_zero",
3312 deps = [
3313 ":protos_perfetto_trace_ps_protos",
3314 ],
3315)
3316
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003317# GN target: //protos/perfetto/trace/sys_stats:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003318perfetto_proto_library(
3319 name = "protos_perfetto_trace_sys_stats_protos",
3320 srcs = [
3321 "protos/perfetto/trace/sys_stats/sys_stats.proto",
3322 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003323 visibility = [
3324 PERFETTO_CONFIG.proto_library_visibility,
3325 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003326 deps = [
3327 ":protos_perfetto_common_protos",
3328 ],
3329)
3330
3331# GN target: //protos/perfetto/trace/sys_stats:zero
3332perfetto_cc_protozero_library(
3333 name = "protos_perfetto_trace_sys_stats_zero",
3334 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003335 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003336 ":protos_perfetto_trace_sys_stats_protos",
3337 ],
3338)
3339
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003340# GN target: //protos/perfetto/trace/system_info:source_set
Rafal Slawikb013a112020-04-03 16:12:02 +01003341perfetto_proto_library(
3342 name = "protos_perfetto_trace_system_info_protos",
3343 srcs = [
3344 "protos/perfetto/trace/system_info/cpu_info.proto",
3345 ],
3346 visibility = [
3347 PERFETTO_CONFIG.proto_library_visibility,
3348 ],
3349)
3350
3351# GN target: //protos/perfetto/trace/system_info:zero
3352perfetto_cc_protozero_library(
3353 name = "protos_perfetto_trace_system_info_zero",
3354 deps = [
3355 ":protos_perfetto_trace_system_info_protos",
3356 ],
3357)
3358
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003359# GN target: //protos/perfetto/trace/track_event:cpp
3360perfetto_cc_protocpp_library(
3361 name = "protos_perfetto_trace_track_event_cpp",
3362 deps = [
3363 ":protos_perfetto_trace_track_event_protos",
3364 ],
3365)
3366
Lalit Magantic21a4a82022-02-15 16:08:46 +00003367# GN target: //protos/perfetto/trace/track_event:descriptor
3368perfetto_proto_descriptor(
3369 name = "protos_perfetto_trace_track_event_descriptor",
3370 deps = [
3371 ":protos_perfetto_trace_track_event_protos",
3372 ],
3373 outs = [
3374 "protos_perfetto_trace_track_event_descriptor.bin",
3375 ],
3376)
3377
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003378# GN target: //protos/perfetto/trace/track_event:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003379perfetto_proto_library(
3380 name = "protos_perfetto_trace_track_event_protos",
3381 srcs = [
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08003382 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00003383 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08003384 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04003385 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08003386 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003387 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00003388 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003389 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07003390 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07003391 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003392 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01003393 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003394 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003395 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07003396 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00003397 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003398 "protos/perfetto/trace/track_event/debug_annotation.proto",
3399 "protos/perfetto/trace/track_event/log_message.proto",
3400 "protos/perfetto/trace/track_event/process_descriptor.proto",
3401 "protos/perfetto/trace/track_event/source_location.proto",
3402 "protos/perfetto/trace/track_event/task_execution.proto",
3403 "protos/perfetto/trace/track_event/thread_descriptor.proto",
3404 "protos/perfetto/trace/track_event/track_descriptor.proto",
3405 "protos/perfetto/trace/track_event/track_event.proto",
3406 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003407 visibility = [
3408 PERFETTO_CONFIG.proto_library_visibility,
3409 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003410)
3411
3412# GN target: //protos/perfetto/trace/track_event:zero
3413perfetto_cc_protozero_library(
3414 name = "protos_perfetto_trace_track_event_zero",
3415 deps = [
3416 ":protos_perfetto_trace_track_event_protos",
3417 ],
3418)
3419
Igor Kraskevich49b42882022-03-21 13:03:02 +00003420# GN target: //protos/perfetto/trace/translation:source_set
3421perfetto_proto_library(
3422 name = "protos_perfetto_trace_translation_protos",
3423 srcs = [
3424 "protos/perfetto/trace/translation/translation_table.proto",
3425 ],
3426 visibility = [
3427 PERFETTO_CONFIG.proto_library_visibility,
3428 ],
3429)
3430
3431# GN target: //protos/perfetto/trace/translation:zero
3432perfetto_cc_protozero_library(
3433 name = "protos_perfetto_trace_translation_zero",
3434 deps = [
3435 ":protos_perfetto_trace_translation_protos",
3436 ],
3437)
3438
Lalit Magantic21a4a82022-02-15 16:08:46 +00003439# GN target: //protos/third_party/chromium:descriptor
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003440perfetto_proto_descriptor(
Lalit Magantic21a4a82022-02-15 16:08:46 +00003441 name = "protos_third_party_chromium_descriptor",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003442 deps = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00003443 ":protos_third_party_chromium_protos",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003444 ],
3445 outs = [
Lalit Magantic21a4a82022-02-15 16:08:46 +00003446 "protos_third_party_chromium_descriptor.bin",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003447 ],
3448)
3449
Lalit Magantic21a4a82022-02-15 16:08:46 +00003450# GN target: //protos/third_party/chromium:source_set
ssid3d81d4d2021-06-21 16:08:02 -07003451perfetto_proto_library(
3452 name = "protos_third_party_chromium_protos",
3453 srcs = [
3454 "protos/third_party/chromium/chrome_track_event.proto",
3455 ],
Lalit Maganti7d37c752022-03-08 15:41:00 +00003456 visibility = [
3457 PERFETTO_CONFIG.proto_library_visibility,
3458 ],
ssid3d81d4d2021-06-21 16:08:02 -07003459 deps = [
3460 ":protos_perfetto_trace_track_event_protos",
3461 ],
Lalit Magantiba364ec2022-02-15 19:53:20 +00003462 exports = [
3463 ":protos_perfetto_trace_track_event_protos",
3464 ],
ssid3d81d4d2021-06-21 16:08:02 -07003465)
3466
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003467# GN target: //protos/third_party/pprof:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003468perfetto_proto_library(
3469 name = "protos_third_party_pprof_protos",
3470 srcs = [
3471 "protos/third_party/pprof/profile.proto",
3472 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003473 visibility = [
3474 PERFETTO_CONFIG.proto_library_visibility,
3475 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003476)
3477
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003478# GN target: //protos/third_party/pprof:zero
3479perfetto_cc_protozero_library(
3480 name = "protos_third_party_pprof_zero",
3481 deps = [
3482 ":protos_third_party_pprof_protos",
3483 ],
3484)
3485
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003486# GN target: //src/perfetto_cmd:protos_cpp
Hector Dearman040f9582019-12-03 18:06:33 +00003487perfetto_cc_protocpp_library(
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003488 name = "src_perfetto_cmd_protos_cpp",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003489 deps = [
3490 ":src_perfetto_cmd_protos_protos",
3491 ],
3492)
3493
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003494# GN target: //src/perfetto_cmd:protos_source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003495perfetto_proto_library(
3496 name = "src_perfetto_cmd_protos_protos",
3497 srcs = [
3498 "src/perfetto_cmd/perfetto_cmd_state.proto",
3499 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003500 visibility = [
3501 PERFETTO_CONFIG.proto_library_visibility,
3502 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003503)
3504
Primiano Tucci1d409982019-09-19 10:15:18 +01003505# ##############################################################################
3506# Public targets
3507# ##############################################################################
3508
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003509# GN target: //:libperfetto_client_experimental
3510perfetto_cc_library(
3511 name = "libperfetto_client_experimental",
3512 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00003513 ":src_android_stats_android_stats",
3514 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01003515 ":src_protozero_filtering_bytecode_common",
3516 ":src_protozero_filtering_bytecode_parser",
3517 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00003518 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003519 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003520 ":src_tracing_core_core",
3521 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00003522 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003523 ":src_tracing_ipc_common",
3524 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003525 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003526 ":src_tracing_ipc_producer_producer",
3527 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01003528 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00003529 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003530 ],
3531 hdrs = [
3532 ":include_perfetto_base_base",
3533 ":include_perfetto_ext_base_base",
3534 ":include_perfetto_ext_ipc_ipc",
3535 ":include_perfetto_ext_tracing_core_core",
3536 ":include_perfetto_ext_tracing_ipc_ipc",
3537 ":include_perfetto_protozero_protozero",
3538 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003539 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003540 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00003541 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003542 ],
3543 visibility = [
3544 "//visibility:public",
3545 ],
3546 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003547 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003548 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003549 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003550 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003551 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003552 ":protos_perfetto_config_cpp",
3553 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003554 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003555 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003556 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003557 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003558 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003559 ":protos_perfetto_config_interceptors_cpp",
3560 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003561 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003562 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003563 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003564 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003565 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003566 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003567 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003568 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003569 ":protos_perfetto_config_track_event_cpp",
3570 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003571 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003572 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003573 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003574 ":protos_perfetto_trace_android_zero",
3575 ":protos_perfetto_trace_chrome_zero",
3576 ":protos_perfetto_trace_filesystem_zero",
3577 ":protos_perfetto_trace_ftrace_zero",
3578 ":protos_perfetto_trace_gpu_zero",
3579 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003580 ":protos_perfetto_trace_minimal_zero",
3581 ":protos_perfetto_trace_non_minimal_zero",
3582 ":protos_perfetto_trace_perfetto_zero",
3583 ":protos_perfetto_trace_power_zero",
3584 ":protos_perfetto_trace_profiling_zero",
3585 ":protos_perfetto_trace_ps_zero",
3586 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003587 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003588 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003589 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003590 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003591 ":protozero",
3592 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003593 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003594 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003595)
3596
Primiano Tucci1d409982019-09-19 10:15:18 +01003597# GN target: //src/perfetto_cmd:perfetto
3598perfetto_cc_binary(
3599 name = "perfetto",
3600 srcs = [
3601 ":include_perfetto_base_base",
3602 ":include_perfetto_ext_base_base",
3603 ":include_perfetto_ext_ipc_ipc",
3604 ":include_perfetto_ext_traced_traced",
3605 ":include_perfetto_ext_tracing_core_core",
3606 ":include_perfetto_ext_tracing_ipc_ipc",
3607 ":include_perfetto_protozero_protozero",
3608 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003609 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01003610 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00003611 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00003612 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01003613 ":src_perfetto_cmd_perfetto_cmd",
3614 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003615 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003616 ":src_tracing_core_core",
3617 ":src_tracing_ipc_common",
3618 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003619 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003620 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003621 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003622 ],
3623 visibility = [
3624 "//visibility:public",
3625 ],
3626 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003627 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003628 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003629 ":protos_perfetto_common_zero",
3630 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003631 ":protos_perfetto_config_android_zero",
3632 ":protos_perfetto_config_cpp",
3633 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003634 ":protos_perfetto_config_ftrace_zero",
3635 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003636 ":protos_perfetto_config_gpu_zero",
3637 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003638 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003639 ":protos_perfetto_config_interceptors_cpp",
3640 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003641 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003642 ":protos_perfetto_config_power_zero",
3643 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003644 ":protos_perfetto_config_process_stats_zero",
3645 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003646 ":protos_perfetto_config_profiling_zero",
3647 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003648 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003649 ":protos_perfetto_config_track_event_cpp",
3650 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003651 ":protos_perfetto_config_zero",
3652 ":protos_perfetto_ipc_cpp",
3653 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003654 ":protos_perfetto_trace_android_zero",
3655 ":protos_perfetto_trace_chrome_zero",
3656 ":protos_perfetto_trace_filesystem_zero",
3657 ":protos_perfetto_trace_ftrace_zero",
3658 ":protos_perfetto_trace_gpu_zero",
3659 ":protos_perfetto_trace_interned_data_zero",
3660 ":protos_perfetto_trace_minimal_zero",
3661 ":protos_perfetto_trace_non_minimal_zero",
3662 ":protos_perfetto_trace_perfetto_zero",
3663 ":protos_perfetto_trace_power_zero",
3664 ":protos_perfetto_trace_profiling_zero",
3665 ":protos_perfetto_trace_ps_zero",
3666 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003667 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003668 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003669 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003670 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003671 ":protozero",
3672 ":src_base_base",
Lalit Maganti2939c082021-03-11 17:25:44 +00003673 ":src_perfetto_cmd_gen_cc_config_descriptor",
Lalit Maganti79d70fe2022-02-15 18:31:09 +00003674 ":src_perfetto_cmd_protos_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003675 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01003676)
3677
3678# GN target: //src/trace_processor:trace_processor
3679perfetto_cc_library(
3680 name = "trace_processor",
3681 srcs = [
Lalit Maganti97d7d472020-04-07 18:49:17 +01003682 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003683 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003684 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003685 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003686 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003687 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003688 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003689 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003690 ":src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01003691 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003692 ":src_trace_processor_storage_full",
3693 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003694 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003695 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003696 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003697 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003698 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003699 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003700 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003701 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003702 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003703 ],
3704 hdrs = [
3705 ":include_perfetto_base_base",
3706 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003707 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003708 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003709 ":include_perfetto_ext_traced_sys_stats_counters",
Eric Secklera7870e62019-11-01 10:11:58 +00003710 ":include_perfetto_trace_processor_basic_types",
3711 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003712 ":include_perfetto_trace_processor_trace_processor",
3713 ],
3714 visibility = [
3715 "//visibility:public",
3716 ],
3717 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003718 ":protos_perfetto_common_zero",
3719 ":protos_perfetto_config_android_zero",
3720 ":protos_perfetto_config_ftrace_zero",
3721 ":protos_perfetto_config_gpu_zero",
3722 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003723 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003724 ":protos_perfetto_config_power_zero",
3725 ":protos_perfetto_config_process_stats_zero",
3726 ":protos_perfetto_config_profiling_zero",
3727 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003728 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003729 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003730 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003731 ":protos_perfetto_trace_chrome_zero",
3732 ":protos_perfetto_trace_filesystem_zero",
3733 ":protos_perfetto_trace_ftrace_zero",
3734 ":protos_perfetto_trace_gpu_zero",
3735 ":protos_perfetto_trace_interned_data_zero",
3736 ":protos_perfetto_trace_minimal_zero",
3737 ":protos_perfetto_trace_non_minimal_zero",
3738 ":protos_perfetto_trace_perfetto_zero",
3739 ":protos_perfetto_trace_power_zero",
3740 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003741 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003742 ":protos_perfetto_trace_profiling_zero",
3743 ":protos_perfetto_trace_ps_zero",
3744 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003745 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003746 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003747 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003748 ":protozero",
3749 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003750 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003751 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003752 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003753 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003754 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003755 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003756 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003757 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003758 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3759 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003760 ":cc_amalgamated_sql_metrics",
Ryan Savitskie65c4052022-03-24 18:22:19 +00003761 ] +
3762 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003763 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003764)
3765
3766# GN target: //src/trace_processor:trace_processor_shell
3767perfetto_cc_binary(
3768 name = "trace_processor_shell",
3769 srcs = [
3770 ":include_perfetto_base_base",
3771 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003772 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003773 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003774 ":include_perfetto_ext_traced_sys_stats_counters",
3775 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003776 ":include_perfetto_trace_processor_basic_types",
3777 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003778 ":include_perfetto_trace_processor_trace_processor",
Florian Mayerf4255a42020-12-14 19:12:34 +00003779 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003780 ":src_profiling_symbolizer_symbolize_database",
3781 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01003782 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003783 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003784 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003785 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003786 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003787 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003788 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003789 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003790 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003791 ":src_trace_processor_metrics_metrics",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003792 ":src_trace_processor_rpc_httpd",
3793 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003794 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003795 ":src_trace_processor_storage_full",
3796 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003797 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003798 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003799 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003800 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003801 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003802 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003803 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003804 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003805 ":src_trace_processor_util_util",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003806 "src/trace_processor/trace_processor_shell.cc",
3807 "src/trace_processor/util/proto_to_json.cc",
3808 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003809 ],
3810 visibility = [
3811 "//visibility:public",
3812 ],
3813 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003814 ":protos_perfetto_common_zero",
3815 ":protos_perfetto_config_android_zero",
3816 ":protos_perfetto_config_ftrace_zero",
3817 ":protos_perfetto_config_gpu_zero",
3818 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003819 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003820 ":protos_perfetto_config_power_zero",
3821 ":protos_perfetto_config_process_stats_zero",
3822 ":protos_perfetto_config_profiling_zero",
3823 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003824 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003825 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003826 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003827 ":protos_perfetto_trace_chrome_zero",
3828 ":protos_perfetto_trace_filesystem_zero",
3829 ":protos_perfetto_trace_ftrace_zero",
3830 ":protos_perfetto_trace_gpu_zero",
3831 ":protos_perfetto_trace_interned_data_zero",
3832 ":protos_perfetto_trace_minimal_zero",
3833 ":protos_perfetto_trace_non_minimal_zero",
3834 ":protos_perfetto_trace_perfetto_zero",
3835 ":protos_perfetto_trace_power_zero",
3836 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003837 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003838 ":protos_perfetto_trace_profiling_zero",
3839 ":protos_perfetto_trace_ps_zero",
3840 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003841 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003842 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003843 ":protos_perfetto_trace_translation_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003844 ":protozero",
3845 ":src_base_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +00003846 ":src_base_http_http",
Ryan7ad6b7d2021-04-22 17:03:54 +01003847 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003848 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003849 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003850 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003851 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003852 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003853 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003854 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003855 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003856 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003857 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3858 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003859 ":cc_amalgamated_sql_metrics",
Ryan Savitskie65c4052022-03-24 18:22:19 +00003860 ] +
3861 PERFETTO_CONFIG.deps.demangle_wrapper,
Primiano Tucci1d409982019-09-19 10:15:18 +01003862)
3863
3864# GN target: //src/traced/probes:traced_probes
3865perfetto_cc_binary(
3866 name = "traced_probes",
3867 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003868 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003869 "src/traced/probes/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003870 ],
3871 visibility = [
3872 "//visibility:public",
3873 ],
3874 deps = [
3875 ":libperfetto",
3876 ],
3877)
3878
3879# GN target: //src/traced/service:traced
3880perfetto_cc_binary(
3881 name = "traced",
3882 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003883 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003884 "src/traced/service/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003885 ],
3886 visibility = [
3887 "//visibility:public",
3888 ],
3889 deps = [
3890 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003891 ],
3892)
3893
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003894# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003895perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003896 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003897 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003898 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003899 ":src_profiling_symbolizer_symbolize_database",
3900 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003901 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003902 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003903 ],
3904 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003905 ":include_perfetto_base_base",
3906 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003907 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003908 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003909 ":include_perfetto_trace_processor_basic_types",
3910 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003911 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003912 ],
3913 visibility = [
3914 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003915 ],
3916 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003917 ":protos_perfetto_common_zero",
3918 ":protos_perfetto_config_android_zero",
3919 ":protos_perfetto_config_ftrace_zero",
3920 ":protos_perfetto_config_gpu_zero",
3921 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003922 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003923 ":protos_perfetto_config_power_zero",
3924 ":protos_perfetto_config_process_stats_zero",
3925 ":protos_perfetto_config_profiling_zero",
3926 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003927 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003928 ":protos_perfetto_config_zero",
3929 ":protos_perfetto_trace_android_zero",
3930 ":protos_perfetto_trace_chrome_zero",
3931 ":protos_perfetto_trace_filesystem_zero",
3932 ":protos_perfetto_trace_ftrace_zero",
3933 ":protos_perfetto_trace_gpu_zero",
3934 ":protos_perfetto_trace_interned_data_zero",
3935 ":protos_perfetto_trace_minimal_zero",
3936 ":protos_perfetto_trace_non_minimal_zero",
3937 ":protos_perfetto_trace_perfetto_zero",
3938 ":protos_perfetto_trace_power_zero",
3939 ":protos_perfetto_trace_profiling_zero",
3940 ":protos_perfetto_trace_ps_zero",
3941 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003942 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003943 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00003944 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003945 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00003946 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01003947 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003948 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003949 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003950)
3951
Lalit Maganti65600342019-09-19 21:35:35 +01003952# GN target: //tools/trace_to_text:trace_to_text
3953perfetto_cc_binary(
3954 name = "trace_to_text",
3955 srcs = [
3956 ":include_perfetto_base_base",
3957 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003958 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003959 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01003960 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003961 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003962 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003963 ":include_perfetto_trace_processor_basic_types",
3964 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003965 ":include_perfetto_trace_processor_trace_processor",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003966 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003967 ":src_profiling_symbolizer_symbolize_database",
3968 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01003969 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003970 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003971 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003972 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003973 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003974 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003975 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti65600342019-09-19 21:35:35 +01003976 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003977 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003978 ":src_trace_processor_metrics_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003979 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003980 ":src_trace_processor_storage_full",
3981 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003982 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003983 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003984 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003985 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003986 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003987 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003988 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003989 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003990 ":src_trace_processor_util_util",
Mohit Sainidc2a57b2022-03-04 15:17:25 +00003991 ":tools_trace_to_text_lib",
3992 ":tools_trace_to_text_main",
Lalit Maganti65600342019-09-19 21:35:35 +01003993 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01003994 ":tools_trace_to_text_utils",
3995 ],
3996 visibility = [
3997 "//visibility:public",
3998 ],
3999 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004000 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004001 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004002 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004003 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004004 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004005 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004006 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004007 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004008 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004009 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004010 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004011 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004012 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004013 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004014 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004015 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004016 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004017 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004018 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004019 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004020 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004021 ":protos_perfetto_trace_power_zero",
4022 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04004023 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004024 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004025 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004026 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004027 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004028 ":protos_perfetto_trace_track_event_zero",
Igor Kraskevich49b42882022-03-21 13:03:02 +00004029 ":protos_perfetto_trace_translation_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004030 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004031 ":protozero",
4032 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004033 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004034 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01004035 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00004036 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004037 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004038 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01004039 ":tools_trace_to_text_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004040 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01004041 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004042 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
4043 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00004044 ":cc_amalgamated_sql_metrics",
Ryan Savitskie65c4052022-03-24 18:22:19 +00004045 ] +
4046 PERFETTO_CONFIG.deps.demangle_wrapper,
Lalit Maganti65600342019-09-19 21:35:35 +01004047)
4048
Primiano Tucci1d409982019-09-19 10:15:18 +01004049# Content from BUILD.extras
4050
4051build_config_dir_ = "include/perfetto/base/build_configs/bazel"
4052
4053# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
4054# This is pulled as a default dep by all targets.
Harvey Yang321c4fc2021-10-25 14:11:50 +08004055perfetto_build_config_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01004056 name = "build_config_hdr",
4057 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
4058 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02004059)
4060
Primiano Tucci1d409982019-09-19 10:15:18 +01004061perfetto_cc_library(
Lalit Maganti4c328e32021-11-09 19:29:50 +00004062 name = "cc_amalgamated_sql_metrics",
4063 hdrs = ["src/trace_processor/metrics/sql/amalgamated_sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02004064)
4065
Primiano Tucci1d409982019-09-19 10:15:18 +01004066perfetto_py_binary(
Lalit Maganti4c328e32021-11-09 19:29:50 +00004067 name = "gen_amalgamated_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004068 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00004069 "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantiab619fa2019-05-02 12:56:37 +01004070 ],
Lalit Maganti4c328e32021-11-09 19:29:50 +00004071 main = "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01004072 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004073)
Lalit Maganti65600342019-09-19 21:35:35 +01004074
Lalit Maganti117272f2020-09-11 14:01:18 +01004075perfetto_py_binary(
4076 name = "gen_cc_proto_descriptor_py",
4077 srcs = [
4078 "tools/gen_cc_proto_descriptor.py",
4079 ],
4080 main = "tools/gen_cc_proto_descriptor.py",
4081 python_version = "PY3",
4082)
4083
Lalit Maganti65600342019-09-19 21:35:35 +01004084perfetto_java_proto_library(
4085 name = "protos_perfetto_metrics_java",
4086 deps = [
4087 ":protos_perfetto_metrics_protos",
4088 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00004089 visibility = PERFETTO_CONFIG.public_visibility,
Lalit Maganti65600342019-09-19 21:35:35 +01004090)
4091
4092perfetto_java_proto_library(
4093 name = "protos_perfetto_metrics_android_java",
4094 deps = [
4095 ":protos_perfetto_metrics_android_protos",
4096 ],
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00004097 visibility = PERFETTO_CONFIG.public_visibility,
Lalit Maganti46e2bda2020-05-06 12:51:33 +01004098)
4099
Lalit Maganti65600342019-09-19 21:35:35 +01004100perfetto_gensignature_internal_only(
4101 name = "trace_processor_sig",
4102 srcs = [
4103 ":trace_processor_shell",
4104 ":trace_to_text",
4105 ],
4106 tags = [
4107 "__TRACE_PROCESSOR_SIG_TAG1",
4108 "__TRACE_PROCESSOR_SIG_TAG2",
4109 ],
4110)
Anindita Ghosh237a7762020-06-30 10:46:52 +00004111
Primiano Tucciec590132020-11-16 14:16:44 +01004112# This is overridden in google internal builds via
4113# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
4114perfetto_cc_library(
4115 name = "cc_perfetto_version_header",
4116 hdrs = ["perfetto_version.gen.h"],
4117)
4118
4119perfetto_py_binary(
4120 name = "gen_version_header_py",
4121 srcs = ["tools/write_version_header.py"],
4122 data = ["CHANGELOG"],
4123 main = "tools/write_version_header.py",
4124 python_version = "PY3",
4125)