blob: 94521a4d4cf7d93867a0b936b6c1f4cb870efdd1 [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",
172 ],
173)
174
Lalit Magantiff9b3262021-07-01 22:24:01 +0100175# GN target: //tools/proto_filter:proto_filter
176perfetto_cc_binary(
177 name = "proto_filter",
178 srcs = [
179 ":src_protozero_filtering_bytecode_common",
180 ":src_protozero_filtering_bytecode_generator",
181 ":src_protozero_filtering_bytecode_parser",
182 ":src_protozero_filtering_filter_util",
183 ":src_protozero_filtering_message_filter",
184 "tools/proto_filter/proto_filter.cc",
185 ],
186 deps = [
187 ":protozero",
188 ":src_base_base",
189 ] + PERFETTO_CONFIG.deps.protobuf_full,
190)
191
Lalit Magantidade39c2021-07-08 19:30:49 +0100192# GN target: //tools/proto_merger:proto_merger
193perfetto_cc_binary(
194 name = "proto_merger",
195 srcs = [
Lalit Magantif7ba1532021-07-21 21:40:32 +0100196 "tools/proto_merger/allowlist.cc",
Lalit Magantidade39c2021-07-08 19:30:49 +0100197 "tools/proto_merger/allowlist.h",
198 "tools/proto_merger/main.cc",
199 "tools/proto_merger/proto_file.cc",
200 "tools/proto_merger/proto_file.h",
Lalit Maganticb07e442021-07-21 21:43:32 +0100201 "tools/proto_merger/proto_file_serializer.cc",
202 "tools/proto_merger/proto_file_serializer.h",
Lalit Magantidade39c2021-07-08 19:30:49 +0100203 "tools/proto_merger/proto_merger.cc",
204 "tools/proto_merger/proto_merger.h",
205 ],
206 deps = [
207 ":src_base_base",
208 ] + PERFETTO_CONFIG.deps.protobuf_full,
209)
210
Primiano Tucci1d409982019-09-19 10:15:18 +0100211# GN target: //:libperfetto
212perfetto_cc_library(
213 name = "libperfetto",
214 srcs = [
215 ":src_android_internal_headers",
216 ":src_android_internal_lazy_library_loader",
Lalit Magantiea7631b2021-01-13 12:33:55 +0000217 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +0000218 ":src_android_stats_perfetto_atoms",
Ryan Savitskidc218882020-11-16 18:02:02 +0000219 ":src_kallsyms_kallsyms",
Primiano Tuccif18ab812021-05-14 23:01:19 +0100220 ":src_protozero_filtering_bytecode_common",
221 ":src_protozero_filtering_bytecode_parser",
222 ":src_protozero_filtering_message_filter",
Primiano Tucci1d409982019-09-19 10:15:18 +0100223 ":src_traced_probes_android_log_android_log",
Rafal Slawik8053a682020-04-08 17:26:40 +0100224 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100225 ":src_traced_probes_data_source",
226 ":src_traced_probes_filesystem_filesystem",
Primiano Tucci65a4fb12020-12-21 18:35:15 +0100227 ":src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100228 ":src_traced_probes_ftrace_ftrace",
Ryan Savitskiec35afb2021-01-29 18:39:36 +0000229 ":src_traced_probes_ftrace_ftrace_procfs",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100230 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100231 ":src_traced_probes_metatrace_metatrace",
232 ":src_traced_probes_packages_list_packages_list",
Florian Mayer29e17182020-12-23 10:59:02 +0000233 ":src_traced_probes_packages_list_packages_list_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +0100234 ":src_traced_probes_power_power",
235 ":src_traced_probes_probes",
236 ":src_traced_probes_probes_src",
237 ":src_traced_probes_ps_ps",
238 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100239 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100240 ":src_traced_service_service",
241 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000242 ":src_tracing_consumer_api_deprecated_consumer_api_deprecated",
243 ":src_tracing_core_core",
244 ":src_tracing_core_service",
245 ":src_tracing_ipc_common",
246 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +0000247 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000248 ":src_tracing_ipc_producer_producer",
249 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100250 ],
251 hdrs = [
252 ":include_perfetto_base_base",
253 ":include_perfetto_ext_base_base",
254 ":include_perfetto_ext_ipc_ipc",
255 ":include_perfetto_ext_traced_sys_stats_counters",
256 ":include_perfetto_ext_traced_traced",
257 ":include_perfetto_ext_tracing_core_core",
258 ":include_perfetto_ext_tracing_ipc_ipc",
259 ":include_perfetto_protozero_protozero",
260 ":include_perfetto_public_public",
261 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000262 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100263 ":include_perfetto_tracing_tracing",
264 ],
265 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +0200266 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100267 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100268 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100269 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100270 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100271 ":protos_perfetto_config_cpp",
272 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100273 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100274 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100275 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100276 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100277 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000278 ":protos_perfetto_config_interceptors_cpp",
279 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100280 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100281 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100282 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100283 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100284 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100285 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100286 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100287 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000288 ":protos_perfetto_config_track_event_cpp",
289 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100290 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000291 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100292 ":protos_perfetto_ipc_ipc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100293 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100294 ":protos_perfetto_trace_chrome_zero",
295 ":protos_perfetto_trace_filesystem_zero",
296 ":protos_perfetto_trace_ftrace_zero",
297 ":protos_perfetto_trace_gpu_zero",
298 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100299 ":protos_perfetto_trace_minimal_zero",
300 ":protos_perfetto_trace_non_minimal_zero",
301 ":protos_perfetto_trace_perfetto_zero",
302 ":protos_perfetto_trace_power_zero",
303 ":protos_perfetto_trace_profiling_zero",
304 ":protos_perfetto_trace_ps_zero",
305 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100306 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100307 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100308 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +0200309 ":protozero",
310 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000311 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000312 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100313)
314
315# GN target: //include/perfetto/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800316perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100317 name = "include_perfetto_base_base",
318 srcs = [
319 "include/perfetto/base/build_config.h",
320 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100321 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000322 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100323 "include/perfetto/base/logging.h",
Primiano Tuccif9460fa2020-12-09 01:28:33 +0100324 "include/perfetto/base/platform_handle.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000325 "include/perfetto/base/proc_utils.h",
Primiano Tuccidf440312020-10-30 16:43:58 +0100326 "include/perfetto/base/status.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100327 "include/perfetto/base/task_runner.h",
Alexander Timinba53cc72021-02-05 15:46:57 +0000328 "include/perfetto/base/template_util.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000329 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100330 "include/perfetto/base/time.h",
331 ],
332)
333
Primiano Tucci44a15be2021-11-06 21:40:18 +0000334# GN target: //include/perfetto/ext/base/http:http
335perfetto_filegroup(
336 name = "include_perfetto_ext_base_http_http",
337 srcs = [
338 "include/perfetto/ext/base/http/http_server.h",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000339 "include/perfetto/ext/base/http/sha1.h",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000340 ],
341)
342
Primiano Tucci1d409982019-09-19 10:15:18 +0100343# GN target: //include/perfetto/ext/base:base
Harvey Yang321c4fc2021-10-25 14:11:50 +0800344perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100345 name = "include_perfetto_ext_base_base",
346 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000347 "include/perfetto/ext/base/android_utils.h",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000348 "include/perfetto/ext/base/base64.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100349 "include/perfetto/ext/base/circular_queue.h",
350 "include/perfetto/ext/base/container_annotations.h",
Primiano Tucciab699b72021-10-15 11:53:00 +0100351 "include/perfetto/ext/base/crash_keys.h",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100352 "include/perfetto/ext/base/ctrl_c_handler.h",
Primiano Tucciabbc9fd2020-10-08 22:09:07 +0200353 "include/perfetto/ext/base/endian.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100354 "include/perfetto/ext/base/event_fd.h",
355 "include/perfetto/ext/base/file_utils.h",
Primiano Tuccic986ca12021-11-18 20:51:24 +0000356 "include/perfetto/ext/base/flat_hash_map.h",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100357 "include/perfetto/ext/base/getopt.h",
358 "include/perfetto/ext/base/getopt_compat.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100359 "include/perfetto/ext/base/hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100360 "include/perfetto/ext/base/metatrace.h",
361 "include/perfetto/ext/base/metatrace_events.h",
362 "include/perfetto/ext/base/no_destructor.h",
363 "include/perfetto/ext/base/optional.h",
364 "include/perfetto/ext/base/paged_memory.h",
Primiano Tuccidac91702021-04-30 15:47:51 +0100365 "include/perfetto/ext/base/periodic_task.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100366 "include/perfetto/ext/base/pipe.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100367 "include/perfetto/ext/base/scoped_file.h",
368 "include/perfetto/ext/base/small_set.h",
Primiano Tucci34abb8d2021-11-16 13:38:01 +0000369 "include/perfetto/ext/base/small_vector.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100370 "include/perfetto/ext/base/string_splitter.h",
371 "include/perfetto/ext/base/string_utils.h",
372 "include/perfetto/ext/base/string_view.h",
373 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000374 "include/perfetto/ext/base/subprocess.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100375 "include/perfetto/ext/base/temp_file.h",
376 "include/perfetto/ext/base/thread_annotations.h",
377 "include/perfetto/ext/base/thread_checker.h",
378 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100379 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100380 "include/perfetto/ext/base/unix_socket.h",
381 "include/perfetto/ext/base/unix_task_runner.h",
382 "include/perfetto/ext/base/utils.h",
383 "include/perfetto/ext/base/uuid.h",
Primiano Tucciec590132020-11-16 14:16:44 +0100384 "include/perfetto/ext/base/version.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100385 "include/perfetto/ext/base/waitable_event.h",
386 "include/perfetto/ext/base/watchdog.h",
387 "include/perfetto/ext/base/watchdog_noop.h",
388 "include/perfetto/ext/base/watchdog_posix.h",
389 "include/perfetto/ext/base/weak_ptr.h",
390 ],
391)
392
393# GN target: //include/perfetto/ext/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800394perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100395 name = "include_perfetto_ext_ipc_ipc",
396 srcs = [
397 "include/perfetto/ext/ipc/async_result.h",
398 "include/perfetto/ext/ipc/basic_types.h",
399 "include/perfetto/ext/ipc/client.h",
400 "include/perfetto/ext/ipc/client_info.h",
401 "include/perfetto/ext/ipc/codegen_helpers.h",
402 "include/perfetto/ext/ipc/deferred.h",
403 "include/perfetto/ext/ipc/host.h",
404 "include/perfetto/ext/ipc/service.h",
405 "include/perfetto/ext/ipc/service_descriptor.h",
406 "include/perfetto/ext/ipc/service_proxy.h",
407 ],
408)
409
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100410# GN target: //include/perfetto/ext/trace_processor/importers/memory_tracker:memory_tracker
Harvey Yang321c4fc2021-10-25 14:11:50 +0800411perfetto_filegroup(
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +0100412 name = "include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
413 srcs = [
414 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph.h",
415 "include/perfetto/ext/trace_processor/importers/memory_tracker/graph_processor.h",
416 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_allocator_node_id.h",
417 "include/perfetto/ext/trace_processor/importers/memory_tracker/memory_graph_edge.h",
418 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_memory_graph_node.h",
419 "include/perfetto/ext/trace_processor/importers/memory_tracker/raw_process_memory_node.h",
420 ],
421)
422
Eric Seckler7fb1d232019-10-23 14:42:43 +0100423# GN target: //include/perfetto/ext/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +0800424perfetto_filegroup(
Eric Seckler7fb1d232019-10-23 14:42:43 +0100425 name = "include_perfetto_ext_trace_processor_export_json",
426 srcs = [
427 "include/perfetto/ext/trace_processor/export_json.h",
428 ],
429)
430
Primiano Tucci1d409982019-09-19 10:15:18 +0100431# GN target: //include/perfetto/ext/traced:sys_stats_counters
Harvey Yang321c4fc2021-10-25 14:11:50 +0800432perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100433 name = "include_perfetto_ext_traced_sys_stats_counters",
434 srcs = [
435 "include/perfetto/ext/traced/sys_stats_counters.h",
436 ],
437)
438
439# GN target: //include/perfetto/ext/traced:traced
Harvey Yang321c4fc2021-10-25 14:11:50 +0800440perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100441 name = "include_perfetto_ext_traced_traced",
442 srcs = [
443 "include/perfetto/ext/traced/data_source_types.h",
444 "include/perfetto/ext/traced/traced.h",
445 ],
446)
447
448# GN target: //include/perfetto/ext/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800449perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100450 name = "include_perfetto_ext_tracing_core_core",
451 srcs = [
452 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100453 "include/perfetto/ext/tracing/core/commit_data_request.h",
454 "include/perfetto/ext/tracing/core/consumer.h",
455 "include/perfetto/ext/tracing/core/observable_events.h",
456 "include/perfetto/ext/tracing/core/producer.h",
457 "include/perfetto/ext/tracing/core/shared_memory.h",
458 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
459 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
460 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100461 "include/perfetto/ext/tracing/core/trace_packet.h",
462 "include/perfetto/ext/tracing/core/trace_stats.h",
463 "include/perfetto/ext/tracing/core/trace_writer.h",
464 "include/perfetto/ext/tracing/core/tracing_service.h",
465 ],
466)
467
468# GN target: //include/perfetto/ext/tracing/ipc:ipc
Harvey Yang321c4fc2021-10-25 14:11:50 +0800469perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100470 name = "include_perfetto_ext_tracing_ipc_ipc",
471 srcs = [
472 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
473 "include/perfetto/ext/tracing/ipc/default_socket.h",
474 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
475 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
476 ],
477)
478
Florian Mayerbd88ff82019-12-18 16:36:37 +0000479# GN target: //include/perfetto/profiling:pprof_builder
Harvey Yang321c4fc2021-10-25 14:11:50 +0800480perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000481 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100482 srcs = [
483 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100484 ],
485)
486
Primiano Tucci1d409982019-09-19 10:15:18 +0100487# GN target: //include/perfetto/protozero:protozero
Harvey Yang321c4fc2021-10-25 14:11:50 +0800488perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100489 name = "include_perfetto_protozero_protozero",
490 srcs = [
491 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000492 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000493 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100494 "include/perfetto/protozero/field.h",
Alexander Timinbaeb8b32021-04-15 11:16:24 +0000495 "include/perfetto/protozero/field_writer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100496 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200497 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100498 "include/perfetto/protozero/message_handle.h",
499 "include/perfetto/protozero/packed_repeated_fields.h",
500 "include/perfetto/protozero/proto_decoder.h",
501 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200502 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100503 "include/perfetto/protozero/scattered_heap_buffer.h",
504 "include/perfetto/protozero/scattered_stream_null_delegate.h",
505 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000506 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100507 ],
508)
509
510# GN target: //include/perfetto/public:public
Harvey Yang321c4fc2021-10-25 14:11:50 +0800511perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100512 name = "include_perfetto_public_public",
513 srcs = [
514 "include/perfetto/public/consumer_api.h",
515 ],
516)
517
Eric Secklera7870e62019-11-01 10:11:58 +0000518# GN target: //include/perfetto/trace_processor:basic_types
Harvey Yang321c4fc2021-10-25 14:11:50 +0800519perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000520 name = "include_perfetto_trace_processor_basic_types",
521 srcs = [
522 "include/perfetto/trace_processor/basic_types.h",
523 "include/perfetto/trace_processor/status.h",
524 ],
525)
526
527# GN target: //include/perfetto/trace_processor:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +0800528perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +0000529 name = "include_perfetto_trace_processor_storage",
530 srcs = [
Primiano Tucci3264b592021-11-08 18:20:51 +0000531 "include/perfetto/trace_processor/trace_blob.h",
532 "include/perfetto/trace_processor/trace_blob_view.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000533 "include/perfetto/trace_processor/trace_processor_storage.h",
534 ],
535)
536
Primiano Tucci1d409982019-09-19 10:15:18 +0100537# GN target: //include/perfetto/trace_processor:trace_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800538perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100539 name = "include_perfetto_trace_processor_trace_processor",
540 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100541 "include/perfetto/trace_processor/iterator.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100542 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci8b970aa2021-11-09 20:21:33 +0000543 "include/perfetto/trace_processor/ref_counted.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100544 "include/perfetto/trace_processor/trace_processor.h",
545 ],
546)
547
548# GN target: //include/perfetto/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +0800549perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100550 name = "include_perfetto_tracing_core_core",
551 srcs = [
552 "include/perfetto/tracing/core/chrome_config.h",
553 "include/perfetto/tracing/core/data_source_config.h",
554 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100555 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000556 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100557 "include/perfetto/tracing/core/tracing_service_state.h",
558 ],
559)
560
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000561# GN target: //include/perfetto/tracing/core:forward_decls
Harvey Yang321c4fc2021-10-25 14:11:50 +0800562perfetto_filegroup(
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000563 name = "include_perfetto_tracing_core_forward_decls",
564 srcs = [
565 "include/perfetto/tracing/core/forward_decls.h",
566 ],
567)
568
Primiano Tucci1d409982019-09-19 10:15:18 +0100569# GN target: //include/perfetto/tracing:tracing
Harvey Yang321c4fc2021-10-25 14:11:50 +0800570perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100571 name = "include_perfetto_tracing_tracing",
572 srcs = [
Eric Seckleref4e7732021-03-30 13:55:03 +0100573 "include/perfetto/tracing/backend_type.h",
Florian Mayer974a8b82019-10-03 10:04:27 +0100574 "include/perfetto/tracing/buffer_exhausted_policy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000575 "include/perfetto/tracing/console_interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100576 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000577 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000578 "include/perfetto/tracing/event_context.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000579 "include/perfetto/tracing/interceptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100580 "include/perfetto/tracing/internal/basic_types.h",
Alexander Timinab5cba12021-01-19 17:23:19 +0000581 "include/perfetto/tracing/internal/checked_scope.h",
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000582 "include/perfetto/tracing/internal/compile_time_hash.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100583 "include/perfetto/tracing/internal/data_source_internal.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000584 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
Sami Kyostila927cd762020-12-01 17:09:14 +0000585 "include/perfetto/tracing/internal/interceptor_trace_writer.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000586 "include/perfetto/tracing/internal/system_tracing_backend.h",
Eric Seckler36881d12021-02-10 10:55:31 +0000587 "include/perfetto/tracing/internal/tracing_backend_fake.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100588 "include/perfetto/tracing/internal/tracing_muxer.h",
589 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700590 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100591 "include/perfetto/tracing/internal/track_event_internal.h",
Alexander Timin8ef1db32021-04-30 12:52:59 +0000592 "include/perfetto/tracing/internal/track_event_interned_fields.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100593 "include/perfetto/tracing/internal/track_event_macros.h",
Alexander Timin129c37c2021-04-08 19:17:59 +0000594 "include/perfetto/tracing/internal/write_track_event_args.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100595 "include/perfetto/tracing/locked_handle.h",
596 "include/perfetto/tracing/platform.h",
Alexander Timin27290e82021-03-12 20:39:23 +0000597 "include/perfetto/tracing/string_helpers.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100598 "include/perfetto/tracing/trace_writer_base.h",
Alexander Timin129bdcf2021-04-16 11:36:37 +0000599 "include/perfetto/tracing/traced_proto.h",
Alexander Timin02d79852021-01-15 16:31:24 +0000600 "include/perfetto/tracing/traced_value.h",
Alexander Timin4e669c82021-02-05 13:48:29 +0000601 "include/perfetto/tracing/traced_value_forward.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100602 "include/perfetto/tracing/tracing.h",
603 "include/perfetto/tracing/tracing_backend.h",
Eric Seckleref4e7732021-03-30 13:55:03 +0100604 "include/perfetto/tracing/tracing_policy.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000605 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700606 "include/perfetto/tracing/track_event.h",
Alexander Timin84af38b2021-10-05 17:10:31 +0100607 "include/perfetto/tracing/track_event_args.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100608 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000609 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000610 "include/perfetto/tracing/track_event_legacy.h",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +0000611 "include/perfetto/tracing/track_event_state_tracker.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100612 ],
613)
614
615# GN target: //src/android_internal:headers
Harvey Yang321c4fc2021-10-25 14:11:50 +0800616perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100617 name = "src_android_internal_headers",
618 srcs = [
619 "src/android_internal/atrace_hal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100620 "src/android_internal/health_hal.h",
621 "src/android_internal/incident_service.h",
Raymond Chiu6403a0e2021-03-19 12:35:34 +0000622 "src/android_internal/power_stats.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000623 "src/android_internal/statsd_logging.h",
Collin Fijalkovichef96fb72021-01-06 16:14:33 -0800624 "src/android_internal/tracing_service_proxy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100625 ],
626)
627
628# GN target: //src/android_internal:lazy_library_loader
Harvey Yang321c4fc2021-10-25 14:11:50 +0800629perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100630 name = "src_android_internal_lazy_library_loader",
631 srcs = [
632 "src/android_internal/lazy_library_loader.cc",
633 "src/android_internal/lazy_library_loader.h",
634 ],
635)
636
Lalit Magantif2d81b72020-12-11 01:53:29 +0000637# GN target: //src/android_stats:android_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +0800638perfetto_filegroup(
Lalit Magantif2d81b72020-12-11 01:53:29 +0000639 name = "src_android_stats_android_stats",
640 srcs = [
641 "src/android_stats/statsd_logging_helper.cc",
642 "src/android_stats/statsd_logging_helper.h",
643 ],
644)
645
Lalit Magantid37172d2020-12-10 19:30:05 +0000646# GN target: //src/android_stats:perfetto_atoms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800647perfetto_filegroup(
Lalit Magantid37172d2020-12-10 19:30:05 +0000648 name = "src_android_stats_perfetto_atoms",
649 srcs = [
650 "src/android_stats/perfetto_atoms.h",
651 ],
652)
653
Primiano Tucci44a15be2021-11-06 21:40:18 +0000654# GN target: //src/base/http:http
655perfetto_cc_library(
656 name = "src_base_http_http",
657 srcs = [
658 "src/base/http/http_server.cc",
Primiano Tucci95dbb702021-11-25 13:27:04 +0000659 "src/base/http/sha1.cc",
Primiano Tucci44a15be2021-11-06 21:40:18 +0000660 ],
661 hdrs = [
662 ":include_perfetto_base_base",
663 ":include_perfetto_ext_base_base",
664 ":include_perfetto_ext_base_http_http",
665 ],
666 deps = [
667 ":src_base_base",
668 ":src_base_unix_socket",
669 ],
670 linkstatic = True,
671)
672
Primiano Tucci1d409982019-09-19 10:15:18 +0100673# GN target: //src/base:base
Primiano Tucci916f4e52020-10-16 20:40:33 +0200674perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100675 name = "src_base_base",
676 srcs = [
Daniele Di Proietto5ce0d142021-11-01 18:30:44 +0000677 "src/base/android_utils.cc",
Primiano Tuccif4f2b452021-11-06 12:14:40 +0000678 "src/base/base64.cc",
Primiano Tucciab699b72021-10-15 11:53:00 +0100679 "src/base/crash_keys.cc",
Primiano Tucci1bc10c62021-01-06 09:38:07 +0100680 "src/base/ctrl_c_handler.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100681 "src/base/event_fd.cc",
682 "src/base/file_utils.cc",
Primiano Tucciccaf6db2021-01-05 22:32:26 +0100683 "src/base/getopt_compat.cc",
Primiano Tuccic7fb63f2021-10-11 16:28:05 +0100684 "src/base/log_ring_buffer.h",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000685 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100686 "src/base/metatrace.cc",
687 "src/base/paged_memory.cc",
Primiano Tuccidac91702021-04-30 15:47:51 +0100688 "src/base/periodic_task.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100689 "src/base/pipe.cc",
Primiano Tuccidf440312020-10-30 16:43:58 +0100690 "src/base/status.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100691 "src/base/string_splitter.cc",
692 "src/base/string_utils.cc",
693 "src/base/string_view.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100694 "src/base/subprocess.cc",
Primiano Tucci8163b2c2020-12-21 15:26:04 +0100695 "src/base/subprocess_posix.cc",
Primiano Tucci6aa3b752021-01-05 14:22:43 +0100696 "src/base/subprocess_windows.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100697 "src/base/temp_file.cc",
698 "src/base/thread_checker.cc",
699 "src/base/thread_task_runner.cc",
700 "src/base/time.cc",
701 "src/base/unix_task_runner.cc",
Primiano Tuccia81d2772020-10-07 00:12:41 +0200702 "src/base/utils.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100703 "src/base/uuid.cc",
Primiano Tucciec590132020-11-16 14:16:44 +0100704 "src/base/version.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100705 "src/base/virtual_destructors.cc",
706 "src/base/waitable_event.cc",
707 "src/base/watchdog_posix.cc",
708 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200709 hdrs = [
710 ":include_perfetto_base_base",
711 ":include_perfetto_ext_base_base",
712 ],
Primiano Tucciec590132020-11-16 14:16:44 +0100713 deps = [
714 ] + PERFETTO_CONFIG.deps.version_header,
Primiano Tucci916f4e52020-10-16 20:40:33 +0200715 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100716)
717
718# GN target: //src/base:unix_socket
Primiano Tucci916f4e52020-10-16 20:40:33 +0200719perfetto_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +0100720 name = "src_base_unix_socket",
721 srcs = [
722 "src/base/unix_socket.cc",
723 ],
Primiano Tucci916f4e52020-10-16 20:40:33 +0200724 hdrs = [
725 ":include_perfetto_base_base",
726 ":include_perfetto_ext_base_base",
727 ],
728 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100729)
730
Harvey Yang321c4fc2021-10-25 14:11:50 +0800731perfetto_genrule(
Primiano Tucciec590132020-11-16 14:16:44 +0100732 name = "src_base_version_gen_h",
733 srcs = [
734 "CHANGELOG",
735 ],
736 outs = [
737 "perfetto_version.gen.h",
738 ],
Joshua Gilpatrick042931b2020-12-04 08:55:59 -0800739 cmd = "$(location gen_version_header_py) --cpp_out=$@ --changelog=$(location CHANGELOG)",
Primiano Tucciec590132020-11-16 14:16:44 +0100740 exec_tools = [
741 ":gen_version_header_py",
742 ],
743)
744
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000745# GN target: //src/ipc:client
Harvey Yang321c4fc2021-10-25 14:11:50 +0800746perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000747 name = "src_ipc_client",
748 srcs = [
749 "src/ipc/client_impl.cc",
750 "src/ipc/client_impl.h",
751 "src/ipc/service_proxy.cc",
752 ],
753)
754
755# GN target: //src/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800756perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000757 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100758 srcs = [
759 "src/ipc/buffered_frame_deserializer.cc",
760 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100761 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000762 "src/ipc/virtual_destructors.cc",
763 ],
764)
765
766# GN target: //src/ipc:host
Harvey Yang321c4fc2021-10-25 14:11:50 +0800767perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000768 name = "src_ipc_host",
769 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100770 "src/ipc/host_impl.cc",
771 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100772 ],
773)
774
Ryan Savitskidc218882020-11-16 18:02:02 +0000775# GN target: //src/kallsyms:kallsyms
Harvey Yang321c4fc2021-10-25 14:11:50 +0800776perfetto_filegroup(
Ryan Savitskidc218882020-11-16 18:02:02 +0000777 name = "src_kallsyms_kallsyms",
778 srcs = [
779 "src/kallsyms/kernel_symbol_map.cc",
780 "src/kallsyms/kernel_symbol_map.h",
781 "src/kallsyms/lazy_kernel_symbolizer.cc",
782 "src/kallsyms/lazy_kernel_symbolizer.h",
783 ],
784)
785
Lalit Maganti2939c082021-03-11 17:25:44 +0000786perfetto_cc_proto_descriptor(
787 name = "src_perfetto_cmd_gen_cc_config_descriptor",
788 deps = [
789 ":protos_perfetto_config_perfetto_config_descriptor",
790 ],
791 outs = [
792 "src/perfetto_cmd/perfetto_config.descriptor.h",
793 ],
794)
795
Primiano Tucci1d409982019-09-19 10:15:18 +0100796# GN target: //src/perfetto_cmd:perfetto_cmd
Harvey Yang321c4fc2021-10-25 14:11:50 +0800797perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100798 name = "src_perfetto_cmd_perfetto_cmd",
799 srcs = [
800 "src/perfetto_cmd/config.cc",
801 "src/perfetto_cmd/config.h",
802 "src/perfetto_cmd/packet_writer.cc",
803 "src/perfetto_cmd/packet_writer.h",
804 "src/perfetto_cmd/pbtxt_to_pb.cc",
805 "src/perfetto_cmd/pbtxt_to_pb.h",
806 "src/perfetto_cmd/perfetto_cmd.cc",
807 "src/perfetto_cmd/perfetto_cmd.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100808 "src/perfetto_cmd/rate_limiter.cc",
809 "src/perfetto_cmd/rate_limiter.h",
810 ],
811)
812
813# GN target: //src/perfetto_cmd:trigger_producer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800814perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +0100815 name = "src_perfetto_cmd_trigger_producer",
816 srcs = [
817 "src/perfetto_cmd/trigger_producer.cc",
818 "src/perfetto_cmd/trigger_producer.h",
819 ],
820)
821
Florian Mayerbd88ff82019-12-18 16:36:37 +0000822# GN target: //src/profiling/symbolizer:symbolize_database
Harvey Yang321c4fc2021-10-25 14:11:50 +0800823perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000824 name = "src_profiling_symbolizer_symbolize_database",
825 srcs = [
826 "src/profiling/symbolizer/symbolize_database.cc",
827 "src/profiling/symbolizer/symbolize_database.h",
828 ],
829)
830
831# GN target: //src/profiling/symbolizer:symbolizer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800832perfetto_filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000833 name = "src_profiling_symbolizer_symbolizer",
834 srcs = [
Uwem Wilsonecda9a22021-07-01 22:29:17 +0000835 "src/profiling/symbolizer/breakpad_parser.cc",
836 "src/profiling/symbolizer/breakpad_parser.h",
Uwem Wilson3e99f332021-07-09 16:05:29 +0000837 "src/profiling/symbolizer/breakpad_symbolizer.cc",
838 "src/profiling/symbolizer/breakpad_symbolizer.h",
Daniele Di Proietto25f80692021-09-17 10:14:41 +0000839 "src/profiling/symbolizer/elf.h",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000840 "src/profiling/symbolizer/local_symbolizer.cc",
841 "src/profiling/symbolizer/local_symbolizer.h",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800842 "src/profiling/symbolizer/scoped_read_mmap.h",
843 "src/profiling/symbolizer/scoped_read_mmap_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800844 "src/profiling/symbolizer/scoped_read_mmap_windows.cc",
Joshua Gilpatrickcd349942020-11-11 15:18:37 -0800845 "src/profiling/symbolizer/subprocess.h",
846 "src/profiling/symbolizer/subprocess_posix.cc",
Joshua Gilpatrickd964ea22020-11-18 11:55:00 -0800847 "src/profiling/symbolizer/subprocess_windows.cc",
Florian Mayerbd88ff82019-12-18 16:36:37 +0000848 "src/profiling/symbolizer/symbolizer.cc",
849 "src/profiling/symbolizer/symbolizer.h",
850 ],
851)
852
Florian Mayer3be55fb2019-11-22 13:08:47 +0000853# GN target: //src/profiling:deobfuscator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800854perfetto_filegroup(
Florian Mayer3be55fb2019-11-22 13:08:47 +0000855 name = "src_profiling_deobfuscator",
856 srcs = [
857 "src/profiling/deobfuscator.cc",
Florian Mayer9a683092020-12-23 18:30:00 +0000858 "src/profiling/deobfuscator.h",
Florian Mayer3be55fb2019-11-22 13:08:47 +0000859 ],
860)
861
Primiano Tuccif18ab812021-05-14 23:01:19 +0100862# GN target: //src/protozero/filtering:bytecode_common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800863perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100864 name = "src_protozero_filtering_bytecode_common",
865 srcs = [
866 "src/protozero/filtering/filter_bytecode_common.h",
867 ],
868)
869
Lalit Magantiff9b3262021-07-01 22:24:01 +0100870# GN target: //src/protozero/filtering:bytecode_generator
Harvey Yang321c4fc2021-10-25 14:11:50 +0800871perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100872 name = "src_protozero_filtering_bytecode_generator",
873 srcs = [
874 "src/protozero/filtering/filter_bytecode_generator.cc",
875 "src/protozero/filtering/filter_bytecode_generator.h",
876 ],
877)
878
Primiano Tuccif18ab812021-05-14 23:01:19 +0100879# GN target: //src/protozero/filtering:bytecode_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +0800880perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100881 name = "src_protozero_filtering_bytecode_parser",
882 srcs = [
883 "src/protozero/filtering/filter_bytecode_parser.cc",
884 "src/protozero/filtering/filter_bytecode_parser.h",
885 ],
886)
887
Lalit Magantiff9b3262021-07-01 22:24:01 +0100888# GN target: //src/protozero/filtering:filter_util
Harvey Yang321c4fc2021-10-25 14:11:50 +0800889perfetto_filegroup(
Lalit Magantiff9b3262021-07-01 22:24:01 +0100890 name = "src_protozero_filtering_filter_util",
891 srcs = [
892 "src/protozero/filtering/filter_util.cc",
893 "src/protozero/filtering/filter_util.h",
894 ],
895)
896
Primiano Tuccif18ab812021-05-14 23:01:19 +0100897# GN target: //src/protozero/filtering:message_filter
Harvey Yang321c4fc2021-10-25 14:11:50 +0800898perfetto_filegroup(
Primiano Tuccif18ab812021-05-14 23:01:19 +0100899 name = "src_protozero_filtering_message_filter",
900 srcs = [
901 "src/protozero/filtering/message_filter.cc",
902 "src/protozero/filtering/message_filter.h",
903 "src/protozero/filtering/message_tokenizer.h",
904 ],
905)
906
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100907# GN target: //src/protozero:proto_ring_buffer
Harvey Yang321c4fc2021-10-25 14:11:50 +0800908perfetto_filegroup(
Lalit Maganti7d4b92b2021-05-20 17:16:51 +0100909 name = "src_protozero_proto_ring_buffer",
910 srcs = [
911 "src/protozero/proto_ring_buffer.cc",
912 "src/protozero/proto_ring_buffer.h",
913 ],
914)
915
Lalit Maganti97d7d472020-04-07 18:49:17 +0100916# GN target: //src/trace_processor/analysis:analysis
Harvey Yang321c4fc2021-10-25 14:11:50 +0800917perfetto_filegroup(
Lalit Maganti97d7d472020-04-07 18:49:17 +0100918 name = "src_trace_processor_analysis_analysis",
919 srcs = [
920 "src/trace_processor/analysis/describe_slice.cc",
921 "src/trace_processor/analysis/describe_slice.h",
922 ],
923)
924
Lalit Maganti2aa88582019-12-17 17:06:49 +0000925# GN target: //src/trace_processor/containers:containers
Ryan7ad6b7d2021-04-22 17:03:54 +0100926perfetto_cc_library(
Lalit Maganti2aa88582019-12-17 17:06:49 +0000927 name = "src_trace_processor_containers_containers",
928 srcs = [
929 "src/trace_processor/containers/bit_vector.cc",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000930 "src/trace_processor/containers/bit_vector_iterators.cc",
Ryan7ad6b7d2021-04-22 17:03:54 +0100931 "src/trace_processor/containers/nullable_vector.cc",
932 "src/trace_processor/containers/row_map.cc",
933 "src/trace_processor/containers/string_pool.cc",
934 ],
935 hdrs = [
936 ":include_perfetto_base_base",
937 ":include_perfetto_protozero_protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +0100938 "src/trace_processor/containers/bit_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000939 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000940 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +0100941 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000942 "src/trace_processor/containers/row_map.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000943 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000944 ],
Ryan0331ac02021-04-26 15:41:47 +0100945 deps = [
946 ":src_base_base",
947 ],
948 linkstatic = True,
Lalit Maganti2aa88582019-12-17 17:06:49 +0000949)
950
Lalit Maganti1534bb72021-04-23 14:11:26 +0100951# GN target: //src/trace_processor/db:db
Harvey Yang321c4fc2021-10-25 14:11:50 +0800952perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100953 name = "src_trace_processor_db_db",
Primiano Tucci1d409982019-09-19 10:15:18 +0100954 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100955 "src/trace_processor/db/column.cc",
956 "src/trace_processor/db/column.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +0000957 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100958 "src/trace_processor/db/table.cc",
959 "src/trace_processor/db/table.h",
960 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +0000961 "src/trace_processor/db/typed_column_internal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100962 ],
963)
964
Lalit Maganti1534bb72021-04-23 14:11:26 +0100965# GN target: //src/trace_processor/importers/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +0800966perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100967 name = "src_trace_processor_importers_common_common",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100968 srcs = [
969 "src/trace_processor/importers/common/args_tracker.cc",
970 "src/trace_processor/importers/common/args_tracker.h",
Lalit Maganti1534bb72021-04-23 14:11:26 +0100971 "src/trace_processor/importers/common/chunked_trace_reader.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100972 "src/trace_processor/importers/common/clock_tracker.cc",
973 "src/trace_processor/importers/common/clock_tracker.h",
974 "src/trace_processor/importers/common/event_tracker.cc",
975 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300976 "src/trace_processor/importers/common/flow_tracker.cc",
977 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100978 "src/trace_processor/importers/common/global_args_tracker.cc",
979 "src/trace_processor/importers/common/global_args_tracker.h",
980 "src/trace_processor/importers/common/process_tracker.cc",
981 "src/trace_processor/importers/common/process_tracker.h",
982 "src/trace_processor/importers/common/slice_tracker.cc",
983 "src/trace_processor/importers/common/slice_tracker.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100984 "src/trace_processor/importers/common/system_info_tracker.cc",
985 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Magantid1a7b032021-04-23 14:46:57 +0100986 "src/trace_processor/importers/common/trace_parser.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100987 "src/trace_processor/importers/common/track_tracker.cc",
988 "src/trace_processor/importers/common/track_tracker.h",
989 ],
990)
991
Lalit Maganti1534bb72021-04-23 14:11:26 +0100992# GN target: //src/trace_processor/importers/memory_tracker:graph_processor
Harvey Yang321c4fc2021-10-25 14:11:50 +0800993perfetto_filegroup(
Lalit Maganti1534bb72021-04-23 14:11:26 +0100994 name = "src_trace_processor_importers_memory_tracker_graph_processor",
995 srcs = [
996 "src/trace_processor/importers/memory_tracker/graph.cc",
997 "src/trace_processor/importers/memory_tracker/graph_processor.cc",
998 "src/trace_processor/importers/memory_tracker/memory_allocator_node_id.cc",
999 "src/trace_processor/importers/memory_tracker/raw_memory_graph_node.cc",
1000 "src/trace_processor/importers/memory_tracker/raw_process_memory_node.cc",
1001 ],
1002)
1003
Lalit Maganti117272f2020-09-11 14:01:18 +01001004perfetto_cc_proto_descriptor(
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00001005 name = "src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
1006 deps = [
1007 ":protos_third_party_chromium_chrome_track_event_descriptor",
1008 ],
1009 outs = [
1010 "src/trace_processor/importers/chrome_track_event.descriptor.h",
1011 ],
1012)
1013
1014perfetto_cc_proto_descriptor(
Hector Dearmana1d75242020-10-02 09:47:24 +01001015 name = "src_trace_processor_importers_gen_cc_config_descriptor",
1016 deps = [
1017 ":protos_perfetto_config_descriptor",
1018 ],
1019 outs = [
1020 "src/trace_processor/importers/config.descriptor.h",
1021 ],
1022)
1023
1024perfetto_cc_proto_descriptor(
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001025 name = "src_trace_processor_importers_gen_cc_track_event_descriptor",
1026 deps = [
1027 ":protos_perfetto_trace_track_event_track_event_descriptor",
1028 ],
1029 outs = [
1030 "src/trace_processor/importers/track_event.descriptor.h",
1031 ],
1032)
1033
Lalit Maganti4c328e32021-11-09 19:29:50 +00001034perfetto_genrule(
1035 name = "src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
1036 srcs = [
1037 "src/trace_processor/metrics/sql/android/android_batt.sql",
1038 "src/trace_processor/metrics/sql/android/android_camera.sql",
1039 "src/trace_processor/metrics/sql/android/android_cpu.sql",
1040 "src/trace_processor/metrics/sql/android/android_cpu_agg.sql",
1041 "src/trace_processor/metrics/sql/android/android_cpu_raw_metrics_per_core.sql",
1042 "src/trace_processor/metrics/sql/android/android_dma_heap.sql",
Luke Chang476e9442021-11-09 23:14:34 +08001043 "src/trace_processor/metrics/sql/android/android_dvfs.sql",
Lalit Maganti4c328e32021-11-09 19:29:50 +00001044 "src/trace_processor/metrics/sql/android/android_fastrpc.sql",
1045 "src/trace_processor/metrics/sql/android/android_gpu.sql",
1046 "src/trace_processor/metrics/sql/android/android_hwcomposer.sql",
1047 "src/trace_processor/metrics/sql/android/android_hwui_metric.sql",
1048 "src/trace_processor/metrics/sql/android/android_hwui_threads.sql",
1049 "src/trace_processor/metrics/sql/android/android_ion.sql",
1050 "src/trace_processor/metrics/sql/android/android_jank.sql",
1051 "src/trace_processor/metrics/sql/android/android_lmk.sql",
1052 "src/trace_processor/metrics/sql/android/android_lmk_reason.sql",
1053 "src/trace_processor/metrics/sql/android/android_mem.sql",
1054 "src/trace_processor/metrics/sql/android/android_mem_unagg.sql",
1055 "src/trace_processor/metrics/sql/android/android_multiuser.sql",
1056 "src/trace_processor/metrics/sql/android/android_multiuser_populator.sql",
1057 "src/trace_processor/metrics/sql/android/android_package_list.sql",
1058 "src/trace_processor/metrics/sql/android/android_powrails.sql",
1059 "src/trace_processor/metrics/sql/android/android_proxy_power.sql",
1060 "src/trace_processor/metrics/sql/android/android_simpleperf.sql",
1061 "src/trace_processor/metrics/sql/android/android_startup.sql",
1062 "src/trace_processor/metrics/sql/android/android_surfaceflinger.sql",
1063 "src/trace_processor/metrics/sql/android/android_sysui_cuj.sql",
1064 "src/trace_processor/metrics/sql/android/android_sysui_cuj_jank_query.sql",
1065 "src/trace_processor/metrics/sql/android/android_task_names.sql",
1066 "src/trace_processor/metrics/sql/android/android_thread_time_in_state.sql",
1067 "src/trace_processor/metrics/sql/android/android_trace_quality.sql",
1068 "src/trace_processor/metrics/sql/android/composer_execution.sql",
1069 "src/trace_processor/metrics/sql/android/composition_layers.sql",
1070 "src/trace_processor/metrics/sql/android/cpu_info.sql",
1071 "src/trace_processor/metrics/sql/android/display_metrics.sql",
1072 "src/trace_processor/metrics/sql/android/frame_missed.sql",
1073 "src/trace_processor/metrics/sql/android/g2d.sql",
1074 "src/trace_processor/metrics/sql/android/g2d_duration.sql",
1075 "src/trace_processor/metrics/sql/android/global_counter_span_view.sql",
1076 "src/trace_processor/metrics/sql/android/gpu_counter_span_view.sql",
1077 "src/trace_processor/metrics/sql/android/java_heap_histogram.sql",
1078 "src/trace_processor/metrics/sql/android/java_heap_stats.sql",
1079 "src/trace_processor/metrics/sql/android/mem_stats_priority_breakdown.sql",
1080 "src/trace_processor/metrics/sql/android/power_drain_in_watts.sql",
1081 "src/trace_processor/metrics/sql/android/power_profile_data.sql",
1082 "src/trace_processor/metrics/sql/android/process_counter_span_view.sql",
1083 "src/trace_processor/metrics/sql/android/process_mem.sql",
1084 "src/trace_processor/metrics/sql/android/process_metadata.sql",
1085 "src/trace_processor/metrics/sql/android/process_oom_score.sql",
1086 "src/trace_processor/metrics/sql/android/process_unagg_mem_view.sql",
1087 "src/trace_processor/metrics/sql/android/profiler_smaps.sql",
1088 "src/trace_processor/metrics/sql/android/span_view_stats.sql",
1089 "src/trace_processor/metrics/sql/android/startup/hsc.sql",
1090 "src/trace_processor/metrics/sql/android/startup/launches.sql",
1091 "src/trace_processor/metrics/sql/android/thread_counter_span_view.sql",
1092 "src/trace_processor/metrics/sql/android/unsymbolized_frames.sql",
1093 "src/trace_processor/metrics/sql/chrome/actual_power_by_category.sql",
1094 "src/trace_processor/metrics/sql/chrome/actual_power_by_rail_mode.sql",
1095 "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
1096 "src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
1097 "src/trace_processor/metrics/sql/chrome/chrome_thread_slice_with_cpu_time.sql",
1098 "src/trace_processor/metrics/sql/chrome/cpu_time_by_category.sql",
1099 "src/trace_processor/metrics/sql/chrome/cpu_time_by_rail_mode.sql",
1100 "src/trace_processor/metrics/sql/chrome/estimated_power_by_category.sql",
1101 "src/trace_processor/metrics/sql/chrome/estimated_power_by_rail_mode.sql",
1102 "src/trace_processor/metrics/sql/chrome/gesture_flow_event.sql",
1103 "src/trace_processor/metrics/sql/chrome/gesture_flow_event_queuing_delay.sql",
1104 "src/trace_processor/metrics/sql/chrome/gesture_jank.sql",
1105 "src/trace_processor/metrics/sql/chrome/rail_modes.sql",
1106 "src/trace_processor/metrics/sql/chrome/scroll_flow_event.sql",
1107 "src/trace_processor/metrics/sql/chrome/scroll_flow_event_queuing_delay.sql",
1108 "src/trace_processor/metrics/sql/chrome/scroll_jank.sql",
1109 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause.sql",
1110 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_task.sql",
1111 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_blocking_touch_move.sql",
1112 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_get_bitmap.sql",
1113 "src/trace_processor/metrics/sql/chrome/scroll_jank_cause_queuing_delay.sql",
1114 "src/trace_processor/metrics/sql/chrome/test_chrome_metric.sql",
1115 "src/trace_processor/metrics/sql/chrome/touch_flow_event.sql",
1116 "src/trace_processor/metrics/sql/chrome/touch_flow_event_queuing_delay.sql",
1117 "src/trace_processor/metrics/sql/chrome/touch_jank.sql",
1118 "src/trace_processor/metrics/sql/experimental/blink_gc_metric.sql",
1119 "src/trace_processor/metrics/sql/experimental/chrome_dropped_frames.sql",
1120 "src/trace_processor/metrics/sql/experimental/frame_times.sql",
1121 "src/trace_processor/metrics/sql/experimental/media_metric.sql",
1122 "src/trace_processor/metrics/sql/experimental/reported_by_page.sql",
1123 "src/trace_processor/metrics/sql/trace_metadata.sql",
1124 "src/trace_processor/metrics/sql/trace_stats.sql",
1125 "src/trace_processor/metrics/sql/webview/webview_power_usage.sql",
1126 ],
1127 outs = [
1128 "src/trace_processor/metrics/sql/amalgamated_sql_metrics.h",
1129 ],
1130 cmd = "$(location gen_amalgamated_sql_metrics_py) --cpp_out=$@ $(SRCS)",
1131 exec_tools = [
1132 ":gen_amalgamated_sql_metrics_py",
1133 ],
1134)
1135
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00001136perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001137 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
1138 deps = [
1139 ":protos_perfetto_metrics_chrome_descriptor",
1140 ],
1141 outs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00001142 "src/trace_processor/metrics/all_chrome_metrics.descriptor.h",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01001143 ],
1144)
1145
1146perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +01001147 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
1148 deps = [
1149 ":protos_perfetto_metrics_descriptor",
1150 ],
1151 outs = [
1152 "src/trace_processor/metrics/metrics.descriptor.h",
1153 ],
1154)
1155
Lalit Maganti4c328e32021-11-09 19:29:50 +00001156# GN target: //src/trace_processor/metrics:metrics
Harvey Yang321c4fc2021-10-25 14:11:50 +08001157perfetto_filegroup(
Lalit Maganti4c328e32021-11-09 19:29:50 +00001158 name = "src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01001159 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001160 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001161 "src/trace_processor/metrics/metrics.h",
1162 ],
1163)
1164
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001165# GN target: //src/trace_processor/rpc:httpd
Harvey Yang321c4fc2021-10-25 14:11:50 +08001166perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001167 name = "src_trace_processor_rpc_httpd",
1168 srcs = [
1169 "src/trace_processor/rpc/httpd.cc",
1170 "src/trace_processor/rpc/httpd.h",
1171 ],
1172)
1173
1174# GN target: //src/trace_processor/rpc:rpc
Harvey Yang321c4fc2021-10-25 14:11:50 +08001175perfetto_filegroup(
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001176 name = "src_trace_processor_rpc_rpc",
1177 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +01001178 "src/trace_processor/rpc/query_result_serializer.cc",
1179 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01001180 "src/trace_processor/rpc/rpc.cc",
1181 "src/trace_processor/rpc/rpc.h",
1182 ],
1183)
1184
Primiano Tucci1d409982019-09-19 10:15:18 +01001185# GN target: //src/trace_processor/sqlite:sqlite
Harvey Yang321c4fc2021-10-25 14:11:50 +08001186perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001187 name = "src_trace_processor_sqlite_sqlite",
1188 srcs = [
Lalit Maganti00ca67c2021-11-10 14:11:19 +00001189 "src/trace_processor/sqlite/create_function.cc",
1190 "src/trace_processor/sqlite/create_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001191 "src/trace_processor/sqlite/db_sqlite_table.cc",
1192 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +00001193 "src/trace_processor/sqlite/query_cache.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001194 "src/trace_processor/sqlite/query_constraints.cc",
1195 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti82517672021-11-04 23:39:15 +00001196 "src/trace_processor/sqlite/register_function.cc",
1197 "src/trace_processor/sqlite/register_function.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001198 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001199 "src/trace_processor/sqlite/span_join_operator_table.cc",
1200 "src/trace_processor/sqlite/span_join_operator_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001201 "src/trace_processor/sqlite/sql_stats_table.cc",
1202 "src/trace_processor/sqlite/sql_stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001203 "src/trace_processor/sqlite/sqlite3_str_split.cc",
1204 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001205 "src/trace_processor/sqlite/sqlite_raw_table.cc",
1206 "src/trace_processor/sqlite/sqlite_raw_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001207 "src/trace_processor/sqlite/sqlite_table.cc",
1208 "src/trace_processor/sqlite/sqlite_table.h",
1209 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +01001210 "src/trace_processor/sqlite/stats_table.cc",
1211 "src/trace_processor/sqlite/stats_table.h",
Lalit Maganti60732452020-02-04 16:02:53 +00001212 "src/trace_processor/sqlite/window_operator_table.cc",
1213 "src/trace_processor/sqlite/window_operator_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001214 ],
1215)
1216
Lalit Maganti7010b332020-02-07 10:51:15 +00001217# GN target: //src/trace_processor/storage:storage
Harvey Yang321c4fc2021-10-25 14:11:50 +08001218perfetto_filegroup(
Lalit Maganti7010b332020-02-07 10:51:15 +00001219 name = "src_trace_processor_storage_storage",
1220 srcs = [
1221 "src/trace_processor/storage/metadata.h",
1222 "src/trace_processor/storage/stats.h",
1223 "src/trace_processor/storage/trace_storage.cc",
1224 "src/trace_processor/storage/trace_storage.h",
1225 ],
1226)
1227
Primiano Tucci1d409982019-09-19 10:15:18 +01001228# GN target: //src/trace_processor/tables:tables
Harvey Yang321c4fc2021-10-25 14:11:50 +08001229perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001230 name = "src_trace_processor_tables_tables",
1231 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +00001232 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +00001233 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +03001234 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001235 "src/trace_processor/tables/macros.h",
1236 "src/trace_processor/tables/macros_internal.h",
Witold Fijalkowskicdaed0e2020-10-02 09:47:21 +02001237 "src/trace_processor/tables/memory_tables.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +00001238 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001239 "src/trace_processor/tables/profiler_tables.h",
1240 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +01001241 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001242 "src/trace_processor/tables/track_tables.h",
1243 ],
1244)
1245
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001246# GN target: //src/trace_processor/types:types
Harvey Yang321c4fc2021-10-25 14:11:50 +08001247perfetto_filegroup(
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001248 name = "src_trace_processor_types_types",
1249 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +01001250 "src/trace_processor/types/destructible.cc",
1251 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001252 "src/trace_processor/types/gfp_flags.cc",
1253 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +12001254 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +01001255 "src/trace_processor/types/task_state.cc",
1256 "src/trace_processor/types/task_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +01001257 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001258 "src/trace_processor/types/variadic.cc",
1259 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +01001260 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00001261 ],
1262)
1263
Lalit Magantie7107402020-04-15 13:41:12 +01001264# GN target: //src/trace_processor/util:descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001265perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001266 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001267 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01001268 "src/trace_processor/util/descriptors.cc",
1269 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001270 ],
1271)
1272
Lalit Maganti69216ec2021-05-21 14:10:42 +01001273# GN target: //src/trace_processor/util:gzip
Harvey Yang321c4fc2021-10-25 14:11:50 +08001274perfetto_filegroup(
Lalit Maganti69216ec2021-05-21 14:10:42 +01001275 name = "src_trace_processor_util_gzip",
1276 srcs = [
1277 "src/trace_processor/util/gzip_utils.cc",
1278 "src/trace_processor/util/gzip_utils.h",
1279 ],
1280)
1281
Alexander Timin97d87852021-05-17 18:01:33 +00001282# GN target: //src/trace_processor/util:interned_message_view
Harvey Yang321c4fc2021-10-25 14:11:50 +08001283perfetto_filegroup(
Alexander Timin97d87852021-05-17 18:01:33 +00001284 name = "src_trace_processor_util_interned_message_view",
1285 srcs = [
1286 "src/trace_processor/util/interned_message_view.h",
1287 ],
1288)
1289
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001290# GN target: //src/trace_processor/util:proto_to_args_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001291perfetto_filegroup(
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001292 name = "src_trace_processor_util_proto_to_args_parser",
1293 srcs = [
Alexander Timin97d87852021-05-17 18:01:33 +00001294 "src/trace_processor/util/debug_annotation_parser.cc",
1295 "src/trace_processor/util/debug_annotation_parser.h",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00001296 "src/trace_processor/util/proto_to_args_parser.cc",
1297 "src/trace_processor/util/proto_to_args_parser.h",
1298 ],
1299)
1300
Deepanjan Roy1e048012020-09-23 12:49:04 -04001301# GN target: //src/trace_processor/util:protozero_to_text
Harvey Yang321c4fc2021-10-25 14:11:50 +08001302perfetto_filegroup(
Deepanjan Roy1e048012020-09-23 12:49:04 -04001303 name = "src_trace_processor_util_protozero_to_text",
1304 srcs = [
1305 "src/trace_processor/util/protozero_to_text.cc",
1306 "src/trace_processor/util/protozero_to_text.h",
1307 ],
1308)
1309
Lalit Magantie7107402020-04-15 13:41:12 +01001310# GN target: //src/trace_processor/util:util
Harvey Yang321c4fc2021-10-25 14:11:50 +08001311perfetto_filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +01001312 name = "src_trace_processor_util_util",
1313 srcs = [
1314 "src/trace_processor/util/status_macros.h",
1315 ],
1316)
1317
Eric Secklera7870e62019-11-01 10:11:58 +00001318# GN target: //src/trace_processor:export_json
Harvey Yang321c4fc2021-10-25 14:11:50 +08001319perfetto_filegroup(
Eric Secklera7870e62019-11-01 10:11:58 +00001320 name = "src_trace_processor_export_json",
1321 srcs = [
1322 "src/trace_processor/export_json.cc",
1323 "src/trace_processor/export_json.h",
1324 ],
1325)
1326
Lalit Maganti655adae2020-04-14 21:01:25 +01001327# GN target: //src/trace_processor:ftrace_descriptors
Harvey Yang321c4fc2021-10-25 14:11:50 +08001328perfetto_filegroup(
Lalit Maganti655adae2020-04-14 21:01:25 +01001329 name = "src_trace_processor_ftrace_descriptors",
1330 srcs = [
1331 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1332 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1333 ],
1334)
1335
Primiano Tucci1d409982019-09-19 10:15:18 +01001336# GN target: //src/trace_processor:lib
Harvey Yang321c4fc2021-10-25 14:11:50 +08001337perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001338 name = "src_trace_processor_lib",
1339 srcs = [
Stephen Nuskodd7f6dc2020-11-26 17:04:08 -05001340 "src/trace_processor/dynamic/ancestor_generator.cc",
1341 "src/trace_processor/dynamic/ancestor_generator.h",
Andrii824107d2020-09-29 10:13:36 +03001342 "src/trace_processor/dynamic/connected_flow_generator.cc",
1343 "src/trace_processor/dynamic/connected_flow_generator.h",
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +00001344 "src/trace_processor/dynamic/descendant_generator.cc",
1345 "src/trace_processor/dynamic/descendant_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001346 "src/trace_processor/dynamic/describe_slice_generator.cc",
1347 "src/trace_processor/dynamic/describe_slice_generator.h",
Ryanddeb3b12021-04-12 15:55:17 +01001348 "src/trace_processor/dynamic/experimental_annotated_stack_generator.cc",
1349 "src/trace_processor/dynamic/experimental_annotated_stack_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +01001350 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
1351 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
1352 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
1353 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
Lalit Maganti40fbe8e2021-06-10 16:21:25 +01001354 "src/trace_processor/dynamic/experimental_flat_slice_generator.cc",
1355 "src/trace_processor/dynamic/experimental_flat_slice_generator.h",
Lalit Magantic59b1bc2020-07-28 16:36:58 +01001356 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
1357 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
Hector Dearman5b523762020-04-16 10:36:32 +01001358 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
1359 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
Lalit Maganti2fc5db22020-08-13 15:02:47 +01001360 "src/trace_processor/dynamic/thread_state_generator.cc",
1361 "src/trace_processor/dynamic/thread_state_generator.h",
Primiano Tucci4e01f632020-06-11 17:03:05 +01001362 "src/trace_processor/iterator_impl.cc",
1363 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001364 "src/trace_processor/read_trace.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001365 "src/trace_processor/trace_processor.cc",
1366 "src/trace_processor/trace_processor_impl.cc",
1367 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +00001368 ],
1369)
1370
Lalit Maganti427b8332020-05-27 16:09:45 +01001371# GN target: //src/trace_processor:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001372perfetto_filegroup(
Lalit Maganti427b8332020-05-27 16:09:45 +01001373 name = "src_trace_processor_metatrace",
1374 srcs = [
1375 "src/trace_processor/tp_metatrace.cc",
1376 "src/trace_processor/tp_metatrace.h",
1377 ],
1378)
1379
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001380# GN target: //src/trace_processor:storage_full
Harvey Yang321c4fc2021-10-25 14:11:50 +08001381perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001382 name = "src_trace_processor_storage_full",
1383 srcs = [
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001384 "src/trace_processor/importers/additional_modules.cc",
1385 "src/trace_processor/importers/additional_modules.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001386 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1387 "src/trace_processor/importers/ftrace/binder_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001388 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1389 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1390 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1391 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1392 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1393 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
Lalit Maganti697894f2019-12-23 14:32:13 +00001394 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1395 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001396 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1397 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001398 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1399 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1400 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1401 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1402 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1403 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001404 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1405 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001406 "src/trace_processor/importers/json/json_trace_parser.cc",
1407 "src/trace_processor/importers/json/json_trace_parser.h",
1408 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1409 "src/trace_processor/importers/json/json_trace_tokenizer.h",
Mikhail Khokhlov9996d5d2019-12-17 14:43:17 +00001410 "src/trace_processor/importers/proto/android_probes_module.cc",
1411 "src/trace_processor/importers/proto/android_probes_module.h",
1412 "src/trace_processor/importers/proto/android_probes_parser.cc",
1413 "src/trace_processor/importers/proto/android_probes_parser.h",
Florian Mayer19ce3952020-04-08 15:27:32 +02001414 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1415 "src/trace_processor/importers/proto/android_probes_tracker.h",
Adithya Srinivasan526a34e2020-11-06 13:40:58 -08001416 "src/trace_processor/importers/proto/frame_timeline_event_parser.cc",
1417 "src/trace_processor/importers/proto/frame_timeline_event_parser.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001418 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1419 "src/trace_processor/importers/proto/gpu_event_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001420 "src/trace_processor/importers/proto/graphics_event_module.cc",
1421 "src/trace_processor/importers/proto/graphics_event_module.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001422 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1423 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
Mikhail Khokhlov6146a582019-12-17 17:33:47 +00001424 "src/trace_processor/importers/proto/heap_graph_module.cc",
1425 "src/trace_processor/importers/proto/heap_graph_module.h",
1426 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1427 "src/trace_processor/importers/proto/heap_graph_tracker.h",
Mikhail Khokhlov04f6eb72019-12-17 14:33:11 +00001428 "src/trace_processor/importers/proto/system_probes_module.cc",
1429 "src/trace_processor/importers/proto/system_probes_module.h",
1430 "src/trace_processor/importers/proto/system_probes_parser.cc",
1431 "src/trace_processor/importers/proto/system_probes_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001432 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1433 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001434 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1435 "src/trace_processor/importers/syscalls/syscalls_aarch32.h",
1436 "src/trace_processor/importers/syscalls/syscalls_aarch64.h",
1437 "src/trace_processor/importers/syscalls/syscalls_armeabi.h",
1438 "src/trace_processor/importers/syscalls/syscalls_x86.h",
1439 "src/trace_processor/importers/syscalls/syscalls_x86_64.h",
Lalit Maganti2f0b41d2020-02-27 13:35:39 +00001440 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1441 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1442 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1443 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001444 "src/trace_processor/importers/systrace/systrace_parser.cc",
1445 "src/trace_processor/importers/systrace/systrace_parser.h",
1446 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1447 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001448 ],
1449)
1450
1451# GN target: //src/trace_processor:storage_minimal
Harvey Yang321c4fc2021-10-25 14:11:50 +08001452perfetto_filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001453 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00001454 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001455 "src/trace_processor/forwarding_trace_parser.cc",
1456 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001457 "src/trace_processor/importers/default_modules.cc",
1458 "src/trace_processor/importers/default_modules.h",
Mikhail Khokhlovdd1db002019-12-09 16:34:07 +00001459 "src/trace_processor/importers/ftrace/ftrace_module.cc",
Eric Seckleracfe35b2019-10-18 15:50:17 +01001460 "src/trace_processor/importers/ftrace/ftrace_module.h",
Eric Seckler67e15a92020-01-03 13:20:46 +00001461 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
Eric Secklerd8b52082019-10-17 15:58:38 +01001462 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
Lalit Maganti0bfeb972020-03-14 03:57:30 +00001463 "src/trace_processor/importers/json/json_utils.cc",
1464 "src/trace_processor/importers/json/json_utils.h",
Primiano Tucci50446cb2020-02-14 10:40:23 +00001465 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1466 "src/trace_processor/importers/ninja/ninja_log_parser.h",
Lalit Magantif7a1a732020-10-12 15:42:34 +01001467 "src/trace_processor/importers/proto/async_track_set_tracker.cc",
1468 "src/trace_processor/importers/proto/async_track_set_tracker.h",
Oystein Eftevaag8e39ed82021-03-30 13:52:58 -07001469 "src/trace_processor/importers/proto/chrome_string_lookup.cc",
1470 "src/trace_processor/importers/proto/chrome_string_lookup.h",
ssid7f0c8592021-03-01 13:35:25 -08001471 "src/trace_processor/importers/proto/chrome_system_probes_module.cc",
1472 "src/trace_processor/importers/proto/chrome_system_probes_module.h",
1473 "src/trace_processor/importers/proto/chrome_system_probes_parser.cc",
1474 "src/trace_processor/importers/proto/chrome_system_probes_parser.h",
Tuchila Octavian8c795cd2021-08-25 09:48:35 +01001475 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.cc",
1476 "src/trace_processor/importers/proto/flamegraph_construction_algorithms.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001477 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1478 "src/trace_processor/importers/proto/heap_profile_tracker.h",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01001479 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.cc",
1480 "src/trace_processor/importers/proto/memory_tracker_snapshot_module.h",
1481 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.cc",
1482 "src/trace_processor/importers/proto/memory_tracker_snapshot_parser.h",
Lalit Maganti8532fc92021-03-30 15:48:15 +01001483 "src/trace_processor/importers/proto/metadata_module.cc",
1484 "src/trace_processor/importers/proto/metadata_module.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001485 "src/trace_processor/importers/proto/metadata_tracker.cc",
1486 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001487 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001488 "src/trace_processor/importers/proto/packet_sequence_state.h",
Ryan Savitskic6c7e842021-03-10 14:26:59 +00001489 "src/trace_processor/importers/proto/perf_sample_tracker.cc",
1490 "src/trace_processor/importers/proto/perf_sample_tracker.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001491 "src/trace_processor/importers/proto/profile_module.cc",
1492 "src/trace_processor/importers/proto/profile_module.h",
1493 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1494 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001495 "src/trace_processor/importers/proto/profiler_util.cc",
1496 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001497 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001498 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001499 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001500 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1501 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001502 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1503 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001504 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1505 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001506 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1507 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001508 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001509 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001510 "src/trace_processor/importers/proto/track_event_parser.cc",
1511 "src/trace_processor/importers/proto/track_event_parser.h",
1512 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1513 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganti62b741f2020-12-10 18:24:00 +00001514 "src/trace_processor/importers/proto/track_event_tracker.cc",
1515 "src/trace_processor/importers/proto/track_event_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001516 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001517 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001518 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci3264b592021-11-08 18:20:51 +00001519 "src/trace_processor/trace_blob.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001520 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001521 "src/trace_processor/trace_processor_storage.cc",
1522 "src/trace_processor/trace_processor_storage_impl.cc",
1523 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001524 "src/trace_processor/trace_sorter.cc",
1525 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001526 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001527 ],
1528)
1529
1530# GN target: //src/traced/probes/android_log:android_log
Harvey Yang321c4fc2021-10-25 14:11:50 +08001531perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001532 name = "src_traced_probes_android_log_android_log",
1533 srcs = [
1534 "src/traced/probes/android_log/android_log_data_source.cc",
1535 "src/traced/probes/android_log/android_log_data_source.h",
1536 ],
1537)
1538
Rafal Slawik8053a682020-04-08 17:26:40 +01001539# GN target: //src/traced/probes/common:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001540perfetto_filegroup(
Rafal Slawik8053a682020-04-08 17:26:40 +01001541 name = "src_traced_probes_common_common",
1542 srcs = [
1543 "src/traced/probes/common/cpu_freq_info.cc",
1544 "src/traced/probes/common/cpu_freq_info.h",
1545 ],
1546)
1547
Primiano Tucci1d409982019-09-19 10:15:18 +01001548# GN target: //src/traced/probes/filesystem:filesystem
Harvey Yang321c4fc2021-10-25 14:11:50 +08001549perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001550 name = "src_traced_probes_filesystem_filesystem",
1551 srcs = [
1552 "src/traced/probes/filesystem/file_scanner.cc",
1553 "src/traced/probes/filesystem/file_scanner.h",
1554 "src/traced/probes/filesystem/fs_mount.cc",
1555 "src/traced/probes/filesystem/fs_mount.h",
1556 "src/traced/probes/filesystem/inode_file_data_source.cc",
1557 "src/traced/probes/filesystem/inode_file_data_source.h",
1558 "src/traced/probes/filesystem/lru_inode_cache.cc",
1559 "src/traced/probes/filesystem/lru_inode_cache.h",
1560 "src/traced/probes/filesystem/prefix_finder.cc",
1561 "src/traced/probes/filesystem/prefix_finder.h",
1562 "src/traced/probes/filesystem/range_tree.cc",
1563 "src/traced/probes/filesystem/range_tree.h",
1564 ],
1565)
1566
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001567# GN target: //src/traced/probes/ftrace/format_parser:format_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001568perfetto_filegroup(
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001569 name = "src_traced_probes_ftrace_format_parser_format_parser",
Primiano Tucci1d409982019-09-19 10:15:18 +01001570 srcs = [
Primiano Tucci65a4fb12020-12-21 18:35:15 +01001571 "src/traced/probes/ftrace/format_parser/format_parser.cc",
1572 "src/traced/probes/ftrace/format_parser/format_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001573 ],
1574)
1575
1576# GN target: //src/traced/probes/ftrace:ftrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001577perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001578 name = "src_traced_probes_ftrace_ftrace",
1579 srcs = [
1580 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1581 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1582 "src/traced/probes/ftrace/atrace_wrapper.cc",
1583 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001584 "src/traced/probes/ftrace/compact_sched.cc",
1585 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001586 "src/traced/probes/ftrace/cpu_reader.cc",
1587 "src/traced/probes/ftrace/cpu_reader.h",
1588 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1589 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001590 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1591 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001592 "src/traced/probes/ftrace/event_info.cc",
1593 "src/traced/probes/ftrace/event_info.h",
1594 "src/traced/probes/ftrace/event_info_constants.cc",
1595 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001596 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1597 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1598 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1599 "src/traced/probes/ftrace/ftrace_config_utils.h",
1600 "src/traced/probes/ftrace/ftrace_controller.cc",
1601 "src/traced/probes/ftrace/ftrace_controller.h",
1602 "src/traced/probes/ftrace/ftrace_data_source.cc",
1603 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001604 "src/traced/probes/ftrace/ftrace_metadata.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001605 "src/traced/probes/ftrace/ftrace_stats.cc",
1606 "src/traced/probes/ftrace/ftrace_stats.h",
Hector Dearmanf0566952020-11-19 12:51:01 +00001607 "src/traced/probes/ftrace/printk_formats_parser.cc",
1608 "src/traced/probes/ftrace/printk_formats_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001609 "src/traced/probes/ftrace/proto_translation_table.cc",
1610 "src/traced/probes/ftrace/proto_translation_table.h",
1611 ],
1612)
1613
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001614# GN target: //src/traced/probes/ftrace:ftrace_procfs
Harvey Yang321c4fc2021-10-25 14:11:50 +08001615perfetto_filegroup(
Ryan Savitskiec35afb2021-01-29 18:39:36 +00001616 name = "src_traced_probes_ftrace_ftrace_procfs",
1617 srcs = [
1618 "src/traced/probes/ftrace/ftrace_procfs.cc",
1619 "src/traced/probes/ftrace/ftrace_procfs.h",
1620 ],
1621)
1622
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001623# GN target: //src/traced/probes/initial_display_state:initial_display_state
Harvey Yang321c4fc2021-10-25 14:11:50 +08001624perfetto_filegroup(
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001625 name = "src_traced_probes_initial_display_state_initial_display_state",
1626 srcs = [
1627 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1628 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1629 ],
1630)
1631
Primiano Tucci1d409982019-09-19 10:15:18 +01001632# GN target: //src/traced/probes/metatrace:metatrace
Harvey Yang321c4fc2021-10-25 14:11:50 +08001633perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001634 name = "src_traced_probes_metatrace_metatrace",
1635 srcs = [
1636 "src/traced/probes/metatrace/metatrace_data_source.cc",
1637 "src/traced/probes/metatrace/metatrace_data_source.h",
1638 ],
1639)
1640
1641# GN target: //src/traced/probes/packages_list:packages_list
Harvey Yang321c4fc2021-10-25 14:11:50 +08001642perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001643 name = "src_traced_probes_packages_list_packages_list",
1644 srcs = [
1645 "src/traced/probes/packages_list/packages_list_data_source.cc",
1646 "src/traced/probes/packages_list/packages_list_data_source.h",
1647 ],
1648)
1649
Florian Mayer29e17182020-12-23 10:59:02 +00001650# GN target: //src/traced/probes/packages_list:packages_list_parser
Harvey Yang321c4fc2021-10-25 14:11:50 +08001651perfetto_filegroup(
Florian Mayer29e17182020-12-23 10:59:02 +00001652 name = "src_traced_probes_packages_list_packages_list_parser",
1653 srcs = [
1654 "src/traced/probes/packages_list/packages_list_parser.cc",
1655 "src/traced/probes/packages_list/packages_list_parser.h",
1656 ],
1657)
1658
Primiano Tucci1d409982019-09-19 10:15:18 +01001659# GN target: //src/traced/probes/power:power
Harvey Yang321c4fc2021-10-25 14:11:50 +08001660perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001661 name = "src_traced_probes_power_power",
1662 srcs = [
1663 "src/traced/probes/power/android_power_data_source.cc",
1664 "src/traced/probes/power/android_power_data_source.h",
Chinglin Yu819ef1a2021-11-15 22:25:05 +08001665 "src/traced/probes/power/linux_power_sysfs_data_source.cc",
1666 "src/traced/probes/power/linux_power_sysfs_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001667 ],
1668)
1669
1670# GN target: //src/traced/probes/ps:ps
Harvey Yang321c4fc2021-10-25 14:11:50 +08001671perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001672 name = "src_traced_probes_ps_ps",
1673 srcs = [
1674 "src/traced/probes/ps/process_stats_data_source.cc",
1675 "src/traced/probes/ps/process_stats_data_source.h",
1676 ],
1677)
1678
1679# GN target: //src/traced/probes/sys_stats:sys_stats
Harvey Yang321c4fc2021-10-25 14:11:50 +08001680perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001681 name = "src_traced_probes_sys_stats_sys_stats",
1682 srcs = [
1683 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1684 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1685 ],
1686)
1687
Rafal Slawikb013a112020-04-03 16:12:02 +01001688# GN target: //src/traced/probes/system_info:system_info
Harvey Yang321c4fc2021-10-25 14:11:50 +08001689perfetto_filegroup(
Rafal Slawikb013a112020-04-03 16:12:02 +01001690 name = "src_traced_probes_system_info_system_info",
1691 srcs = [
1692 "src/traced/probes/system_info/system_info_data_source.cc",
1693 "src/traced/probes/system_info/system_info_data_source.h",
1694 ],
1695)
1696
Primiano Tucci1d409982019-09-19 10:15:18 +01001697# GN target: //src/traced/probes:data_source
Harvey Yang321c4fc2021-10-25 14:11:50 +08001698perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001699 name = "src_traced_probes_data_source",
1700 srcs = [
1701 "src/traced/probes/probes_data_source.cc",
1702 "src/traced/probes/probes_data_source.h",
1703 ],
1704)
1705
1706# GN target: //src/traced/probes:probes
Harvey Yang321c4fc2021-10-25 14:11:50 +08001707perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001708 name = "src_traced_probes_probes",
1709 srcs = [
1710 "src/traced/probes/probes.cc",
1711 ],
1712)
1713
1714# GN target: //src/traced/probes:probes_src
Harvey Yang321c4fc2021-10-25 14:11:50 +08001715perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001716 name = "src_traced_probes_probes_src",
1717 srcs = [
Kalesh Singh340cc0b2021-01-14 20:14:27 -05001718 "src/traced/probes/kmem_activity_trigger.cc",
1719 "src/traced/probes/kmem_activity_trigger.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001720 "src/traced/probes/probes_producer.cc",
1721 "src/traced/probes/probes_producer.h",
1722 ],
1723)
1724
1725# GN target: //src/traced/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001726perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001727 name = "src_traced_service_service",
1728 srcs = [
1729 "src/traced/service/builtin_producer.cc",
1730 "src/traced/service/builtin_producer.h",
1731 "src/traced/service/service.cc",
1732 ],
1733)
1734
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001735# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
Harvey Yang321c4fc2021-10-25 14:11:50 +08001736perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001737 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1738 srcs = [
1739 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1740 ],
1741)
1742
1743# GN target: //src/tracing/core:core
Harvey Yang321c4fc2021-10-25 14:11:50 +08001744perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001745 name = "src_tracing_core_core",
1746 srcs = [
1747 "src/tracing/core/id_allocator.cc",
1748 "src/tracing/core/id_allocator.h",
1749 "src/tracing/core/null_trace_writer.cc",
1750 "src/tracing/core/null_trace_writer.h",
1751 "src/tracing/core/patch_list.h",
1752 "src/tracing/core/shared_memory_abi.cc",
1753 "src/tracing/core/shared_memory_arbiter_impl.cc",
1754 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001755 "src/tracing/core/trace_packet.cc",
1756 "src/tracing/core/trace_writer_impl.cc",
1757 "src/tracing/core/trace_writer_impl.h",
1758 "src/tracing/core/virtual_destructors.cc",
1759 ],
1760)
1761
1762# GN target: //src/tracing/core:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001763perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001764 name = "src_tracing_core_service",
1765 srcs = [
1766 "src/tracing/core/metatrace_writer.cc",
1767 "src/tracing/core/metatrace_writer.h",
1768 "src/tracing/core/packet_stream_validator.cc",
1769 "src/tracing/core/packet_stream_validator.h",
1770 "src/tracing/core/trace_buffer.cc",
1771 "src/tracing/core/trace_buffer.h",
1772 "src/tracing/core/tracing_service_impl.cc",
1773 "src/tracing/core/tracing_service_impl.h",
1774 ],
1775)
1776
1777# GN target: //src/tracing/ipc/consumer:consumer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001778perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001779 name = "src_tracing_ipc_consumer_consumer",
1780 srcs = [
1781 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1782 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1783 ],
1784)
1785
1786# GN target: //src/tracing/ipc/producer:producer
Harvey Yang321c4fc2021-10-25 14:11:50 +08001787perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001788 name = "src_tracing_ipc_producer_producer",
1789 srcs = [
1790 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1791 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1792 ],
1793)
1794
1795# GN target: //src/tracing/ipc/service:service
Harvey Yang321c4fc2021-10-25 14:11:50 +08001796perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001797 name = "src_tracing_ipc_service_service",
1798 srcs = [
1799 "src/tracing/ipc/service/consumer_ipc_service.cc",
1800 "src/tracing/ipc/service/consumer_ipc_service.h",
1801 "src/tracing/ipc/service/producer_ipc_service.cc",
1802 "src/tracing/ipc/service/producer_ipc_service.h",
1803 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1804 "src/tracing/ipc/service/service_ipc_host_impl.h",
1805 ],
1806)
1807
1808# GN target: //src/tracing/ipc:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001809perfetto_filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001810 name = "src_tracing_ipc_common",
1811 srcs = [
Eric Seckler14a22db2020-02-03 13:47:08 +00001812 "src/tracing/ipc/memfd.cc",
1813 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001814 "src/tracing/ipc/posix_shared_memory.cc",
1815 "src/tracing/ipc/posix_shared_memory.h",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001816 "src/tracing/ipc/shared_memory_windows.cc",
1817 "src/tracing/ipc/shared_memory_windows.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001818 ],
1819)
1820
Primiano Tucci8761a312021-11-25 17:17:23 +00001821# GN target: //src/tracing/ipc:default_socket
1822perfetto_filegroup(
1823 name = "src_tracing_ipc_default_socket",
1824 srcs = [
1825 "src/tracing/ipc/default_socket.cc",
1826 ],
1827)
1828
Primiano Tucci3feec552020-02-04 11:14:42 +00001829# GN target: //src/tracing:client_api_without_backends
Harvey Yang321c4fc2021-10-25 14:11:50 +08001830perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001831 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001832 srcs = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001833 "src/tracing/console_interceptor.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001834 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001835 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001836 "src/tracing/event_context.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001837 "src/tracing/interceptor.cc",
Alexander Timinab5cba12021-01-19 17:23:19 +00001838 "src/tracing/internal/checked_scope.cc",
Sami Kyostila927cd762020-12-01 17:09:14 +00001839 "src/tracing/internal/interceptor_trace_writer.cc",
Eric Seckler36881d12021-02-10 10:55:31 +00001840 "src/tracing/internal/tracing_backend_fake.cc",
Sami Kyostila19e28c82021-01-14 17:15:27 +00001841 "src/tracing/internal/tracing_muxer_fake.cc",
1842 "src/tracing/internal/tracing_muxer_fake.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001843 "src/tracing/internal/tracing_muxer_impl.cc",
1844 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001845 "src/tracing/internal/track_event_internal.cc",
Alexander Timin8ef1db32021-04-30 12:52:59 +00001846 "src/tracing/internal/track_event_interned_fields.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001847 "src/tracing/platform.cc",
Alexander Timin02d79852021-01-15 16:31:24 +00001848 "src/tracing/traced_value.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001849 "src/tracing/tracing.cc",
Eric Seckleref4e7732021-03-30 13:55:03 +01001850 "src/tracing/tracing_policy.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001851 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001852 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001853 "src/tracing/track_event_legacy.cc",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00001854 "src/tracing/track_event_state_tracker.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001855 "src/tracing/virtual_destructors.cc",
1856 ],
1857)
1858
Primiano Tucci1d409982019-09-19 10:15:18 +01001859# GN target: //src/tracing:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001860perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001861 name = "src_tracing_common",
1862 srcs = [
1863 "src/tracing/trace_writer_base.cc",
1864 ],
1865)
1866
Primiano Tucci55b4d912020-01-28 11:17:51 +00001867# GN target: //src/tracing:in_process_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001868perfetto_filegroup(
Primiano Tucci55b4d912020-01-28 11:17:51 +00001869 name = "src_tracing_in_process_backend",
1870 srcs = [
1871 "src/tracing/internal/in_process_tracing_backend.cc",
1872 ],
1873)
1874
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001875# GN target: //src/tracing:platform_impl
Harvey Yang321c4fc2021-10-25 14:11:50 +08001876perfetto_filegroup(
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01001877 name = "src_tracing_platform_impl",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001878 srcs = [
1879 "src/tracing/platform_posix.cc",
Primiano Tucci5f3008e2021-05-19 21:34:45 +01001880 "src/tracing/platform_windows.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001881 ],
1882)
1883
Primiano Tucci3feec552020-02-04 11:14:42 +00001884# GN target: //src/tracing:system_backend
Harvey Yang321c4fc2021-10-25 14:11:50 +08001885perfetto_filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001886 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001887 srcs = [
1888 "src/tracing/internal/system_tracing_backend.cc",
1889 ],
1890)
1891
Lalit Maganti65600342019-09-19 21:35:35 +01001892# GN target: //tools/trace_to_text:common
Harvey Yang321c4fc2021-10-25 14:11:50 +08001893perfetto_filegroup(
Lalit Maganti65600342019-09-19 21:35:35 +01001894 name = "tools_trace_to_text_common",
1895 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00001896 "tools/trace_to_text/deobfuscate_profile.cc",
1897 "tools/trace_to_text/deobfuscate_profile.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001898 "tools/trace_to_text/main.cc",
1899 "tools/trace_to_text/symbolize_profile.cc",
1900 "tools/trace_to_text/symbolize_profile.h",
Ioannis Ilkos96d16f82020-10-08 14:41:19 +01001901 "tools/trace_to_text/trace_to_hprof.cc",
1902 "tools/trace_to_text/trace_to_hprof.h",
Eric Secklera60a6b42019-10-07 10:35:48 +01001903 "tools/trace_to_text/trace_to_json.cc",
1904 "tools/trace_to_text/trace_to_json.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001905 "tools/trace_to_text/trace_to_profile.cc",
1906 "tools/trace_to_text/trace_to_profile.h",
1907 "tools/trace_to_text/trace_to_systrace.cc",
1908 "tools/trace_to_text/trace_to_systrace.h",
1909 "tools/trace_to_text/trace_to_text.h",
1910 ],
1911)
1912
1913# GN target: //tools/trace_to_text:full
Harvey Yang321c4fc2021-10-25 14:11:50 +08001914perfetto_filegroup(
Lalit Maganti65600342019-09-19 21:35:35 +01001915 name = "tools_trace_to_text_full",
1916 srcs = [
1917 "tools/trace_to_text/proto_full_utils.cc",
1918 "tools/trace_to_text/proto_full_utils.h",
1919 "tools/trace_to_text/trace_to_text.cc",
1920 ],
1921)
1922
Lalit Maganti9c2318c2021-05-20 16:21:41 +01001923perfetto_cc_proto_descriptor(
1924 name = "tools_trace_to_text_gen_cc_trace_descriptor",
1925 deps = [
1926 ":protos_perfetto_trace_descriptor",
1927 ],
1928 outs = [
1929 "tools/trace_to_text/trace.descriptor.h",
1930 ],
1931)
1932
Primiano Tucci1d409982019-09-19 10:15:18 +01001933# GN target: //tools/trace_to_text:pprofbuilder
Harvey Yang321c4fc2021-10-25 14:11:50 +08001934perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001935 name = "tools_trace_to_text_pprofbuilder",
1936 srcs = [
1937 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001938 ],
1939)
1940
Primiano Tucci1d409982019-09-19 10:15:18 +01001941# GN target: //tools/trace_to_text:utils
Harvey Yang321c4fc2021-10-25 14:11:50 +08001942perfetto_filegroup(
Primiano Tucci1d409982019-09-19 10:15:18 +01001943 name = "tools_trace_to_text_utils",
1944 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001945 "tools/trace_to_text/utils.cc",
1946 "tools/trace_to_text/utils.h",
1947 ],
1948)
1949
Primiano Tucci1d409982019-09-19 10:15:18 +01001950# ##############################################################################
1951# Proto libraries
1952# ##############################################################################
1953
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001954# GN target: //protos/perfetto/common:cpp
1955perfetto_cc_protocpp_library(
1956 name = "protos_perfetto_common_cpp",
1957 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001958 ":protos_perfetto_common_protos",
1959 ],
1960)
1961
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001962# GN target: //protos/perfetto/common:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001963perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001964 name = "protos_perfetto_common_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001965 deps = [
1966 ":protos_perfetto_common_protos",
1967 ],
1968)
1969
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001970# GN target: //protos/perfetto/common:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001971perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001972 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001973 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08001974 "protos/perfetto/common/android_energy_consumer_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001975 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01001976 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001977 "protos/perfetto/common/commit_data_request.proto",
1978 "protos/perfetto/common/data_source_descriptor.proto",
1979 "protos/perfetto/common/descriptor.proto",
1980 "protos/perfetto/common/gpu_counter_descriptor.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00001981 "protos/perfetto/common/interceptor_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001982 "protos/perfetto/common/observable_events.proto",
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00001983 "protos/perfetto/common/perf_events.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001984 "protos/perfetto/common/sys_stats_counters.proto",
1985 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00001986 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001987 "protos/perfetto/common/tracing_service_state.proto",
1988 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001989 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001990 visibility = [
1991 PERFETTO_CONFIG.proto_library_visibility,
1992 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001993)
1994
1995# GN target: //protos/perfetto/common:zero
1996perfetto_cc_protozero_library(
1997 name = "protos_perfetto_common_zero",
1998 deps = [
1999 ":protos_perfetto_common_protos",
2000 ],
2001)
2002
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002003# GN target: //protos/perfetto/config/android:cpp
2004perfetto_cc_protocpp_library(
2005 name = "protos_perfetto_config_android_cpp",
2006 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002007 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002008 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002009 ],
2010)
2011
Primiano Tucci1d409982019-09-19 10:15:18 +01002012# GN target: //protos/perfetto/config/android:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002013perfetto_cc_proto_library(
2014 name = "protos_perfetto_config_android_lite",
2015 deps = [
2016 ":protos_perfetto_config_android_protos",
2017 ],
2018)
2019
2020# GN target: //protos/perfetto/config/android:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002021perfetto_proto_library(
2022 name = "protos_perfetto_config_android_protos",
2023 srcs = [
2024 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01002025 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002026 "protos/perfetto/config/android/packages_list_config.proto",
2027 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002028 visibility = [
2029 PERFETTO_CONFIG.proto_library_visibility,
2030 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002031 deps = [
2032 ":protos_perfetto_common_protos",
2033 ],
2034)
2035
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002036# GN target: //protos/perfetto/config/android:zero
2037perfetto_cc_protozero_library(
2038 name = "protos_perfetto_config_android_zero",
2039 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002040 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002041 ":protos_perfetto_config_android_protos",
2042 ],
2043)
2044
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002045# GN target: //protos/perfetto/config:cpp
2046perfetto_cc_protocpp_library(
2047 name = "protos_perfetto_config_cpp",
2048 deps = [
Primiano Tucci34bc5592021-02-19 17:53:36 +01002049 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002050 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002051 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002052 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002053 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002054 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002055 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002056 ":protos_perfetto_config_process_stats_cpp",
2057 ":protos_perfetto_config_profiling_cpp",
2058 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002059 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002060 ":protos_perfetto_config_track_event_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002061 ],
2062)
2063
Hector Dearmana1d75242020-10-02 09:47:24 +01002064# GN target: //protos/perfetto/config:descriptor
2065perfetto_proto_descriptor(
2066 name = "protos_perfetto_config_descriptor",
2067 deps = [
2068 ":protos_perfetto_config_protos",
2069 ],
2070 outs = [
2071 "protos_perfetto_config_descriptor.bin",
2072 ],
2073)
2074
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002075# GN target: //protos/perfetto/config/ftrace:cpp
2076perfetto_cc_protocpp_library(
2077 name = "protos_perfetto_config_ftrace_cpp",
2078 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002079 ":protos_perfetto_config_ftrace_protos",
2080 ],
2081)
2082
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002083# GN target: //protos/perfetto/config/ftrace:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002084perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002085 name = "protos_perfetto_config_ftrace_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002086 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002087 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002088 ],
2089)
2090
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002091# GN target: //protos/perfetto/config/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002092perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002093 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002094 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002095 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002096 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002097 visibility = [
2098 PERFETTO_CONFIG.proto_library_visibility,
2099 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002100)
2101
2102# GN target: //protos/perfetto/config/ftrace:zero
2103perfetto_cc_protozero_library(
2104 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002105 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002106 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002107 ],
2108)
2109
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002110# GN target: //protos/perfetto/config/gpu:cpp
2111perfetto_cc_protocpp_library(
2112 name = "protos_perfetto_config_gpu_cpp",
2113 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002114 ":protos_perfetto_config_gpu_protos",
2115 ],
2116)
2117
Primiano Tucci1d409982019-09-19 10:15:18 +01002118# GN target: //protos/perfetto/config/gpu:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002119perfetto_cc_proto_library(
2120 name = "protos_perfetto_config_gpu_lite",
2121 deps = [
2122 ":protos_perfetto_config_gpu_protos",
2123 ],
2124)
2125
2126# GN target: //protos/perfetto/config/gpu:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002127perfetto_proto_library(
2128 name = "protos_perfetto_config_gpu_protos",
2129 srcs = [
2130 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05002131 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002132 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002133 visibility = [
2134 PERFETTO_CONFIG.proto_library_visibility,
2135 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002136)
2137
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002138# GN target: //protos/perfetto/config/gpu:zero
2139perfetto_cc_protozero_library(
2140 name = "protos_perfetto_config_gpu_zero",
2141 deps = [
2142 ":protos_perfetto_config_gpu_protos",
2143 ],
2144)
2145
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002146# GN target: //protos/perfetto/config/inode_file:cpp
2147perfetto_cc_protocpp_library(
2148 name = "protos_perfetto_config_inode_file_cpp",
2149 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002150 ":protos_perfetto_config_inode_file_protos",
2151 ],
2152)
2153
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002154# GN target: //protos/perfetto/config/inode_file:lite
2155perfetto_cc_proto_library(
2156 name = "protos_perfetto_config_inode_file_lite",
2157 deps = [
2158 ":protos_perfetto_config_inode_file_protos",
2159 ],
2160)
2161
2162# GN target: //protos/perfetto/config/inode_file:zero
2163perfetto_proto_library(
2164 name = "protos_perfetto_config_inode_file_protos",
2165 srcs = [
2166 "protos/perfetto/config/inode_file/inode_file_config.proto",
2167 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002168 visibility = [
2169 PERFETTO_CONFIG.proto_library_visibility,
2170 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002171)
2172
2173# GN target: //protos/perfetto/config/inode_file:zero
2174perfetto_cc_protozero_library(
2175 name = "protos_perfetto_config_inode_file_zero",
2176 deps = [
2177 ":protos_perfetto_config_inode_file_protos",
2178 ],
2179)
2180
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002181# GN target: //protos/perfetto/config/interceptors:cpp
2182perfetto_cc_protocpp_library(
2183 name = "protos_perfetto_config_interceptors_cpp",
2184 deps = [
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002185 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002186 ":protos_perfetto_config_interceptors_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002187 ],
2188)
2189
2190# GN target: //protos/perfetto/config/interceptors:lite
2191perfetto_cc_proto_library(
2192 name = "protos_perfetto_config_interceptors_lite",
2193 deps = [
2194 ":protos_perfetto_config_interceptors_protos",
2195 ],
2196)
2197
2198# GN target: //protos/perfetto/config/interceptors:zero
2199perfetto_proto_library(
2200 name = "protos_perfetto_config_interceptors_protos",
2201 srcs = [
2202 "protos/perfetto/config/interceptors/console_config.proto",
2203 ],
2204 visibility = [
2205 PERFETTO_CONFIG.proto_library_visibility,
2206 ],
2207 deps = [
2208 ":protos_perfetto_common_protos",
2209 ],
2210)
2211
2212# GN target: //protos/perfetto/config/interceptors:zero
2213perfetto_cc_protozero_library(
2214 name = "protos_perfetto_config_interceptors_zero",
2215 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002216 ":protos_perfetto_common_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002217 ":protos_perfetto_config_interceptors_protos",
2218 ],
2219)
2220
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002221# GN target: //protos/perfetto/config:lite
2222perfetto_cc_proto_library(
2223 name = "protos_perfetto_config_lite",
2224 deps = [
2225 ":protos_perfetto_config_protos",
2226 ],
2227)
2228
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002229# GN target: //protos/perfetto/config:merged_config
2230perfetto_cc_proto_library(
2231 name = "protos_perfetto_config_merged_config",
2232 deps = [
2233 ":protos_perfetto_config_merged_config_protos",
2234 ],
2235)
2236
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002237# GN target: //protos/perfetto/config:merged_config
2238perfetto_proto_library(
2239 name = "protos_perfetto_config_merged_config_protos",
2240 srcs = [
2241 "protos/perfetto/config/perfetto_config.proto",
2242 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002243 visibility = PERFETTO_CONFIG.public_visibility,
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07002244)
2245
Lalit Maganti2939c082021-03-11 17:25:44 +00002246# GN target: //protos/perfetto/config:perfetto_config_descriptor
2247perfetto_proto_descriptor(
2248 name = "protos_perfetto_config_perfetto_config_descriptor",
2249 deps = [
2250 ":protos_perfetto_config_perfetto_config_protos",
2251 ],
2252 outs = [
2253 "protos_perfetto_config_perfetto_config_descriptor.bin",
2254 ],
2255)
2256
2257# GN target: //protos/perfetto/config:perfetto_config_descriptor
2258perfetto_proto_library(
2259 name = "protos_perfetto_config_perfetto_config_protos",
2260 srcs = [
2261 "protos/perfetto/config/perfetto_config.proto",
2262 ],
2263 visibility = [
2264 PERFETTO_CONFIG.proto_library_visibility,
2265 ],
2266)
2267
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002268# GN target: //protos/perfetto/config/power:cpp
2269perfetto_cc_protocpp_library(
2270 name = "protos_perfetto_config_power_cpp",
2271 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002272 ":protos_perfetto_config_power_protos",
2273 ],
2274)
2275
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002276# GN target: //protos/perfetto/config/power:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002277perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002278 name = "protos_perfetto_config_power_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002279 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002280 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002281 ],
2282)
2283
2284# GN target: //protos/perfetto/config/power:zero
2285perfetto_proto_library(
2286 name = "protos_perfetto_config_power_protos",
2287 srcs = [
2288 "protos/perfetto/config/power/android_power_config.proto",
2289 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002290 visibility = [
2291 PERFETTO_CONFIG.proto_library_visibility,
2292 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002293)
2294
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002295# GN target: //protos/perfetto/config/power:zero
2296perfetto_cc_protozero_library(
2297 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002298 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002299 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002300 ],
2301)
2302
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002303# GN target: //protos/perfetto/config/process_stats:cpp
2304perfetto_cc_protocpp_library(
2305 name = "protos_perfetto_config_process_stats_cpp",
2306 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002307 ":protos_perfetto_config_process_stats_protos",
2308 ],
2309)
2310
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002311# GN target: //protos/perfetto/config/process_stats:lite
2312perfetto_cc_proto_library(
2313 name = "protos_perfetto_config_process_stats_lite",
2314 deps = [
2315 ":protos_perfetto_config_process_stats_protos",
2316 ],
2317)
2318
2319# GN target: //protos/perfetto/config/process_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002320perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002321 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002322 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002323 "protos/perfetto/config/process_stats/process_stats_config.proto",
2324 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002325 visibility = [
2326 PERFETTO_CONFIG.proto_library_visibility,
2327 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002328)
2329
2330# GN target: //protos/perfetto/config/process_stats:zero
2331perfetto_cc_protozero_library(
2332 name = "protos_perfetto_config_process_stats_zero",
2333 deps = [
2334 ":protos_perfetto_config_process_stats_protos",
2335 ],
2336)
2337
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002338# GN target: //protos/perfetto/config/profiling:cpp
2339perfetto_cc_protocpp_library(
2340 name = "protos_perfetto_config_profiling_cpp",
2341 deps = [
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002342 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002343 ":protos_perfetto_config_profiling_protos",
2344 ],
2345)
2346
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002347# GN target: //protos/perfetto/config/profiling:lite
2348perfetto_cc_proto_library(
2349 name = "protos_perfetto_config_profiling_lite",
2350 deps = [
2351 ":protos_perfetto_config_profiling_protos",
2352 ],
2353)
2354
2355# GN target: //protos/perfetto/config/profiling:zero
2356perfetto_proto_library(
2357 name = "protos_perfetto_config_profiling_protos",
2358 srcs = [
2359 "protos/perfetto/config/profiling/heapprofd_config.proto",
2360 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00002361 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002362 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002363 visibility = [
2364 PERFETTO_CONFIG.proto_library_visibility,
2365 ],
Ryan Savitski9ad60aa2021-03-09 16:36:24 +00002366 deps = [
2367 ":protos_perfetto_common_protos",
2368 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002369)
2370
2371# GN target: //protos/perfetto/config/profiling:zero
2372perfetto_cc_protozero_library(
2373 name = "protos_perfetto_config_profiling_zero",
2374 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002375 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002376 ":protos_perfetto_config_profiling_protos",
2377 ],
2378)
2379
2380# GN target: //protos/perfetto/config:zero
2381perfetto_proto_library(
2382 name = "protos_perfetto_config_protos",
2383 srcs = [
2384 "protos/perfetto/config/chrome/chrome_config.proto",
2385 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila927cd762020-12-01 17:09:14 +00002386 "protos/perfetto/config/interceptor_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02002387 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002388 "protos/perfetto/config/test_config.proto",
2389 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002390 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002391 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002392 deps = [
2393 ":protos_perfetto_common_protos",
2394 ":protos_perfetto_config_android_protos",
2395 ":protos_perfetto_config_ftrace_protos",
2396 ":protos_perfetto_config_gpu_protos",
2397 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002398 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002399 ":protos_perfetto_config_power_protos",
2400 ":protos_perfetto_config_process_stats_protos",
2401 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002402 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002403 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002404 ],
2405)
2406
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002407# GN target: //protos/perfetto/config/sys_stats:cpp
2408perfetto_cc_protocpp_library(
2409 name = "protos_perfetto_config_sys_stats_cpp",
2410 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002411 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002412 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002413 ],
2414)
2415
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002416# GN target: //protos/perfetto/config/sys_stats:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002417perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002418 name = "protos_perfetto_config_sys_stats_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002419 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002420 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002421 ],
2422)
2423
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002424# GN target: //protos/perfetto/config/sys_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002425perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002426 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002427 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002428 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002429 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002430 visibility = [
2431 PERFETTO_CONFIG.proto_library_visibility,
2432 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002433 deps = [
2434 ":protos_perfetto_common_protos",
2435 ],
2436)
2437
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002438# GN target: //protos/perfetto/config/sys_stats:zero
2439perfetto_cc_protozero_library(
2440 name = "protos_perfetto_config_sys_stats_zero",
2441 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002442 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002443 ":protos_perfetto_config_sys_stats_protos",
2444 ],
2445)
2446
Sami Kyostila38cd0412020-02-12 17:09:52 +00002447# GN target: //protos/perfetto/config/track_event:cpp
2448perfetto_cc_protocpp_library(
2449 name = "protos_perfetto_config_track_event_cpp",
2450 deps = [
2451 ":protos_perfetto_config_track_event_protos",
2452 ],
2453)
2454
2455# GN target: //protos/perfetto/config/track_event:lite
2456perfetto_cc_proto_library(
2457 name = "protos_perfetto_config_track_event_lite",
2458 deps = [
2459 ":protos_perfetto_config_track_event_protos",
2460 ],
2461)
2462
2463# GN target: //protos/perfetto/config/track_event:zero
2464perfetto_proto_library(
2465 name = "protos_perfetto_config_track_event_protos",
2466 srcs = [
2467 "protos/perfetto/config/track_event/track_event_config.proto",
2468 ],
2469 visibility = [
2470 PERFETTO_CONFIG.proto_library_visibility,
2471 ],
2472)
2473
2474# GN target: //protos/perfetto/config/track_event:zero
2475perfetto_cc_protozero_library(
2476 name = "protos_perfetto_config_track_event_zero",
2477 deps = [
2478 ":protos_perfetto_config_track_event_protos",
2479 ],
2480)
2481
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002482# GN target: //protos/perfetto/config:zero
2483perfetto_cc_protozero_library(
2484 name = "protos_perfetto_config_zero",
2485 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002486 ":protos_perfetto_common_zero",
2487 ":protos_perfetto_config_android_zero",
2488 ":protos_perfetto_config_ftrace_zero",
2489 ":protos_perfetto_config_gpu_zero",
2490 ":protos_perfetto_config_inode_file_zero",
2491 ":protos_perfetto_config_interceptors_zero",
2492 ":protos_perfetto_config_power_zero",
2493 ":protos_perfetto_config_process_stats_zero",
2494 ":protos_perfetto_config_profiling_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002495 ":protos_perfetto_config_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002496 ":protos_perfetto_config_sys_stats_zero",
2497 ":protos_perfetto_config_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002498 ],
2499)
2500
Primiano Tuccie8020f92019-11-26 13:24:01 +00002501# GN target: //protos/perfetto/ipc:cpp
2502perfetto_cc_protocpp_library(
2503 name = "protos_perfetto_ipc_cpp",
2504 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002505 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002506 ":protos_perfetto_config_android_cpp",
2507 ":protos_perfetto_config_cpp",
2508 ":protos_perfetto_config_ftrace_cpp",
2509 ":protos_perfetto_config_gpu_cpp",
2510 ":protos_perfetto_config_inode_file_cpp",
2511 ":protos_perfetto_config_interceptors_cpp",
2512 ":protos_perfetto_config_power_cpp",
2513 ":protos_perfetto_config_process_stats_cpp",
2514 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002515 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002516 ":protos_perfetto_config_track_event_cpp",
2517 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002518 ],
2519)
2520
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002521# GN target: //protos/perfetto/ipc:ipc
2522perfetto_cc_ipc_library(
2523 name = "protos_perfetto_ipc_ipc",
2524 deps = [
Sami Kyostila38cd0412020-02-12 17:09:52 +00002525 ":protos_perfetto_common_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002526 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002527 ":protos_perfetto_config_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002528 ":protos_perfetto_config_ftrace_cpp",
2529 ":protos_perfetto_config_gpu_cpp",
2530 ":protos_perfetto_config_inode_file_cpp",
2531 ":protos_perfetto_config_interceptors_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002532 ":protos_perfetto_config_power_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002533 ":protos_perfetto_config_process_stats_cpp",
2534 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002535 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci34bc5592021-02-19 17:53:36 +01002536 ":protos_perfetto_config_track_event_cpp",
2537 ":protos_perfetto_ipc_cpp",
2538 ":protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002539 ],
2540)
2541
Primiano Tuccie8020f92019-11-26 13:24:01 +00002542# GN target: //protos/perfetto/ipc:ipc
Primiano Tucci1d409982019-09-19 10:15:18 +01002543perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002544 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002545 srcs = [
2546 "protos/perfetto/ipc/consumer_port.proto",
2547 "protos/perfetto/ipc/producer_port.proto",
2548 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002549 visibility = [
2550 PERFETTO_CONFIG.proto_library_visibility,
2551 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002552 deps = [
2553 ":protos_perfetto_common_protos",
2554 ":protos_perfetto_config_android_protos",
2555 ":protos_perfetto_config_ftrace_protos",
2556 ":protos_perfetto_config_gpu_protos",
2557 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00002558 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002559 ":protos_perfetto_config_power_protos",
2560 ":protos_perfetto_config_process_stats_protos",
2561 ":protos_perfetto_config_profiling_protos",
2562 ":protos_perfetto_config_protos",
2563 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002564 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002565 ],
2566)
2567
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002568# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2569perfetto_cc_protocpp_library(
2570 name = "protos_perfetto_ipc_wire_protocol_cpp",
2571 deps = [
2572 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002573 ],
2574)
2575
Primiano Tuccie8020f92019-11-26 13:24:01 +00002576# GN target: //protos/perfetto/ipc:wire_protocol_cpp
Primiano Tucci1d409982019-09-19 10:15:18 +01002577perfetto_proto_library(
2578 name = "protos_perfetto_ipc_wire_protocol_protos",
2579 srcs = [
2580 "protos/perfetto/ipc/wire_protocol.proto",
2581 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002582 visibility = [
2583 PERFETTO_CONFIG.proto_library_visibility,
2584 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002585)
2586
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002587# GN target: //protos/perfetto/metrics/android:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002588perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002589 name = "protos_perfetto_metrics_android_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002590 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002591 ":protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002592 ],
2593)
2594
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002595# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002596perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002597 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002598 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002599 "protos/perfetto/metrics/android/batt_metric.proto",
Lalit Maganti262252a2021-10-15 12:17:53 +01002600 "protos/perfetto/metrics/android/camera_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002601 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002602 "protos/perfetto/metrics/android/display_metrics.proto",
Hridya Valsarajucd4887a2021-03-16 14:49:22 -07002603 "protos/perfetto/metrics/android/dma_heap_metric.proto",
Luke Chang476e9442021-11-09 23:14:34 +08002604 "protos/perfetto/metrics/android/dvfs_metric.proto",
Collin Fijalkovichb2acc472021-02-24 12:27:18 -08002605 "protos/perfetto/metrics/android/fastrpc_metric.proto",
Wiwit Rifa'i9124a1e2021-02-22 17:41:47 +08002606 "protos/perfetto/metrics/android/g2d_metric.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002607 "protos/perfetto/metrics/android/gpu_metric.proto",
Midas Chien9b804b12020-12-12 00:46:58 +08002608 "protos/perfetto/metrics/android/hwcomposer.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002609 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002610 "protos/perfetto/metrics/android/ion_metric.proto",
Marcin Oczeretko1bcc9a42021-01-23 17:15:23 +00002611 "protos/perfetto/metrics/android/jank_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002612 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002613 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002614 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002615 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002616 "protos/perfetto/metrics/android/mem_metric.proto",
2617 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Adam Bookatzd5aa7632021-08-25 16:13:44 -07002618 "protos/perfetto/metrics/android/multiuser_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002619 "protos/perfetto/metrics/android/package_list.proto",
2620 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002621 "protos/perfetto/metrics/android/process_metadata.proto",
Ioannis Ilkose7a7f4c2021-07-05 16:27:58 +01002622 "protos/perfetto/metrics/android/profiler_smaps.proto",
Wiwit Rifa'ia944ed62021-09-29 15:11:18 +08002623 "protos/perfetto/metrics/android/simpleperf.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002624 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002625 "protos/perfetto/metrics/android/surfaceflinger.proto",
Marcin Oczeretko8f951c52020-11-06 10:29:36 +00002626 "protos/perfetto/metrics/android/sysui_cuj_metrics.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002627 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002628 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Lalit Maganti98002fb2021-06-18 20:31:15 +01002629 "protos/perfetto/metrics/android/trace_quality.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002630 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002631 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002632 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002633)
2634
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002635# GN target: //protos/perfetto/metrics/chrome:descriptor
2636perfetto_proto_descriptor(
2637 name = "protos_perfetto_metrics_chrome_descriptor",
2638 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002639 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002640 ],
2641 outs = [
2642 "protos_perfetto_metrics_chrome_descriptor.bin",
2643 ],
2644)
2645
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002646# GN target: //protos/perfetto/metrics/chrome:source_set
2647perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002648 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002649 srcs = [
2650 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
Stephen Nuskof848d462021-04-06 13:28:04 +01002651 "protos/perfetto/metrics/chrome/blink_gc_metric.proto",
Mingjing Zhang309a1c02021-11-04 22:41:40 -04002652 "protos/perfetto/metrics/chrome/dropped_frames.proto",
Mikhail Khokhlovc74a9452021-01-28 17:23:05 +00002653 "protos/perfetto/metrics/chrome/frame_times.proto",
Eric Seckler3955ba52021-04-07 12:12:43 +01002654 "protos/perfetto/metrics/chrome/media_metric.proto",
Sami Kyostila7a51fc22021-02-10 18:07:53 +00002655 "protos/perfetto/metrics/chrome/reported_by_page.proto",
Stephen Nuskoefa22bd2021-03-29 17:38:22 +01002656 "protos/perfetto/metrics/chrome/scroll_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002657 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
Dan Elphick08baa102021-09-02 16:06:44 +01002658 "protos/perfetto/metrics/chrome/touch_jank.proto",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002659 ],
2660 visibility = [
2661 PERFETTO_CONFIG.proto_library_visibility,
2662 ],
2663 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002664 ":protos_perfetto_metrics_android_protos",
2665 ":protos_perfetto_metrics_custom_options_protos",
2666 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002667 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2668)
2669
2670# GN target: //protos/perfetto/metrics:custom_options_source_set
2671perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002672 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002673 srcs = [
2674 "protos/perfetto/metrics/custom_options.proto",
2675 ],
2676 visibility = [
2677 PERFETTO_CONFIG.proto_library_visibility,
2678 ],
2679 deps = [
2680 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2681)
2682
Lalit Maganti117272f2020-09-11 14:01:18 +01002683# GN target: //protos/perfetto/metrics:descriptor
2684perfetto_proto_descriptor(
2685 name = "protos_perfetto_metrics_descriptor",
2686 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002687 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002688 ],
2689 outs = [
2690 "protos_perfetto_metrics_descriptor.bin",
2691 ],
2692)
2693
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002694# GN target: //protos/perfetto/metrics:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002695perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002696 name = "protos_perfetto_metrics_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002697 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002698 ":protos_perfetto_metrics_protos",
2699 ],
2700)
2701
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002702# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002703perfetto_proto_library(
2704 name = "protos_perfetto_metrics_protos",
2705 srcs = [
2706 "protos/perfetto/metrics/metrics.proto",
2707 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002708 visibility = PERFETTO_CONFIG.public_visibility,
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002709 deps = [
2710 ":protos_perfetto_metrics_android_protos",
2711 ],
2712)
2713
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002714# GN target: //protos/perfetto/trace/android:lite
2715perfetto_cc_proto_library(
2716 name = "protos_perfetto_trace_android_lite",
2717 deps = [
2718 ":protos_perfetto_trace_android_protos",
2719 ],
2720)
2721
2722# GN target: //protos/perfetto/trace/android:zero
2723perfetto_proto_library(
2724 name = "protos_perfetto_trace_android_protos",
2725 srcs = [
2726 "protos/perfetto/trace/android/android_log.proto",
Adithya Srinivasan4bf3c0e2020-11-04 21:09:57 -08002727 "protos/perfetto/trace/android/frame_timeline_event.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002728 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002729 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002730 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002731 "protos/perfetto/trace/android/packages_list.proto",
2732 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002733 visibility = [
2734 PERFETTO_CONFIG.proto_library_visibility,
2735 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002736 deps = [
2737 ":protos_perfetto_common_protos",
2738 ],
2739)
2740
2741# GN target: //protos/perfetto/trace/android:zero
2742perfetto_cc_protozero_library(
2743 name = "protos_perfetto_trace_android_zero",
2744 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002745 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002746 ":protos_perfetto_trace_android_protos",
2747 ],
2748)
2749
2750# GN target: //protos/perfetto/trace/chrome:lite
2751perfetto_cc_proto_library(
2752 name = "protos_perfetto_trace_chrome_lite",
2753 deps = [
2754 ":protos_perfetto_trace_chrome_protos",
2755 ],
2756)
2757
2758# GN target: //protos/perfetto/trace/chrome:zero
2759perfetto_proto_library(
2760 name = "protos_perfetto_trace_chrome_protos",
2761 srcs = [
2762 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2763 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2764 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2765 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002766 visibility = [
2767 PERFETTO_CONFIG.proto_library_visibility,
2768 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002769)
2770
2771# GN target: //protos/perfetto/trace/chrome:zero
2772perfetto_cc_protozero_library(
2773 name = "protos_perfetto_trace_chrome_zero",
2774 deps = [
2775 ":protos_perfetto_trace_chrome_protos",
2776 ],
2777)
2778
Lalit Maganti9c2318c2021-05-20 16:21:41 +01002779# GN target: //protos/perfetto/trace:descriptor
2780perfetto_proto_descriptor(
2781 name = "protos_perfetto_trace_descriptor",
2782 deps = [
2783 ":protos_perfetto_trace_protos",
2784 ],
2785 outs = [
2786 "protos_perfetto_trace_descriptor.bin",
2787 ],
2788)
2789
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002790# GN target: //protos/perfetto/trace/filesystem:lite
2791perfetto_cc_proto_library(
2792 name = "protos_perfetto_trace_filesystem_lite",
2793 deps = [
2794 ":protos_perfetto_trace_filesystem_protos",
2795 ],
2796)
2797
2798# GN target: //protos/perfetto/trace/filesystem:zero
2799perfetto_proto_library(
2800 name = "protos_perfetto_trace_filesystem_protos",
2801 srcs = [
2802 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2803 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002804 visibility = [
2805 PERFETTO_CONFIG.proto_library_visibility,
2806 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002807)
2808
2809# GN target: //protos/perfetto/trace/filesystem:zero
2810perfetto_cc_protozero_library(
2811 name = "protos_perfetto_trace_filesystem_zero",
2812 deps = [
2813 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002814 ],
2815)
2816
2817# GN target: //protos/perfetto/trace/ftrace:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002818perfetto_cc_proto_library(
2819 name = "protos_perfetto_trace_ftrace_lite",
2820 deps = [
2821 ":protos_perfetto_trace_ftrace_protos",
2822 ],
2823)
2824
2825# GN target: //protos/perfetto/trace/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002826perfetto_proto_library(
2827 name = "protos_perfetto_trace_ftrace_protos",
2828 srcs = [
2829 "protos/perfetto/trace/ftrace/binder.proto",
2830 "protos/perfetto/trace/ftrace/block.proto",
2831 "protos/perfetto/trace/ftrace/cgroup.proto",
2832 "protos/perfetto/trace/ftrace/clk.proto",
2833 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002834 "protos/perfetto/trace/ftrace/cpuhp.proto",
Hridya Valsaraju1c79edc2021-03-16 13:53:19 -07002835 "protos/perfetto/trace/ftrace/dmabuf_heap.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002836 "protos/perfetto/trace/ftrace/dpu.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002837 "protos/perfetto/trace/ftrace/ext4.proto",
2838 "protos/perfetto/trace/ftrace/f2fs.proto",
Hector Dearmana90ad9e2020-10-14 11:21:39 +01002839 "protos/perfetto/trace/ftrace/fastrpc.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002840 "protos/perfetto/trace/ftrace/fence.proto",
2841 "protos/perfetto/trace/ftrace/filemap.proto",
2842 "protos/perfetto/trace/ftrace/ftrace.proto",
2843 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2844 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2845 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Hector Dearman66f52002020-10-29 11:28:02 +00002846 "protos/perfetto/trace/ftrace/g2d.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002847 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002848 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002849 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002850 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002851 "protos/perfetto/trace/ftrace/ipi.proto",
2852 "protos/perfetto/trace/ftrace/irq.proto",
2853 "protos/perfetto/trace/ftrace/kmem.proto",
2854 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
Lalit Magantid5debd42021-02-25 15:56:16 +00002855 "protos/perfetto/trace/ftrace/mali.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002856 "protos/perfetto/trace/ftrace/mdss.proto",
2857 "protos/perfetto/trace/ftrace/mm_event.proto",
Luke Chang496f94a2021-12-03 17:13:00 +08002858 "protos/perfetto/trace/ftrace/net.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002859 "protos/perfetto/trace/ftrace/oom.proto",
2860 "protos/perfetto/trace/ftrace/power.proto",
2861 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2862 "protos/perfetto/trace/ftrace/regulator.proto",
2863 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002864 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002865 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002866 "protos/perfetto/trace/ftrace/signal.proto",
2867 "protos/perfetto/trace/ftrace/sync.proto",
Kalesh Singh84f62e42021-11-15 19:01:23 -08002868 "protos/perfetto/trace/ftrace/synthetic.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002869 "protos/perfetto/trace/ftrace/systrace.proto",
2870 "protos/perfetto/trace/ftrace/task.proto",
2871 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002872 "protos/perfetto/trace/ftrace/thermal.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002873 "protos/perfetto/trace/ftrace/vmscan.proto",
2874 "protos/perfetto/trace/ftrace/workqueue.proto",
2875 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002876 visibility = [
2877 PERFETTO_CONFIG.proto_library_visibility,
2878 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002879)
2880
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002881# GN target: //protos/perfetto/trace/ftrace:zero
2882perfetto_cc_protozero_library(
2883 name = "protos_perfetto_trace_ftrace_zero",
2884 deps = [
2885 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002886 ],
2887)
2888
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002889# GN target: //protos/perfetto/trace/gpu:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002890perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002891 name = "protos_perfetto_trace_gpu_lite",
2892 deps = [
2893 ":protos_perfetto_trace_gpu_protos",
2894 ],
2895)
2896
2897# GN target: //protos/perfetto/trace/gpu:zero
2898perfetto_proto_library(
2899 name = "protos_perfetto_trace_gpu_protos",
2900 srcs = [
2901 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07002902 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002903 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08002904 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002905 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
2906 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002907 visibility = [
2908 PERFETTO_CONFIG.proto_library_visibility,
2909 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002910 deps = [
2911 ":protos_perfetto_common_protos",
2912 ],
2913)
2914
2915# GN target: //protos/perfetto/trace/gpu:zero
2916perfetto_cc_protozero_library(
2917 name = "protos_perfetto_trace_gpu_zero",
2918 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002919 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002920 ":protos_perfetto_trace_gpu_protos",
2921 ],
2922)
2923
2924# GN target: //protos/perfetto/trace/interned_data:lite
2925perfetto_cc_proto_library(
2926 name = "protos_perfetto_trace_interned_data_lite",
2927 deps = [
2928 ":protos_perfetto_trace_interned_data_protos",
2929 ],
2930)
2931
2932# GN target: //protos/perfetto/trace/interned_data:zero
2933perfetto_proto_library(
2934 name = "protos_perfetto_trace_interned_data_protos",
2935 srcs = [
2936 "protos/perfetto/trace/interned_data/interned_data.proto",
2937 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002938 visibility = [
2939 PERFETTO_CONFIG.proto_library_visibility,
2940 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002941 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07002942 ":protos_perfetto_common_protos",
2943 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002944 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002945 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002946 ],
2947)
2948
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002949# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002950perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002951 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002952 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01002953 ":protos_perfetto_common_zero",
2954 ":protos_perfetto_trace_gpu_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002955 ":protos_perfetto_trace_interned_data_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01002956 ":protos_perfetto_trace_profiling_zero",
2957 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002958 ],
2959)
2960
2961# GN target: //protos/perfetto/trace:merged_trace
2962perfetto_cc_proto_library(
2963 name = "protos_perfetto_trace_merged_trace",
2964 deps = [
2965 ":protos_perfetto_trace_merged_trace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002966 ],
2967)
2968
Lalit Magantic3187f82019-09-20 14:51:11 +01002969# GN target: //protos/perfetto/trace:merged_trace
2970perfetto_proto_library(
2971 name = "protos_perfetto_trace_merged_trace_protos",
2972 srcs = [
2973 "protos/perfetto/trace/perfetto_trace.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002974 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002975 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002976)
2977
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002978# GN target: //protos/perfetto/trace:minimal_lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002979perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002980 name = "protos_perfetto_trace_minimal_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002981 deps = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002982 ":protos_perfetto_trace_minimal_protos",
2983 ],
2984)
2985
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002986# GN target: //protos/perfetto/trace:minimal_zero
2987perfetto_proto_library(
2988 name = "protos_perfetto_trace_minimal_protos",
2989 srcs = [
2990 "protos/perfetto/trace/clock_snapshot.proto",
2991 "protos/perfetto/trace/system_info.proto",
2992 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002993 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002994 visibility = [
2995 PERFETTO_CONFIG.proto_library_visibility,
2996 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002997 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002998 ":protos_perfetto_common_protos",
2999 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003000 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003001 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003002 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003003 ":protos_perfetto_config_interceptors_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003004 ":protos_perfetto_config_power_protos",
3005 ":protos_perfetto_config_process_stats_protos",
3006 ":protos_perfetto_config_profiling_protos",
3007 ":protos_perfetto_config_protos",
3008 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003009 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003010 ],
3011)
3012
3013# GN target: //protos/perfetto/trace:minimal_zero
3014perfetto_cc_protozero_library(
3015 name = "protos_perfetto_trace_minimal_zero",
3016 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003017 ":protos_perfetto_common_zero",
3018 ":protos_perfetto_config_android_zero",
3019 ":protos_perfetto_config_ftrace_zero",
3020 ":protos_perfetto_config_gpu_zero",
3021 ":protos_perfetto_config_inode_file_zero",
3022 ":protos_perfetto_config_interceptors_zero",
3023 ":protos_perfetto_config_power_zero",
3024 ":protos_perfetto_config_process_stats_zero",
3025 ":protos_perfetto_config_profiling_zero",
3026 ":protos_perfetto_config_sys_stats_zero",
3027 ":protos_perfetto_config_track_event_zero",
3028 ":protos_perfetto_config_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003029 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003030 ],
3031)
3032
3033# GN target: //protos/perfetto/trace:non_minimal_lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003034perfetto_cc_proto_library(
3035 name = "protos_perfetto_trace_non_minimal_lite",
3036 deps = [
3037 ":protos_perfetto_trace_non_minimal_protos",
3038 ],
3039)
3040
3041# GN target: //protos/perfetto/trace:non_minimal_zero
Primiano Tucci1d409982019-09-19 10:15:18 +01003042perfetto_proto_library(
3043 name = "protos_perfetto_trace_non_minimal_protos",
3044 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01003045 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02003046 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003047 "protos/perfetto/trace/test_event.proto",
Alexander Timin129bdcf2021-04-16 11:36:37 +00003048 "protos/perfetto/trace/test_extensions.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003049 "protos/perfetto/trace/trace.proto",
3050 "protos/perfetto/trace/trace_packet.proto",
3051 "protos/perfetto/trace/trace_packet_defaults.proto",
Lalit Maganti8532fc92021-03-30 15:48:15 +01003052 "protos/perfetto/trace/ui_state.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01003053 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00003054 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01003055 deps = [
3056 ":protos_perfetto_common_protos",
3057 ":protos_perfetto_config_android_protos",
3058 ":protos_perfetto_config_ftrace_protos",
3059 ":protos_perfetto_config_gpu_protos",
3060 ":protos_perfetto_config_inode_file_protos",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003061 ":protos_perfetto_config_interceptors_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003062 ":protos_perfetto_config_power_protos",
3063 ":protos_perfetto_config_process_stats_protos",
3064 ":protos_perfetto_config_profiling_protos",
3065 ":protos_perfetto_config_protos",
3066 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003067 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003068 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003069 ":protos_perfetto_trace_chrome_protos",
3070 ":protos_perfetto_trace_filesystem_protos",
3071 ":protos_perfetto_trace_ftrace_protos",
3072 ":protos_perfetto_trace_gpu_protos",
3073 ":protos_perfetto_trace_interned_data_protos",
3074 ":protos_perfetto_trace_minimal_protos",
3075 ":protos_perfetto_trace_perfetto_protos",
3076 ":protos_perfetto_trace_power_protos",
3077 ":protos_perfetto_trace_profiling_protos",
3078 ":protos_perfetto_trace_ps_protos",
3079 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01003080 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01003081 ":protos_perfetto_trace_track_event_protos",
3082 ],
3083)
3084
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003085# GN target: //protos/perfetto/trace:non_minimal_zero
3086perfetto_cc_protozero_library(
3087 name = "protos_perfetto_trace_non_minimal_zero",
3088 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003089 ":protos_perfetto_common_zero",
3090 ":protos_perfetto_config_android_zero",
3091 ":protos_perfetto_config_ftrace_zero",
3092 ":protos_perfetto_config_gpu_zero",
3093 ":protos_perfetto_config_inode_file_zero",
3094 ":protos_perfetto_config_interceptors_zero",
3095 ":protos_perfetto_config_power_zero",
3096 ":protos_perfetto_config_process_stats_zero",
3097 ":protos_perfetto_config_profiling_zero",
3098 ":protos_perfetto_config_sys_stats_zero",
3099 ":protos_perfetto_config_track_event_zero",
3100 ":protos_perfetto_config_zero",
3101 ":protos_perfetto_trace_android_zero",
3102 ":protos_perfetto_trace_chrome_zero",
3103 ":protos_perfetto_trace_filesystem_zero",
3104 ":protos_perfetto_trace_ftrace_zero",
3105 ":protos_perfetto_trace_gpu_zero",
3106 ":protos_perfetto_trace_interned_data_zero",
3107 ":protos_perfetto_trace_minimal_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003108 ":protos_perfetto_trace_non_minimal_protos",
Lalit Maganti25b59732021-04-20 16:18:32 +01003109 ":protos_perfetto_trace_perfetto_zero",
3110 ":protos_perfetto_trace_power_zero",
3111 ":protos_perfetto_trace_profiling_zero",
3112 ":protos_perfetto_trace_ps_zero",
3113 ":protos_perfetto_trace_sys_stats_zero",
3114 ":protos_perfetto_trace_system_info_zero",
3115 ":protos_perfetto_trace_track_event_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003116 ],
3117)
3118
3119# GN target: //protos/perfetto/trace/perfetto:lite
3120perfetto_cc_proto_library(
3121 name = "protos_perfetto_trace_perfetto_lite",
3122 deps = [
3123 ":protos_perfetto_trace_perfetto_protos",
3124 ],
3125)
3126
3127# GN target: //protos/perfetto/trace/perfetto:zero
3128perfetto_proto_library(
3129 name = "protos_perfetto_trace_perfetto_protos",
3130 srcs = [
3131 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01003132 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003133 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003134 visibility = [
3135 PERFETTO_CONFIG.proto_library_visibility,
3136 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003137)
3138
3139# GN target: //protos/perfetto/trace/perfetto:zero
3140perfetto_cc_protozero_library(
3141 name = "protos_perfetto_trace_perfetto_zero",
3142 deps = [
3143 ":protos_perfetto_trace_perfetto_protos",
3144 ],
3145)
3146
3147# GN target: //protos/perfetto/trace/power:lite
3148perfetto_cc_proto_library(
3149 name = "protos_perfetto_trace_power_lite",
3150 deps = [
3151 ":protos_perfetto_trace_power_protos",
3152 ],
3153)
3154
3155# GN target: //protos/perfetto/trace/power:zero
3156perfetto_proto_library(
3157 name = "protos_perfetto_trace_power_protos",
3158 srcs = [
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003159 "protos/perfetto/trace/power/android_energy_estimation_breakdown.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003160 "protos/perfetto/trace/power/battery_counters.proto",
3161 "protos/perfetto/trace/power/power_rails.proto",
3162 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003163 visibility = [
3164 PERFETTO_CONFIG.proto_library_visibility,
3165 ],
Raymond Chiu64b2fe52021-02-01 15:46:44 -08003166 deps = [
3167 ":protos_perfetto_common_protos",
3168 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003169)
3170
3171# GN target: //protos/perfetto/trace/power:zero
3172perfetto_cc_protozero_library(
3173 name = "protos_perfetto_trace_power_zero",
3174 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003175 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003176 ":protos_perfetto_trace_power_protos",
3177 ],
3178)
3179
3180# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3181perfetto_proto_library(
3182 name = "protos_perfetto_trace_processor_metrics_impl_protos",
3183 srcs = [
3184 "protos/perfetto/trace_processor/metrics_impl.proto",
3185 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003186 visibility = [
3187 PERFETTO_CONFIG.proto_library_visibility,
3188 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003189)
3190
3191# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
3192perfetto_cc_protozero_library(
3193 name = "protos_perfetto_trace_processor_metrics_impl_zero",
3194 deps = [
3195 ":protos_perfetto_trace_processor_metrics_impl_protos",
3196 ],
3197)
3198
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003199# GN target: //protos/perfetto/trace_processor:zero
3200perfetto_proto_library(
3201 name = "protos_perfetto_trace_processor_protos",
3202 srcs = [
3203 "protos/perfetto/trace_processor/trace_processor.proto",
3204 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003205 visibility = [
3206 PERFETTO_CONFIG.proto_library_visibility,
3207 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04003208 deps = [
3209 ":protos_perfetto_common_protos",
3210 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003211)
3212
3213# GN target: //protos/perfetto/trace_processor:zero
3214perfetto_cc_protozero_library(
3215 name = "protos_perfetto_trace_processor_zero",
3216 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003217 ":protos_perfetto_common_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003218 ":protos_perfetto_trace_processor_protos",
3219 ],
3220)
3221
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003222# GN target: //protos/perfetto/trace/profiling:lite
3223perfetto_cc_proto_library(
3224 name = "protos_perfetto_trace_profiling_lite",
3225 deps = [
3226 ":protos_perfetto_trace_profiling_protos",
3227 ],
3228)
3229
3230# GN target: //protos/perfetto/trace/profiling:zero
3231perfetto_proto_library(
3232 name = "protos_perfetto_trace_profiling_protos",
3233 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01003234 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003235 "protos/perfetto/trace/profiling/heap_graph.proto",
3236 "protos/perfetto/trace/profiling/profile_common.proto",
3237 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02003238 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003239 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003240 visibility = [
3241 PERFETTO_CONFIG.proto_library_visibility,
3242 ],
Ryan Savitski45517322021-03-09 16:38:19 +00003243 deps = [
3244 ":protos_perfetto_common_protos",
3245 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003246)
3247
3248# GN target: //protos/perfetto/trace/profiling:zero
3249perfetto_cc_protozero_library(
3250 name = "protos_perfetto_trace_profiling_zero",
3251 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003252 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003253 ":protos_perfetto_trace_profiling_protos",
3254 ],
3255)
3256
Lalit Maganti9c2318c2021-05-20 16:21:41 +01003257# GN target: //protos/perfetto/trace:descriptor
3258perfetto_proto_library(
3259 name = "protos_perfetto_trace_protos",
3260 srcs = [
3261 "protos/perfetto/trace/trace.proto",
3262 ],
3263 visibility = [
3264 PERFETTO_CONFIG.proto_library_visibility,
3265 ],
3266 deps = [
3267 ":protos_perfetto_common_protos",
3268 ":protos_perfetto_config_android_protos",
3269 ":protos_perfetto_config_ftrace_protos",
3270 ":protos_perfetto_config_gpu_protos",
3271 ":protos_perfetto_config_inode_file_protos",
3272 ":protos_perfetto_config_interceptors_protos",
3273 ":protos_perfetto_config_power_protos",
3274 ":protos_perfetto_config_process_stats_protos",
3275 ":protos_perfetto_config_profiling_protos",
3276 ":protos_perfetto_config_protos",
3277 ":protos_perfetto_config_sys_stats_protos",
3278 ":protos_perfetto_config_track_event_protos",
3279 ":protos_perfetto_trace_android_protos",
3280 ":protos_perfetto_trace_chrome_protos",
3281 ":protos_perfetto_trace_filesystem_protos",
3282 ":protos_perfetto_trace_ftrace_protos",
3283 ":protos_perfetto_trace_gpu_protos",
3284 ":protos_perfetto_trace_interned_data_protos",
3285 ":protos_perfetto_trace_minimal_protos",
3286 ":protos_perfetto_trace_non_minimal_protos",
3287 ":protos_perfetto_trace_perfetto_protos",
3288 ":protos_perfetto_trace_power_protos",
3289 ":protos_perfetto_trace_profiling_protos",
3290 ":protos_perfetto_trace_ps_protos",
3291 ":protos_perfetto_trace_sys_stats_protos",
3292 ":protos_perfetto_trace_system_info_protos",
3293 ":protos_perfetto_trace_track_event_protos",
3294 ],
3295)
3296
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003297# GN target: //protos/perfetto/trace/ps:lite
3298perfetto_cc_proto_library(
3299 name = "protos_perfetto_trace_ps_lite",
3300 deps = [
3301 ":protos_perfetto_trace_ps_protos",
3302 ],
3303)
3304
3305# GN target: //protos/perfetto/trace/ps:zero
3306perfetto_proto_library(
3307 name = "protos_perfetto_trace_ps_protos",
3308 srcs = [
3309 "protos/perfetto/trace/ps/process_stats.proto",
3310 "protos/perfetto/trace/ps/process_tree.proto",
3311 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003312 visibility = [
3313 PERFETTO_CONFIG.proto_library_visibility,
3314 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003315)
3316
3317# GN target: //protos/perfetto/trace/ps:zero
3318perfetto_cc_protozero_library(
3319 name = "protos_perfetto_trace_ps_zero",
3320 deps = [
3321 ":protos_perfetto_trace_ps_protos",
3322 ],
3323)
3324
3325# GN target: //protos/perfetto/trace/sys_stats:lite
3326perfetto_cc_proto_library(
3327 name = "protos_perfetto_trace_sys_stats_lite",
3328 deps = [
3329 ":protos_perfetto_trace_sys_stats_protos",
3330 ],
3331)
3332
3333# GN target: //protos/perfetto/trace/sys_stats:zero
3334perfetto_proto_library(
3335 name = "protos_perfetto_trace_sys_stats_protos",
3336 srcs = [
3337 "protos/perfetto/trace/sys_stats/sys_stats.proto",
3338 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003339 visibility = [
3340 PERFETTO_CONFIG.proto_library_visibility,
3341 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003342 deps = [
3343 ":protos_perfetto_common_protos",
3344 ],
3345)
3346
3347# GN target: //protos/perfetto/trace/sys_stats:zero
3348perfetto_cc_protozero_library(
3349 name = "protos_perfetto_trace_sys_stats_zero",
3350 deps = [
Lalit Maganti25b59732021-04-20 16:18:32 +01003351 ":protos_perfetto_common_zero",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003352 ":protos_perfetto_trace_sys_stats_protos",
3353 ],
3354)
3355
Rafal Slawikb013a112020-04-03 16:12:02 +01003356# GN target: //protos/perfetto/trace/system_info:lite
3357perfetto_cc_proto_library(
3358 name = "protos_perfetto_trace_system_info_lite",
3359 deps = [
3360 ":protos_perfetto_trace_system_info_protos",
3361 ],
3362)
3363
3364# GN target: //protos/perfetto/trace/system_info:zero
3365perfetto_proto_library(
3366 name = "protos_perfetto_trace_system_info_protos",
3367 srcs = [
3368 "protos/perfetto/trace/system_info/cpu_info.proto",
3369 ],
3370 visibility = [
3371 PERFETTO_CONFIG.proto_library_visibility,
3372 ],
3373)
3374
3375# GN target: //protos/perfetto/trace/system_info:zero
3376perfetto_cc_protozero_library(
3377 name = "protos_perfetto_trace_system_info_zero",
3378 deps = [
3379 ":protos_perfetto_trace_system_info_protos",
3380 ],
3381)
3382
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003383# GN target: //protos/perfetto/trace/track_event:cpp
3384perfetto_cc_protocpp_library(
3385 name = "protos_perfetto_trace_track_event_cpp",
3386 deps = [
3387 ":protos_perfetto_trace_track_event_protos",
3388 ],
3389)
3390
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003391# GN target: //protos/perfetto/trace/track_event:lite
3392perfetto_cc_proto_library(
3393 name = "protos_perfetto_trace_track_event_lite",
3394 deps = [
3395 ":protos_perfetto_trace_track_event_protos",
3396 ],
3397)
3398
3399# GN target: //protos/perfetto/trace/track_event:zero
3400perfetto_proto_library(
3401 name = "protos_perfetto_trace_track_event_protos",
3402 srcs = [
Salvador Guerrero6ae1db82020-11-06 12:06:03 -08003403 "protos/perfetto/trace/track_event/chrome_application_state_info.proto",
Stephen Nusko3db31c82019-11-27 16:32:01 +00003404 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Salvador Guerreroec21ade2021-01-19 13:10:29 -08003405 "protos/perfetto/trace/track_event/chrome_content_settings_event_info.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04003406 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08003407 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003408 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00003409 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003410 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Oystein Eftevaag324adbb2020-09-22 09:33:05 -07003411 "protos/perfetto/trace/track_event/chrome_message_pump.proto",
ssid77ab7cf2020-10-05 11:18:48 -07003412 "protos/perfetto/trace/track_event/chrome_mojo_event_info.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003413 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
Dan Elphick39689022020-10-13 17:30:16 +01003414 "protos/perfetto/trace/track_event/chrome_renderer_scheduler_state.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00003415 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00003416 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Salvador Guerrerocd1c7642020-10-15 11:42:25 -07003417 "protos/perfetto/trace/track_event/chrome_window_handle_event_info.proto",
Eric Seckler39559492020-03-03 18:04:25 +00003418 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003419 "protos/perfetto/trace/track_event/debug_annotation.proto",
3420 "protos/perfetto/trace/track_event/log_message.proto",
3421 "protos/perfetto/trace/track_event/process_descriptor.proto",
3422 "protos/perfetto/trace/track_event/source_location.proto",
3423 "protos/perfetto/trace/track_event/task_execution.proto",
3424 "protos/perfetto/trace/track_event/thread_descriptor.proto",
3425 "protos/perfetto/trace/track_event/track_descriptor.proto",
3426 "protos/perfetto/trace/track_event/track_event.proto",
3427 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003428 visibility = [
3429 PERFETTO_CONFIG.proto_library_visibility,
3430 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003431)
3432
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003433# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3434perfetto_proto_descriptor(
3435 name = "protos_perfetto_trace_track_event_track_event_descriptor",
3436 deps = [
3437 ":protos_perfetto_trace_track_event_track_event_protos",
3438 ],
3439 outs = [
3440 "protos_perfetto_trace_track_event_track_event_descriptor.bin",
3441 ],
3442)
3443
3444# GN target: //protos/perfetto/trace/track_event:track_event_descriptor
3445perfetto_proto_library(
3446 name = "protos_perfetto_trace_track_event_track_event_protos",
3447 srcs = [
3448 "protos/perfetto/trace/track_event/track_event.proto",
3449 ],
3450 visibility = [
3451 PERFETTO_CONFIG.proto_library_visibility,
3452 ],
3453 deps = [
3454 ":protos_perfetto_trace_track_event_protos",
3455 ],
3456)
3457
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003458# GN target: //protos/perfetto/trace/track_event:zero
3459perfetto_cc_protozero_library(
3460 name = "protos_perfetto_trace_track_event_zero",
3461 deps = [
3462 ":protos_perfetto_trace_track_event_protos",
3463 ],
3464)
3465
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003466# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3467perfetto_proto_descriptor(
3468 name = "protos_third_party_chromium_chrome_track_event_descriptor",
3469 deps = [
3470 ":protos_third_party_chromium_chrome_track_event_protos",
3471 ],
3472 outs = [
3473 "protos_third_party_chromium_chrome_track_event_descriptor.bin",
3474 ],
3475)
3476
3477# GN target: //protos/third_party/chromium:chrome_track_event_descriptor
3478perfetto_proto_library(
3479 name = "protos_third_party_chromium_chrome_track_event_protos",
3480 srcs = [
3481 "protos/third_party/chromium/chrome_track_event.proto",
3482 ],
3483 visibility = [
3484 PERFETTO_CONFIG.proto_library_visibility,
3485 ],
3486 deps = [
3487 ":protos_perfetto_trace_track_event_protos",
3488 ],
3489)
3490
ssid3d81d4d2021-06-21 16:08:02 -07003491# GN target: //protos/third_party/chromium:lite
3492perfetto_cc_proto_library(
3493 name = "protos_third_party_chromium_lite",
3494 deps = [
3495 ":protos_third_party_chromium_protos",
3496 ],
3497)
3498
3499# GN target: //protos/third_party/chromium:lite
3500perfetto_proto_library(
3501 name = "protos_third_party_chromium_protos",
3502 srcs = [
3503 "protos/third_party/chromium/chrome_track_event.proto",
3504 ],
3505 visibility = PERFETTO_CONFIG.public_visibility,
3506 deps = [
3507 ":protos_perfetto_trace_track_event_protos",
3508 ],
3509)
3510
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003511# GN target: //protos/third_party/pprof:zero
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003512perfetto_proto_library(
3513 name = "protos_third_party_pprof_protos",
3514 srcs = [
3515 "protos/third_party/pprof/profile.proto",
3516 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003517 visibility = [
3518 PERFETTO_CONFIG.proto_library_visibility,
3519 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003520)
3521
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003522# GN target: //protos/third_party/pprof:zero
3523perfetto_cc_protozero_library(
3524 name = "protos_third_party_pprof_zero",
3525 deps = [
3526 ":protos_third_party_pprof_protos",
3527 ],
3528)
3529
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003530# GN target: //src/perfetto_cmd:protos
Hector Dearman040f9582019-12-03 18:06:33 +00003531perfetto_cc_protocpp_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003532 name = "src_perfetto_cmd_protos",
3533 deps = [
3534 ":src_perfetto_cmd_protos_protos",
3535 ],
3536)
3537
3538# GN target: //src/perfetto_cmd:protos
3539perfetto_proto_library(
3540 name = "src_perfetto_cmd_protos_protos",
3541 srcs = [
3542 "src/perfetto_cmd/perfetto_cmd_state.proto",
3543 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00003544 visibility = [
3545 PERFETTO_CONFIG.proto_library_visibility,
3546 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003547)
3548
Primiano Tucci1d409982019-09-19 10:15:18 +01003549# ##############################################################################
3550# Public targets
3551# ##############################################################################
3552
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003553# GN target: //:libperfetto_client_experimental
3554perfetto_cc_library(
3555 name = "libperfetto_client_experimental",
3556 srcs = [
Lalit Magantiea7631b2021-01-13 12:33:55 +00003557 ":src_android_stats_android_stats",
3558 ":src_android_stats_perfetto_atoms",
Primiano Tuccif18ab812021-05-14 23:01:19 +01003559 ":src_protozero_filtering_bytecode_common",
3560 ":src_protozero_filtering_bytecode_parser",
3561 ":src_protozero_filtering_message_filter",
Primiano Tucci3feec552020-02-04 11:14:42 +00003562 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003563 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003564 ":src_tracing_core_core",
3565 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00003566 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003567 ":src_tracing_ipc_common",
3568 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003569 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003570 ":src_tracing_ipc_producer_producer",
3571 ":src_tracing_ipc_service_service",
Primiano Tucci10c9e9e2021-01-08 13:04:40 +01003572 ":src_tracing_platform_impl",
Primiano Tucci3feec552020-02-04 11:14:42 +00003573 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003574 ],
3575 hdrs = [
3576 ":include_perfetto_base_base",
3577 ":include_perfetto_ext_base_base",
3578 ":include_perfetto_ext_ipc_ipc",
3579 ":include_perfetto_ext_tracing_core_core",
3580 ":include_perfetto_ext_tracing_ipc_ipc",
3581 ":include_perfetto_protozero_protozero",
3582 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003583 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003584 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00003585 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003586 ],
3587 visibility = [
3588 "//visibility:public",
3589 ],
3590 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003591 ":perfetto_ipc",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003592 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003593 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003594 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003595 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003596 ":protos_perfetto_config_cpp",
3597 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003598 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003599 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003600 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003601 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003602 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003603 ":protos_perfetto_config_interceptors_cpp",
3604 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003605 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003606 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003607 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003608 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003609 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003610 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01003611 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003612 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003613 ":protos_perfetto_config_track_event_cpp",
3614 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003615 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003616 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003617 ":protos_perfetto_ipc_ipc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003618 ":protos_perfetto_trace_android_zero",
3619 ":protos_perfetto_trace_chrome_zero",
3620 ":protos_perfetto_trace_filesystem_zero",
3621 ":protos_perfetto_trace_ftrace_zero",
3622 ":protos_perfetto_trace_gpu_zero",
3623 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003624 ":protos_perfetto_trace_minimal_zero",
3625 ":protos_perfetto_trace_non_minimal_zero",
3626 ":protos_perfetto_trace_perfetto_zero",
3627 ":protos_perfetto_trace_power_zero",
3628 ":protos_perfetto_trace_profiling_zero",
3629 ":protos_perfetto_trace_ps_zero",
3630 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003631 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003632 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003633 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003634 ":protozero",
3635 ":src_base_base",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003636 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003637 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07003638)
3639
Primiano Tucci1d409982019-09-19 10:15:18 +01003640# GN target: //src/perfetto_cmd:perfetto
3641perfetto_cc_binary(
3642 name = "perfetto",
3643 srcs = [
3644 ":include_perfetto_base_base",
3645 ":include_perfetto_ext_base_base",
3646 ":include_perfetto_ext_ipc_ipc",
3647 ":include_perfetto_ext_traced_traced",
3648 ":include_perfetto_ext_tracing_core_core",
3649 ":include_perfetto_ext_tracing_ipc_ipc",
3650 ":include_perfetto_protozero_protozero",
3651 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00003652 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01003653 ":include_perfetto_tracing_tracing",
Lalit Magantif2d81b72020-12-11 01:53:29 +00003654 ":src_android_stats_android_stats",
Lalit Magantid37172d2020-12-10 19:30:05 +00003655 ":src_android_stats_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01003656 ":src_perfetto_cmd_perfetto_cmd",
3657 ":src_perfetto_cmd_trigger_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003658 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003659 ":src_tracing_core_core",
3660 ":src_tracing_ipc_common",
3661 ":src_tracing_ipc_consumer_consumer",
Primiano Tucci8761a312021-11-25 17:17:23 +00003662 ":src_tracing_ipc_default_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00003663 ":src_tracing_ipc_producer_producer",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003664 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003665 ],
3666 visibility = [
3667 "//visibility:public",
3668 ],
3669 deps = [
Primiano Tucci916f4e52020-10-16 20:40:33 +02003670 ":perfetto_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003671 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003672 ":protos_perfetto_common_zero",
3673 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003674 ":protos_perfetto_config_android_zero",
3675 ":protos_perfetto_config_cpp",
3676 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003677 ":protos_perfetto_config_ftrace_zero",
3678 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003679 ":protos_perfetto_config_gpu_zero",
3680 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003681 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003682 ":protos_perfetto_config_interceptors_cpp",
3683 ":protos_perfetto_config_interceptors_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003684 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003685 ":protos_perfetto_config_power_zero",
3686 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003687 ":protos_perfetto_config_process_stats_zero",
3688 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003689 ":protos_perfetto_config_profiling_zero",
3690 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003691 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003692 ":protos_perfetto_config_track_event_cpp",
3693 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003694 ":protos_perfetto_config_zero",
3695 ":protos_perfetto_ipc_cpp",
3696 ":protos_perfetto_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003697 ":protos_perfetto_trace_android_zero",
3698 ":protos_perfetto_trace_chrome_zero",
3699 ":protos_perfetto_trace_filesystem_zero",
3700 ":protos_perfetto_trace_ftrace_zero",
3701 ":protos_perfetto_trace_gpu_zero",
3702 ":protos_perfetto_trace_interned_data_zero",
3703 ":protos_perfetto_trace_minimal_zero",
3704 ":protos_perfetto_trace_non_minimal_zero",
3705 ":protos_perfetto_trace_perfetto_zero",
3706 ":protos_perfetto_trace_power_zero",
3707 ":protos_perfetto_trace_profiling_zero",
3708 ":protos_perfetto_trace_ps_zero",
3709 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003710 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01003711 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003712 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003713 ":protozero",
3714 ":src_base_base",
Lalit Maganti2939c082021-03-11 17:25:44 +00003715 ":src_perfetto_cmd_gen_cc_config_descriptor",
Primiano Tuccie8020f92019-11-26 13:24:01 +00003716 ":src_perfetto_cmd_protos",
3717 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01003718)
3719
3720# GN target: //src/trace_processor:trace_processor
3721perfetto_cc_library(
3722 name = "trace_processor",
3723 srcs = [
Lalit Maganti97d7d472020-04-07 18:49:17 +01003724 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003725 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003726 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003727 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003728 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003729 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003730 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003731 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003732 ":src_trace_processor_metrics_metrics",
Primiano Tucci1d409982019-09-19 10:15:18 +01003733 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003734 ":src_trace_processor_storage_full",
3735 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003736 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003737 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003738 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003739 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003740 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003741 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003742 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003743 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003744 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003745 ],
3746 hdrs = [
3747 ":include_perfetto_base_base",
3748 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003749 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003750 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003751 ":include_perfetto_ext_traced_sys_stats_counters",
Eric Secklera7870e62019-11-01 10:11:58 +00003752 ":include_perfetto_trace_processor_basic_types",
3753 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003754 ":include_perfetto_trace_processor_trace_processor",
3755 ],
3756 visibility = [
3757 "//visibility:public",
3758 ],
3759 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003760 ":protos_perfetto_common_zero",
3761 ":protos_perfetto_config_android_zero",
3762 ":protos_perfetto_config_ftrace_zero",
3763 ":protos_perfetto_config_gpu_zero",
3764 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003765 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003766 ":protos_perfetto_config_power_zero",
3767 ":protos_perfetto_config_process_stats_zero",
3768 ":protos_perfetto_config_profiling_zero",
3769 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003770 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003771 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003772 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003773 ":protos_perfetto_trace_chrome_zero",
3774 ":protos_perfetto_trace_filesystem_zero",
3775 ":protos_perfetto_trace_ftrace_zero",
3776 ":protos_perfetto_trace_gpu_zero",
3777 ":protos_perfetto_trace_interned_data_zero",
3778 ":protos_perfetto_trace_minimal_zero",
3779 ":protos_perfetto_trace_non_minimal_zero",
3780 ":protos_perfetto_trace_perfetto_zero",
3781 ":protos_perfetto_trace_power_zero",
3782 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003783 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003784 ":protos_perfetto_trace_profiling_zero",
3785 ":protos_perfetto_trace_ps_zero",
3786 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003787 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003788 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003789 ":protozero",
3790 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01003791 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003792 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003793 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003794 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003795 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003796 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003797 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003798 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003799 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3800 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003801 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003802 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003803 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003804)
3805
3806# GN target: //src/trace_processor:trace_processor_shell
3807perfetto_cc_binary(
3808 name = "trace_processor_shell",
3809 srcs = [
3810 ":include_perfetto_base_base",
3811 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003812 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003813 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Primiano Tucci1d409982019-09-19 10:15:18 +01003814 ":include_perfetto_ext_traced_sys_stats_counters",
3815 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003816 ":include_perfetto_trace_processor_basic_types",
3817 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003818 ":include_perfetto_trace_processor_trace_processor",
Florian Mayerf4255a42020-12-14 19:12:34 +00003819 ":src_profiling_deobfuscator",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003820 ":src_profiling_symbolizer_symbolize_database",
3821 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7d4b92b2021-05-20 17:16:51 +01003822 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003823 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003824 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00003825 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003826 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01003827 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003828 ":src_trace_processor_importers_memory_tracker_graph_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003829 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003830 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00003831 ":src_trace_processor_metrics_metrics",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003832 ":src_trace_processor_rpc_httpd",
3833 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003834 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003835 ":src_trace_processor_storage_full",
3836 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003837 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003838 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003839 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003840 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01003841 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00003842 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00003843 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04003844 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01003845 ":src_trace_processor_util_util",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003846 "src/trace_processor/trace_processor_shell.cc",
3847 "src/trace_processor/util/proto_to_json.cc",
3848 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003849 ],
3850 visibility = [
3851 "//visibility:public",
3852 ],
3853 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003854 ":protos_perfetto_common_zero",
3855 ":protos_perfetto_config_android_zero",
3856 ":protos_perfetto_config_ftrace_zero",
3857 ":protos_perfetto_config_gpu_zero",
3858 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003859 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003860 ":protos_perfetto_config_power_zero",
3861 ":protos_perfetto_config_process_stats_zero",
3862 ":protos_perfetto_config_profiling_zero",
3863 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003864 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003865 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003866 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003867 ":protos_perfetto_trace_chrome_zero",
3868 ":protos_perfetto_trace_filesystem_zero",
3869 ":protos_perfetto_trace_ftrace_zero",
3870 ":protos_perfetto_trace_gpu_zero",
3871 ":protos_perfetto_trace_interned_data_zero",
3872 ":protos_perfetto_trace_minimal_zero",
3873 ":protos_perfetto_trace_non_minimal_zero",
3874 ":protos_perfetto_trace_perfetto_zero",
3875 ":protos_perfetto_trace_power_zero",
3876 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003877 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003878 ":protos_perfetto_trace_profiling_zero",
3879 ":protos_perfetto_trace_ps_zero",
3880 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003881 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003882 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02003883 ":protozero",
3884 ":src_base_base",
Primiano Tucci44a15be2021-11-06 21:40:18 +00003885 ":src_base_http_http",
Ryan7ad6b7d2021-04-22 17:03:54 +01003886 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00003887 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01003888 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00003889 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003890 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003891 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003892 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003893 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003894 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003895 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003896 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3897 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00003898 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003899 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003900)
3901
3902# GN target: //src/traced/probes:traced_probes
3903perfetto_cc_binary(
3904 name = "traced_probes",
3905 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003906 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003907 "src/traced/probes/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003908 ],
3909 visibility = [
3910 "//visibility:public",
3911 ],
3912 deps = [
3913 ":libperfetto",
3914 ],
3915)
3916
3917# GN target: //src/traced/service:traced
3918perfetto_cc_binary(
3919 name = "traced",
3920 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003921 ":include_perfetto_ext_traced_traced",
Primiano Tucci34bc5592021-02-19 17:53:36 +01003922 "src/traced/service/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003923 ],
3924 visibility = [
3925 "//visibility:public",
3926 ],
3927 deps = [
3928 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003929 ],
3930)
3931
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003932# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003933perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003934 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003935 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003936 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003937 ":src_profiling_symbolizer_symbolize_database",
3938 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003939 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003940 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003941 ],
3942 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003943 ":include_perfetto_base_base",
3944 ":include_perfetto_ext_base_base",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003945 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003946 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003947 ":include_perfetto_trace_processor_basic_types",
3948 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003949 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003950 ],
3951 visibility = [
3952 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003953 ],
3954 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003955 ":protos_perfetto_common_zero",
3956 ":protos_perfetto_config_android_zero",
3957 ":protos_perfetto_config_ftrace_zero",
3958 ":protos_perfetto_config_gpu_zero",
3959 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00003960 ":protos_perfetto_config_interceptors_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003961 ":protos_perfetto_config_power_zero",
3962 ":protos_perfetto_config_process_stats_zero",
3963 ":protos_perfetto_config_profiling_zero",
3964 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003965 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003966 ":protos_perfetto_config_zero",
3967 ":protos_perfetto_trace_android_zero",
3968 ":protos_perfetto_trace_chrome_zero",
3969 ":protos_perfetto_trace_filesystem_zero",
3970 ":protos_perfetto_trace_ftrace_zero",
3971 ":protos_perfetto_trace_gpu_zero",
3972 ":protos_perfetto_trace_interned_data_zero",
3973 ":protos_perfetto_trace_minimal_zero",
3974 ":protos_perfetto_trace_non_minimal_zero",
3975 ":protos_perfetto_trace_perfetto_zero",
3976 ":protos_perfetto_trace_power_zero",
3977 ":protos_perfetto_trace_profiling_zero",
3978 ":protos_perfetto_trace_ps_zero",
3979 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003980 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003981 ":protos_perfetto_trace_track_event_zero",
3982 ":protos_third_party_pprof_zero",
Florian Mayerf4255a42020-12-14 19:12:34 +00003983 ":protozero",
Ryan7ad6b7d2021-04-22 17:03:54 +01003984 ":src_trace_processor_containers_containers",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003985 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003986 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003987)
3988
Lalit Maganti65600342019-09-19 21:35:35 +01003989# GN target: //tools/trace_to_text:trace_to_text
3990perfetto_cc_binary(
3991 name = "trace_to_text",
3992 srcs = [
3993 ":include_perfetto_base_base",
3994 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003995 ":include_perfetto_ext_trace_processor_export_json",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01003996 ":include_perfetto_ext_trace_processor_importers_memory_tracker_memory_tracker",
Lalit Maganti65600342019-09-19 21:35:35 +01003997 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003998 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003999 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00004000 ":include_perfetto_trace_processor_basic_types",
4001 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01004002 ":include_perfetto_trace_processor_trace_processor",
Florian Mayer3be55fb2019-11-22 13:08:47 +00004003 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00004004 ":src_profiling_symbolizer_symbolize_database",
4005 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti7ee64682021-05-20 17:56:09 +01004006 ":src_protozero_proto_ring_buffer",
Lalit Maganti97d7d472020-04-07 18:49:17 +01004007 ":src_trace_processor_analysis_analysis",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004008 ":src_trace_processor_db_db",
Eric Secklera7870e62019-11-01 10:11:58 +00004009 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01004010 ":src_trace_processor_ftrace_descriptors",
Lalit Maganti1534bb72021-04-23 14:11:26 +01004011 ":src_trace_processor_importers_common_common",
Sylwester Blaszczyk76aa7002020-11-27 15:48:21 +01004012 ":src_trace_processor_importers_memory_tracker_graph_processor",
Lalit Maganti65600342019-09-19 21:35:35 +01004013 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01004014 ":src_trace_processor_metatrace",
Lalit Maganti4c328e32021-11-09 19:29:50 +00004015 ":src_trace_processor_metrics_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01004016 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00004017 ":src_trace_processor_storage_full",
4018 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00004019 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01004020 ":src_trace_processor_tables_tables",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00004021 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01004022 ":src_trace_processor_util_descriptors",
Lalit Maganti69216ec2021-05-21 14:10:42 +01004023 ":src_trace_processor_util_gzip",
Alexander Timin97d87852021-05-17 18:01:33 +00004024 ":src_trace_processor_util_interned_message_view",
Alexander Timin5a99b5c2021-05-11 22:48:07 +00004025 ":src_trace_processor_util_proto_to_args_parser",
Deepanjan Roy1e048012020-09-23 12:49:04 -04004026 ":src_trace_processor_util_protozero_to_text",
Lalit Magantie7107402020-04-15 13:41:12 +01004027 ":src_trace_processor_util_util",
Lalit Maganti65600342019-09-19 21:35:35 +01004028 ":tools_trace_to_text_common",
4029 ":tools_trace_to_text_full",
Lalit Maganti65600342019-09-19 21:35:35 +01004030 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01004031 ":tools_trace_to_text_utils",
4032 ],
4033 visibility = [
4034 "//visibility:public",
4035 ],
4036 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01004037 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004038 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004039 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004040 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004041 ":protos_perfetto_config_inode_file_zero",
Sami Kyostiladd1cfd72020-12-14 15:48:25 +00004042 ":protos_perfetto_config_interceptors_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004043 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004044 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004045 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004046 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00004047 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004048 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004049 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004050 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004051 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004052 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004053 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004054 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004055 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004056 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004057 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004058 ":protos_perfetto_trace_power_zero",
4059 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04004060 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004061 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004062 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004063 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01004064 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01004065 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00004066 ":protos_third_party_pprof_zero",
Primiano Tucci916f4e52020-10-16 20:40:33 +02004067 ":protozero",
4068 ":src_base_base",
Ryan7ad6b7d2021-04-22 17:03:54 +01004069 ":src_trace_processor_containers_containers",
Andrew Shulaevba0a5d12021-01-07 08:44:50 +00004070 ":src_trace_processor_importers_gen_cc_chrome_track_event_descriptor",
Hector Dearmana1d75242020-10-02 09:47:24 +01004071 ":src_trace_processor_importers_gen_cc_config_descriptor",
Andrew Shulaeve72d1a32021-01-13 12:59:55 +00004072 ":src_trace_processor_importers_gen_cc_track_event_descriptor",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01004073 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01004074 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti9c2318c2021-05-20 16:21:41 +01004075 ":tools_trace_to_text_gen_cc_trace_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004076 ] + PERFETTO_CONFIG.deps.jsoncpp +
4077 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01004078 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01004079 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
4080 PERFETTO_CONFIG.deps.zlib + [
Lalit Maganti4c328e32021-11-09 19:29:50 +00004081 ":cc_amalgamated_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01004082 ],
4083)
4084
Primiano Tucci1d409982019-09-19 10:15:18 +01004085# Content from BUILD.extras
4086
4087build_config_dir_ = "include/perfetto/base/build_configs/bazel"
4088
4089# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
4090# This is pulled as a default dep by all targets.
Harvey Yang321c4fc2021-10-25 14:11:50 +08004091perfetto_build_config_cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01004092 name = "build_config_hdr",
4093 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
4094 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02004095)
4096
Primiano Tucci1d409982019-09-19 10:15:18 +01004097perfetto_cc_library(
Lalit Maganti4c328e32021-11-09 19:29:50 +00004098 name = "cc_amalgamated_sql_metrics",
4099 hdrs = ["src/trace_processor/metrics/sql/amalgamated_sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02004100)
4101
Primiano Tucci1d409982019-09-19 10:15:18 +01004102perfetto_py_binary(
Lalit Maganti4c328e32021-11-09 19:29:50 +00004103 name = "gen_amalgamated_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004104 srcs = [
Lalit Maganti4c328e32021-11-09 19:29:50 +00004105 "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantiab619fa2019-05-02 12:56:37 +01004106 ],
Lalit Maganti4c328e32021-11-09 19:29:50 +00004107 main = "tools/gen_amalgamated_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01004108 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01004109)
Lalit Maganti65600342019-09-19 21:35:35 +01004110
Lalit Maganti117272f2020-09-11 14:01:18 +01004111perfetto_py_binary(
4112 name = "gen_cc_proto_descriptor_py",
4113 srcs = [
4114 "tools/gen_cc_proto_descriptor.py",
4115 ],
4116 main = "tools/gen_cc_proto_descriptor.py",
4117 python_version = "PY3",
4118)
4119
Lalit Maganti65600342019-09-19 21:35:35 +01004120perfetto_java_proto_library(
4121 name = "protos_perfetto_metrics_java",
4122 deps = [
4123 ":protos_perfetto_metrics_protos",
4124 ],
4125)
4126
4127perfetto_java_proto_library(
4128 name = "protos_perfetto_metrics_android_java",
4129 deps = [
4130 ":protos_perfetto_metrics_android_protos",
4131 ],
4132)
4133
Lalit Magantic3187f82019-09-20 14:51:11 +01004134perfetto_java_proto_library(
4135 name = "protos_perfetto_trace_merged_trace_java",
4136 deps = [
4137 ":protos_perfetto_trace_merged_trace_protos",
4138 ],
4139)
4140
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004141perfetto_java_proto_library(
Hector Dearman41fb1812020-04-29 11:28:09 +01004142 name = "protos_perfetto_config_merged_config_java",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004143 deps = [
Hector Dearman41fb1812020-04-29 11:28:09 +01004144 ":protos_perfetto_config_merged_config_protos",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01004145 ],
4146)
4147
Lalit Maganti46e2bda2020-05-06 12:51:33 +01004148perfetto_java_lite_proto_library(
4149 name = "protos_perfetto_config_merged_config_java_lite",
4150 deps = [
4151 ":protos_perfetto_config_merged_config_protos",
4152 ],
4153)
4154
Lalit Maganti65600342019-09-19 21:35:35 +01004155perfetto_gensignature_internal_only(
4156 name = "trace_processor_sig",
4157 srcs = [
4158 ":trace_processor_shell",
4159 ":trace_to_text",
4160 ],
4161 tags = [
4162 "__TRACE_PROCESSOR_SIG_TAG1",
4163 "__TRACE_PROCESSOR_SIG_TAG2",
4164 ],
4165)
Anindita Ghosh237a7762020-06-30 10:46:52 +00004166
Primiano Tucciec590132020-11-16 14:16:44 +01004167# This is overridden in google internal builds via
4168# PERFETTO_CONFIG.deps.version_header (see perfetto_cfg.bzl).
4169perfetto_cc_library(
4170 name = "cc_perfetto_version_header",
4171 hdrs = ["perfetto_version.gen.h"],
4172)
4173
4174perfetto_py_binary(
4175 name = "gen_version_header_py",
4176 srcs = ["tools/write_version_header.py"],
4177 data = ["CHANGELOG"],
4178 main = "tools/write_version_header.py",
4179 python_version = "PY3",
4180)
4181
Anindita Ghosh237a7762020-06-30 10:46:52 +00004182perfetto_py_binary(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004183 name = "trace_processor_py_example",
4184 srcs = ["src/trace_processor/python/example.py"],
Lalit Maganti471dec32021-08-16 14:38:42 +01004185 deps = [":trace_processor_py"] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti82a2c042020-07-06 13:50:33 +01004186 main = "src/trace_processor/python/example.py",
Anindita Ghosh237a7762020-06-30 10:46:52 +00004187 python_version = "PY3",
4188)
4189
4190perfetto_py_library(
Lalit Maganti82a2c042020-07-06 13:50:33 +01004191 name = "trace_processor_py",
Anindita Ghosh456261f2020-09-07 11:31:24 +01004192 srcs = glob(["src/trace_processor/python/perfetto/trace_processor/*.py"]),
Anindita Ghosh152562f2020-07-08 20:29:56 +00004193 data = [
Anindita Ghosh456261f2020-09-07 11:31:24 +01004194 "src/trace_processor/python/perfetto/trace_processor/trace_processor.descriptor",
4195 "src/trace_processor/python/perfetto/trace_processor/metrics.descriptor",
Anindita Ghosh7887c762020-07-20 16:35:15 +00004196 ":trace_processor_shell",
Lalit Maganti471dec32021-08-16 14:38:42 +01004197 ] + PERFETTO_CONFIG.deps.tp_init_py,
4198 deps = PERFETTO_CONFIG.deps.gfile_py +
4199 PERFETTO_CONFIG.deps.protobuf_py +
4200 PERFETTO_CONFIG.deps.protobuf_descriptor_pb2_py +
4201 PERFETTO_CONFIG.deps.pyglib_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004202 imports = [
4203 "src/trace_processor/python",
4204 ],
Lalit Maganti17a56fe2021-02-19 19:04:07 +00004205 visibility = PERFETTO_CONFIG.public_visibility,
Anindita Ghosh237a7762020-06-30 10:46:52 +00004206)
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004207
4208perfetto_py_library(
4209 name = "experimental_slice_breakdown_lib",
4210 srcs = glob(["tools/slice_breakdown/perfetto/slice_breakdown/*.py"]),
4211 deps = [
4212 ":trace_processor_py",
4213 ],
4214 imports = [
4215 "tools/slice_breakdown",
4216 ],
4217)
4218
4219perfetto_py_binary(
4220 name = "experimental_slice_breakdown_bin",
Lalit Maganti471dec32021-08-16 14:38:42 +01004221 srcs = ["tools/slice_breakdown/main.py"],
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004222 main = "tools/slice_breakdown/main.py",
4223 deps = [
4224 ":experimental_slice_breakdown_lib",
4225 ":trace_processor_py",
Lalit Maganti471dec32021-08-16 14:38:42 +01004226 ] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti3f8fabd2021-08-10 15:57:46 +01004227 python_version = "PY3",
4228 legacy_create_init = 0,
4229)
Lalit Maganti91bb5ca2021-11-05 16:21:45 +00004230
Lalit Magantif1d156f2021-11-30 15:24:35 +00004231perfetto_py_library(
4232 name = "batch_trace_processor",
4233 srcs = glob([
4234 "tools/batch_trace_processor/perfetto/batch_trace_processor/*.py"
4235 ]),
4236 deps = [
4237 ":trace_processor_py",
4238 ] + PERFETTO_CONFIG.deps.pandas_py,
4239 imports = [
4240 "tools/batch_trace_processor",
4241 ],
4242)
4243
Lalit Maganti91bb5ca2021-11-05 16:21:45 +00004244perfetto_py_binary(
4245 name = "batch_trace_processor_shell",
4246 srcs = ["tools/batch_trace_processor/main.py"],
4247 main = "tools/batch_trace_processor/main.py",
4248 deps = [
4249 ":trace_processor_py",
Lalit Magantif1d156f2021-11-30 15:24:35 +00004250 ":batch_trace_processor",
Lalit Maganti91bb5ca2021-11-05 16:21:45 +00004251 ] + PERFETTO_CONFIG.deps.pandas_py,
4252 python_version = "PY3",
4253 legacy_create_init = 0,
4254)