blob: 98399962a92bd38a272e0c5cd6a59fba27956e8b [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",
20 "perfetto_cc_binary",
21 "perfetto_cc_ipc_library",
22 "perfetto_cc_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010023 "perfetto_cc_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010024 "perfetto_cc_proto_library",
Primiano Tucci57dd66b2019-10-15 23:09:04 +010025 "perfetto_cc_protocpp_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010026 "perfetto_cc_protozero_library",
Lalit Maganti65600342019-09-19 21:35:35 +010027 "perfetto_java_proto_library",
Lalit Maganti46e2bda2020-05-06 12:51:33 +010028 "perfetto_java_lite_proto_library",
Primiano Tucci1d409982019-09-19 10:15:18 +010029 "perfetto_proto_library",
Lalit Maganti117272f2020-09-11 14:01:18 +010030 "perfetto_proto_descriptor",
Primiano Tucci1d409982019-09-19 10:15:18 +010031 "perfetto_py_binary",
Anindita Ghosh237a7762020-06-30 10:46:52 +000032 "perfetto_py_library",
Lalit Maganti65600342019-09-19 21:35:35 +010033 "perfetto_gensignature_internal_only",
Primiano Tucci1d409982019-09-19 10:15:18 +010034)
Lalit Maganti279ecde2019-04-01 16:57:12 +010035
Primiano Tucci1d409982019-09-19 10:15:18 +010036package(default_visibility = ["//visibility:private"])
Lalit Maganti279ecde2019-04-01 16:57:12 +010037
Lalit Magantibb037f72019-09-24 16:22:45 +010038licenses(["notice"])
Lalit Maganti65600342019-09-19 21:35:35 +010039
40exports_files(["NOTICE"])
Lalit Magantia48710d2019-09-24 13:10:11 +010041
Primiano Tucci1d409982019-09-19 10:15:18 +010042# ##############################################################################
43# Internal targets
44# ##############################################################################
Lalit Maganti279ecde2019-04-01 16:57:12 +010045
Primiano Tucci1d409982019-09-19 10:15:18 +010046# GN target: //src/ipc/protoc_plugin:ipc_plugin
47perfetto_cc_binary(
48 name = "ipc_plugin",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010049 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010050 "src/ipc/protoc_plugin/ipc_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010051 ":include_perfetto_base_base",
52 ":include_perfetto_ext_base_base",
53 ":src_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +010054 ],
55 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +010056 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +010057)
58
59# GN target: //src/ipc:perfetto_ipc
60perfetto_cc_library(
61 name = "perfetto_ipc",
62 srcs = [
63 ":src_base_base",
64 ":src_base_unix_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +000065 ":src_ipc_client",
66 ":src_ipc_common",
67 ":src_ipc_host",
Primiano Tucci1d409982019-09-19 10:15:18 +010068 ],
69 hdrs = [
70 ":include_perfetto_base_base",
71 ":include_perfetto_ext_base_base",
72 ":include_perfetto_ext_ipc_ipc",
Primiano Tuccie8020f92019-11-26 13:24:01 +000073 ":include_perfetto_protozero_protozero",
Primiano Tucci1d409982019-09-19 10:15:18 +010074 ],
75 deps = [
Primiano Tuccib3e08d02019-11-19 11:10:11 +000076 ":protos_perfetto_ipc_wire_protocol_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +000077 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +000078 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +010079)
80
Primiano Tucci57dd66b2019-10-15 23:09:04 +010081# GN target: //src/protozero/protoc_plugin:cppgen_plugin
82perfetto_cc_binary(
83 name = "cppgen_plugin",
84 srcs = [
85 "src/protozero/protoc_plugin/cppgen_plugin.cc",
86 ":include_perfetto_base_base",
87 ":include_perfetto_ext_base_base",
88 ":src_base_base",
89 ],
90 deps = [
91 ] + PERFETTO_CONFIG.deps.protoc_lib,
92)
93
Primiano Tucci1d409982019-09-19 10:15:18 +010094# GN target: //src/protozero/protoc_plugin:protozero_plugin
95perfetto_cc_binary(
96 name = "protozero_plugin",
97 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +010098 "src/protozero/protoc_plugin/protozero_plugin.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +010099 ":include_perfetto_base_base",
100 ":include_perfetto_ext_base_base",
101 ":src_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100102 ],
103 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +0100104 ] + PERFETTO_CONFIG.deps.protoc_lib,
Primiano Tucci1d409982019-09-19 10:15:18 +0100105)
106
107# GN target: //src/protozero:libprotozero
108perfetto_cc_library(
109 name = "libprotozero",
110 srcs = [
Lalit Magantibc508732019-12-09 13:46:07 +0000111 ":src_base_base",
Primiano Tucci1d409982019-09-19 10:15:18 +0100112 ":src_protozero_protozero",
113 ],
114 hdrs = [
115 ":include_perfetto_base_base",
116 ":include_perfetto_ext_base_base",
117 ":include_perfetto_protozero_protozero",
118 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000119 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100120)
121
Lalit Maganti01deefa2019-12-19 14:20:12 +0000122# GN target: //test:client_api_example
123perfetto_cc_binary(
124 name = "client_api_example",
125 srcs = [
126 "test/client_api_example.cc",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000127 ":include_perfetto_base_base",
128 ":include_perfetto_protozero_protozero",
129 ":include_perfetto_tracing_core_forward_decls",
130 ":include_perfetto_tracing_tracing",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000131 ],
132 deps = [
133 ":libperfetto_client_experimental",
Lalit Magantid6d9b4a2019-12-19 15:11:17 +0000134 ":protos_perfetto_common_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000135 ":protos_perfetto_common_zero",
136 ":protos_perfetto_config_android_zero",
137 ":protos_perfetto_config_ftrace_zero",
138 ":protos_perfetto_config_gpu_zero",
139 ":protos_perfetto_config_inode_file_zero",
140 ":protos_perfetto_config_power_zero",
141 ":protos_perfetto_config_process_stats_zero",
142 ":protos_perfetto_config_profiling_zero",
143 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000144 ":protos_perfetto_config_track_event_cpp",
145 ":protos_perfetto_config_track_event_zero",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000146 ":protos_perfetto_config_zero",
147 ":protos_perfetto_trace_android_zero",
148 ":protos_perfetto_trace_chrome_zero",
149 ":protos_perfetto_trace_filesystem_zero",
150 ":protos_perfetto_trace_ftrace_zero",
151 ":protos_perfetto_trace_gpu_zero",
152 ":protos_perfetto_trace_interned_data_zero",
153 ":protos_perfetto_trace_minimal_zero",
154 ":protos_perfetto_trace_non_minimal_zero",
155 ":protos_perfetto_trace_perfetto_zero",
156 ":protos_perfetto_trace_power_zero",
157 ":protos_perfetto_trace_profiling_zero",
158 ":protos_perfetto_trace_ps_zero",
159 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100160 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100161 ":protos_perfetto_trace_track_event_cpp",
Lalit Maganti01deefa2019-12-19 14:20:12 +0000162 ":protos_perfetto_trace_track_event_zero",
163 ],
164)
165
Primiano Tucci1d409982019-09-19 10:15:18 +0100166# GN target: //:libperfetto
167perfetto_cc_library(
168 name = "libperfetto",
169 srcs = [
170 ":src_android_internal_headers",
171 ":src_android_internal_lazy_library_loader",
172 ":src_base_base",
173 ":src_base_unix_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000174 ":src_ipc_client",
175 ":src_ipc_common",
176 ":src_ipc_host",
Hector Dearman92d7d112019-12-05 15:19:57 +0000177 ":src_perfetto_cmd_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +0100178 ":src_protozero_protozero",
179 ":src_traced_probes_android_log_android_log",
Rafal Slawik8053a682020-04-08 17:26:40 +0100180 ":src_traced_probes_common_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100181 ":src_traced_probes_data_source",
182 ":src_traced_probes_filesystem_filesystem",
183 ":src_traced_probes_ftrace_format_parser",
184 ":src_traced_probes_ftrace_ftrace",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +0100185 ":src_traced_probes_initial_display_state_initial_display_state",
Primiano Tucci1d409982019-09-19 10:15:18 +0100186 ":src_traced_probes_metatrace_metatrace",
187 ":src_traced_probes_packages_list_packages_list",
188 ":src_traced_probes_power_power",
189 ":src_traced_probes_probes",
190 ":src_traced_probes_probes_src",
191 ":src_traced_probes_ps_ps",
192 ":src_traced_probes_sys_stats_sys_stats",
Rafal Slawikb013a112020-04-03 16:12:02 +0100193 ":src_traced_probes_system_info_system_info",
Primiano Tucci1d409982019-09-19 10:15:18 +0100194 ":src_traced_service_service",
195 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000196 ":src_tracing_consumer_api_deprecated_consumer_api_deprecated",
197 ":src_tracing_core_core",
198 ":src_tracing_core_service",
199 ":src_tracing_ipc_common",
200 ":src_tracing_ipc_consumer_consumer",
201 ":src_tracing_ipc_producer_producer",
202 ":src_tracing_ipc_service_service",
Primiano Tucci1d409982019-09-19 10:15:18 +0100203 ],
204 hdrs = [
205 ":include_perfetto_base_base",
206 ":include_perfetto_ext_base_base",
207 ":include_perfetto_ext_ipc_ipc",
208 ":include_perfetto_ext_traced_sys_stats_counters",
209 ":include_perfetto_ext_traced_traced",
210 ":include_perfetto_ext_tracing_core_core",
211 ":include_perfetto_ext_tracing_ipc_ipc",
212 ":include_perfetto_protozero_protozero",
213 ":include_perfetto_public_public",
214 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000215 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +0100216 ":include_perfetto_tracing_tracing",
217 ],
218 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100219 ":protos_perfetto_common_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100220 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100221 ":protos_perfetto_config_android_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100222 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100223 ":protos_perfetto_config_cpp",
224 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100225 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100226 ":protos_perfetto_config_gpu_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100227 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100228 ":protos_perfetto_config_inode_file_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100229 ":protos_perfetto_config_inode_file_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100230 ":protos_perfetto_config_power_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100231 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100232 ":protos_perfetto_config_process_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100233 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100234 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100235 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +0100236 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100237 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +0000238 ":protos_perfetto_config_track_event_cpp",
239 ":protos_perfetto_config_track_event_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100240 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000241 ":protos_perfetto_ipc_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100242 ":protos_perfetto_ipc_ipc",
Primiano Tuccib3e08d02019-11-19 11:10:11 +0000243 ":protos_perfetto_ipc_wire_protocol_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100244 ":protos_perfetto_trace_android_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100245 ":protos_perfetto_trace_chrome_zero",
246 ":protos_perfetto_trace_filesystem_zero",
247 ":protos_perfetto_trace_ftrace_zero",
248 ":protos_perfetto_trace_gpu_zero",
249 ":protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +0100250 ":protos_perfetto_trace_minimal_zero",
251 ":protos_perfetto_trace_non_minimal_zero",
252 ":protos_perfetto_trace_perfetto_zero",
253 ":protos_perfetto_trace_power_zero",
254 ":protos_perfetto_trace_profiling_zero",
255 ":protos_perfetto_trace_ps_zero",
256 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +0100257 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +0100258 ":protos_perfetto_trace_track_event_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +0100259 ":protos_perfetto_trace_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +0000260 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +0000261 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +0100262)
263
264# GN target: //include/perfetto/base:base
265filegroup(
266 name = "include_perfetto_base_base",
267 srcs = [
268 "include/perfetto/base/build_config.h",
269 "include/perfetto/base/compiler.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100270 "include/perfetto/base/export.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000271 "include/perfetto/base/flat_set.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100272 "include/perfetto/base/logging.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000273 "include/perfetto/base/proc_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100274 "include/perfetto/base/task_runner.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000275 "include/perfetto/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100276 "include/perfetto/base/time.h",
277 ],
278)
279
280# GN target: //include/perfetto/ext/base:base
281filegroup(
282 name = "include_perfetto_ext_base_base",
283 srcs = [
284 "include/perfetto/ext/base/circular_queue.h",
285 "include/perfetto/ext/base/container_annotations.h",
286 "include/perfetto/ext/base/event_fd.h",
287 "include/perfetto/ext/base/file_utils.h",
288 "include/perfetto/ext/base/hash.h",
289 "include/perfetto/ext/base/lookup_set.h",
290 "include/perfetto/ext/base/metatrace.h",
291 "include/perfetto/ext/base/metatrace_events.h",
292 "include/perfetto/ext/base/no_destructor.h",
293 "include/perfetto/ext/base/optional.h",
294 "include/perfetto/ext/base/paged_memory.h",
295 "include/perfetto/ext/base/pipe.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100296 "include/perfetto/ext/base/scoped_file.h",
297 "include/perfetto/ext/base/small_set.h",
298 "include/perfetto/ext/base/string_splitter.h",
299 "include/perfetto/ext/base/string_utils.h",
300 "include/perfetto/ext/base/string_view.h",
301 "include/perfetto/ext/base/string_writer.h",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000302 "include/perfetto/ext/base/subprocess.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100303 "include/perfetto/ext/base/temp_file.h",
304 "include/perfetto/ext/base/thread_annotations.h",
305 "include/perfetto/ext/base/thread_checker.h",
306 "include/perfetto/ext/base/thread_task_runner.h",
Ryana67749d2020-04-03 18:43:31 +0100307 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100308 "include/perfetto/ext/base/unix_socket.h",
309 "include/perfetto/ext/base/unix_task_runner.h",
310 "include/perfetto/ext/base/utils.h",
311 "include/perfetto/ext/base/uuid.h",
312 "include/perfetto/ext/base/waitable_event.h",
313 "include/perfetto/ext/base/watchdog.h",
314 "include/perfetto/ext/base/watchdog_noop.h",
315 "include/perfetto/ext/base/watchdog_posix.h",
316 "include/perfetto/ext/base/weak_ptr.h",
317 ],
318)
319
320# GN target: //include/perfetto/ext/ipc:ipc
321filegroup(
322 name = "include_perfetto_ext_ipc_ipc",
323 srcs = [
324 "include/perfetto/ext/ipc/async_result.h",
325 "include/perfetto/ext/ipc/basic_types.h",
326 "include/perfetto/ext/ipc/client.h",
327 "include/perfetto/ext/ipc/client_info.h",
328 "include/perfetto/ext/ipc/codegen_helpers.h",
329 "include/perfetto/ext/ipc/deferred.h",
330 "include/perfetto/ext/ipc/host.h",
331 "include/perfetto/ext/ipc/service.h",
332 "include/perfetto/ext/ipc/service_descriptor.h",
333 "include/perfetto/ext/ipc/service_proxy.h",
334 ],
335)
336
Eric Seckler7fb1d232019-10-23 14:42:43 +0100337# GN target: //include/perfetto/ext/trace_processor:export_json
338filegroup(
339 name = "include_perfetto_ext_trace_processor_export_json",
340 srcs = [
341 "include/perfetto/ext/trace_processor/export_json.h",
342 ],
343)
344
Primiano Tucci1d409982019-09-19 10:15:18 +0100345# GN target: //include/perfetto/ext/traced:sys_stats_counters
346filegroup(
347 name = "include_perfetto_ext_traced_sys_stats_counters",
348 srcs = [
349 "include/perfetto/ext/traced/sys_stats_counters.h",
350 ],
351)
352
353# GN target: //include/perfetto/ext/traced:traced
354filegroup(
355 name = "include_perfetto_ext_traced_traced",
356 srcs = [
357 "include/perfetto/ext/traced/data_source_types.h",
358 "include/perfetto/ext/traced/traced.h",
359 ],
360)
361
362# GN target: //include/perfetto/ext/tracing/core:core
363filegroup(
364 name = "include_perfetto_ext_tracing_core_core",
365 srcs = [
366 "include/perfetto/ext/tracing/core/basic_types.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100367 "include/perfetto/ext/tracing/core/commit_data_request.h",
368 "include/perfetto/ext/tracing/core/consumer.h",
369 "include/perfetto/ext/tracing/core/observable_events.h",
370 "include/perfetto/ext/tracing/core/producer.h",
371 "include/perfetto/ext/tracing/core/shared_memory.h",
372 "include/perfetto/ext/tracing/core/shared_memory_abi.h",
373 "include/perfetto/ext/tracing/core/shared_memory_arbiter.h",
374 "include/perfetto/ext/tracing/core/slice.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100375 "include/perfetto/ext/tracing/core/trace_packet.h",
376 "include/perfetto/ext/tracing/core/trace_stats.h",
377 "include/perfetto/ext/tracing/core/trace_writer.h",
378 "include/perfetto/ext/tracing/core/tracing_service.h",
379 ],
380)
381
382# GN target: //include/perfetto/ext/tracing/ipc:ipc
383filegroup(
384 name = "include_perfetto_ext_tracing_ipc_ipc",
385 srcs = [
386 "include/perfetto/ext/tracing/ipc/consumer_ipc_client.h",
387 "include/perfetto/ext/tracing/ipc/default_socket.h",
388 "include/perfetto/ext/tracing/ipc/producer_ipc_client.h",
389 "include/perfetto/ext/tracing/ipc/service_ipc_host.h",
390 ],
391)
392
Florian Mayer3be55fb2019-11-22 13:08:47 +0000393# GN target: //include/perfetto/profiling:deobfuscator
394filegroup(
395 name = "include_perfetto_profiling_deobfuscator",
396 srcs = [
397 "include/perfetto/profiling/deobfuscator.h",
398 ],
399)
400
Florian Mayerbd88ff82019-12-18 16:36:37 +0000401# GN target: //include/perfetto/profiling:pprof_builder
Lalit Magantia4244e42019-09-20 12:03:32 +0100402filegroup(
Florian Mayerbd88ff82019-12-18 16:36:37 +0000403 name = "include_perfetto_profiling_pprof_builder",
Lalit Magantia4244e42019-09-20 12:03:32 +0100404 srcs = [
405 "include/perfetto/profiling/pprof_builder.h",
Lalit Magantia4244e42019-09-20 12:03:32 +0100406 ],
407)
408
Primiano Tucci1d409982019-09-19 10:15:18 +0100409# GN target: //include/perfetto/protozero:protozero
410filegroup(
411 name = "include_perfetto_protozero_protozero",
412 srcs = [
413 "include/perfetto/protozero/contiguous_memory_range.h",
Primiano Tuccie4144b72019-11-07 16:10:19 +0000414 "include/perfetto/protozero/copyable_ptr.h",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000415 "include/perfetto/protozero/cpp_message_obj.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100416 "include/perfetto/protozero/field.h",
417 "include/perfetto/protozero/message.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200418 "include/perfetto/protozero/message_arena.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100419 "include/perfetto/protozero/message_handle.h",
420 "include/perfetto/protozero/packed_repeated_fields.h",
421 "include/perfetto/protozero/proto_decoder.h",
422 "include/perfetto/protozero/proto_utils.h",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200423 "include/perfetto/protozero/root_message.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100424 "include/perfetto/protozero/scattered_heap_buffer.h",
425 "include/perfetto/protozero/scattered_stream_null_delegate.h",
426 "include/perfetto/protozero/scattered_stream_writer.h",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000427 "include/perfetto/protozero/static_buffer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100428 ],
429)
430
431# GN target: //include/perfetto/public:public
432filegroup(
433 name = "include_perfetto_public_public",
434 srcs = [
435 "include/perfetto/public/consumer_api.h",
436 ],
437)
438
Eric Secklera7870e62019-11-01 10:11:58 +0000439# GN target: //include/perfetto/trace_processor:basic_types
440filegroup(
441 name = "include_perfetto_trace_processor_basic_types",
442 srcs = [
443 "include/perfetto/trace_processor/basic_types.h",
444 "include/perfetto/trace_processor/status.h",
445 ],
446)
447
448# GN target: //include/perfetto/trace_processor:storage
449filegroup(
450 name = "include_perfetto_trace_processor_storage",
451 srcs = [
452 "include/perfetto/trace_processor/trace_processor_storage.h",
453 ],
454)
455
Primiano Tucci1d409982019-09-19 10:15:18 +0100456# GN target: //include/perfetto/trace_processor:trace_processor
457filegroup(
458 name = "include_perfetto_trace_processor_trace_processor",
459 srcs = [
Primiano Tucci4e01f632020-06-11 17:03:05 +0100460 "include/perfetto/trace_processor/iterator.h",
Eric Seckler8f70bbf2019-10-09 09:37:43 +0100461 "include/perfetto/trace_processor/read_trace.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100462 "include/perfetto/trace_processor/trace_processor.h",
463 ],
464)
465
466# GN target: //include/perfetto/tracing/core:core
467filegroup(
468 name = "include_perfetto_tracing_core_core",
469 srcs = [
470 "include/perfetto/tracing/core/chrome_config.h",
471 "include/perfetto/tracing/core/data_source_config.h",
472 "include/perfetto/tracing/core/data_source_descriptor.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100473 "include/perfetto/tracing/core/trace_config.h",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +0000474 "include/perfetto/tracing/core/tracing_service_capabilities.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100475 "include/perfetto/tracing/core/tracing_service_state.h",
476 ],
477)
478
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000479# GN target: //include/perfetto/tracing/core:forward_decls
480filegroup(
481 name = "include_perfetto_tracing_core_forward_decls",
482 srcs = [
483 "include/perfetto/tracing/core/forward_decls.h",
484 ],
485)
486
Primiano Tucci1d409982019-09-19 10:15:18 +0100487# GN target: //include/perfetto/tracing:tracing
488filegroup(
489 name = "include_perfetto_tracing_tracing",
490 srcs = [
Florian Mayer974a8b82019-10-03 10:04:27 +0100491 "include/perfetto/tracing/buffer_exhausted_policy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100492 "include/perfetto/tracing/data_source.h",
Sami Kyostila29ff8442019-11-26 16:05:13 +0000493 "include/perfetto/tracing/debug_annotation.h",
Sami Kyostila10b270a2019-11-19 19:12:03 +0000494 "include/perfetto/tracing/event_context.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100495 "include/perfetto/tracing/internal/basic_types.h",
496 "include/perfetto/tracing/internal/data_source_internal.h",
Primiano Tucci3feec552020-02-04 11:14:42 +0000497 "include/perfetto/tracing/internal/in_process_tracing_backend.h",
498 "include/perfetto/tracing/internal/system_tracing_backend.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100499 "include/perfetto/tracing/internal/tracing_muxer.h",
500 "include/perfetto/tracing/internal/tracing_tls.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700501 "include/perfetto/tracing/internal/track_event_data_source.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100502 "include/perfetto/tracing/internal/track_event_internal.h",
503 "include/perfetto/tracing/internal/track_event_macros.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100504 "include/perfetto/tracing/locked_handle.h",
505 "include/perfetto/tracing/platform.h",
506 "include/perfetto/tracing/trace_writer_base.h",
507 "include/perfetto/tracing/tracing.h",
508 "include/perfetto/tracing/tracing_backend.h",
Sami Kyostila26a04372020-01-13 12:46:48 +0000509 "include/perfetto/tracing/track.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -0700510 "include/perfetto/tracing/track_event.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +0100511 "include/perfetto/tracing/track_event_category_registry.h",
Sami Kyostilabe5d0e32019-11-07 12:53:25 +0000512 "include/perfetto/tracing/track_event_interned_data_index.h",
Sami Kyostila4ac4a662020-01-17 11:10:57 +0000513 "include/perfetto/tracing/track_event_legacy.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100514 ],
515)
516
517# GN target: //src/android_internal:headers
518filegroup(
519 name = "src_android_internal_headers",
520 srcs = [
521 "src/android_internal/atrace_hal.h",
522 "src/android_internal/dropbox_service.h",
523 "src/android_internal/health_hal.h",
524 "src/android_internal/incident_service.h",
525 "src/android_internal/power_stats_hal.h",
Hector Dearman92d7d112019-12-05 15:19:57 +0000526 "src/android_internal/statsd_logging.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100527 ],
528)
529
530# GN target: //src/android_internal:lazy_library_loader
531filegroup(
532 name = "src_android_internal_lazy_library_loader",
533 srcs = [
534 "src/android_internal/lazy_library_loader.cc",
535 "src/android_internal/lazy_library_loader.h",
536 ],
537)
538
539# GN target: //src/base:base
540filegroup(
541 name = "src_base_base",
542 srcs = [
543 "src/base/event_fd.cc",
544 "src/base/file_utils.cc",
Primiano Tuccic64b05f2019-12-05 10:30:52 +0000545 "src/base/logging.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100546 "src/base/metatrace.cc",
547 "src/base/paged_memory.cc",
548 "src/base/pipe.cc",
549 "src/base/string_splitter.cc",
550 "src/base/string_utils.cc",
551 "src/base/string_view.cc",
Primiano Tucci6d7d2542020-03-17 20:03:48 +0000552 "src/base/subprocess.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100553 "src/base/temp_file.cc",
554 "src/base/thread_checker.cc",
555 "src/base/thread_task_runner.cc",
556 "src/base/time.cc",
557 "src/base/unix_task_runner.cc",
558 "src/base/uuid.cc",
559 "src/base/virtual_destructors.cc",
560 "src/base/waitable_event.cc",
561 "src/base/watchdog_posix.cc",
562 ],
563)
564
565# GN target: //src/base:unix_socket
566filegroup(
567 name = "src_base_unix_socket",
568 srcs = [
569 "src/base/unix_socket.cc",
570 ],
571)
572
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000573# GN target: //src/ipc:client
Primiano Tucci1d409982019-09-19 10:15:18 +0100574filegroup(
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000575 name = "src_ipc_client",
576 srcs = [
577 "src/ipc/client_impl.cc",
578 "src/ipc/client_impl.h",
579 "src/ipc/service_proxy.cc",
580 ],
581)
582
583# GN target: //src/ipc:common
584filegroup(
585 name = "src_ipc_common",
Primiano Tucci1d409982019-09-19 10:15:18 +0100586 srcs = [
587 "src/ipc/buffered_frame_deserializer.cc",
588 "src/ipc/buffered_frame_deserializer.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100589 "src/ipc/deferred.cc",
Primiano Tuccic4c063b2020-01-27 09:34:46 +0000590 "src/ipc/virtual_destructors.cc",
591 ],
592)
593
594# GN target: //src/ipc:host
595filegroup(
596 name = "src_ipc_host",
597 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100598 "src/ipc/host_impl.cc",
599 "src/ipc/host_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100600 ],
601)
602
Hector Dearman92d7d112019-12-05 15:19:57 +0000603# GN target: //src/perfetto_cmd:perfetto_atoms
604filegroup(
605 name = "src_perfetto_cmd_perfetto_atoms",
606 srcs = [
607 "src/perfetto_cmd/perfetto_atoms.h",
608 ],
609)
610
Primiano Tucci1d409982019-09-19 10:15:18 +0100611# GN target: //src/perfetto_cmd:perfetto_cmd
612filegroup(
613 name = "src_perfetto_cmd_perfetto_cmd",
614 srcs = [
615 "src/perfetto_cmd/config.cc",
616 "src/perfetto_cmd/config.h",
617 "src/perfetto_cmd/packet_writer.cc",
618 "src/perfetto_cmd/packet_writer.h",
619 "src/perfetto_cmd/pbtxt_to_pb.cc",
620 "src/perfetto_cmd/pbtxt_to_pb.h",
621 "src/perfetto_cmd/perfetto_cmd.cc",
622 "src/perfetto_cmd/perfetto_cmd.h",
623 "src/perfetto_cmd/perfetto_config.descriptor.h",
624 "src/perfetto_cmd/rate_limiter.cc",
625 "src/perfetto_cmd/rate_limiter.h",
626 ],
627)
628
629# GN target: //src/perfetto_cmd:trigger_producer
630filegroup(
631 name = "src_perfetto_cmd_trigger_producer",
632 srcs = [
633 "src/perfetto_cmd/trigger_producer.cc",
634 "src/perfetto_cmd/trigger_producer.h",
635 ],
636)
637
Florian Mayerbd88ff82019-12-18 16:36:37 +0000638# GN target: //src/profiling/symbolizer:symbolize_database
639filegroup(
640 name = "src_profiling_symbolizer_symbolize_database",
641 srcs = [
642 "src/profiling/symbolizer/symbolize_database.cc",
643 "src/profiling/symbolizer/symbolize_database.h",
644 ],
645)
646
647# GN target: //src/profiling/symbolizer:symbolizer
648filegroup(
649 name = "src_profiling_symbolizer_symbolizer",
650 srcs = [
651 "src/profiling/symbolizer/local_symbolizer.cc",
652 "src/profiling/symbolizer/local_symbolizer.h",
653 "src/profiling/symbolizer/symbolizer.cc",
654 "src/profiling/symbolizer/symbolizer.h",
655 ],
656)
657
Florian Mayer3be55fb2019-11-22 13:08:47 +0000658# GN target: //src/profiling:deobfuscator
659filegroup(
660 name = "src_profiling_deobfuscator",
661 srcs = [
662 "src/profiling/deobfuscator.cc",
663 ],
664)
665
Primiano Tucci1d409982019-09-19 10:15:18 +0100666# GN target: //src/protozero:protozero
667filegroup(
668 name = "src_protozero_protozero",
669 srcs = [
Primiano Tucci6a7813d2019-11-19 11:08:50 +0000670 "src/protozero/field.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100671 "src/protozero/message.cc",
Primiano Tucciacb6ca32020-08-19 13:27:52 +0200672 "src/protozero/message_arena.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100673 "src/protozero/message_handle.cc",
Primiano Tucci03ac8332019-11-06 13:30:36 +0000674 "src/protozero/packed_repeated_fields.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100675 "src/protozero/proto_decoder.cc",
676 "src/protozero/scattered_heap_buffer.cc",
677 "src/protozero/scattered_stream_null_delegate.cc",
678 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci6a7fa5f2019-11-19 11:09:20 +0000679 "src/protozero/static_buffer.cc",
Primiano Tuccicb8cea22019-11-22 11:05:35 +0000680 "src/protozero/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100681 ],
682)
683
Lalit Maganti97d7d472020-04-07 18:49:17 +0100684# GN target: //src/trace_processor/analysis:analysis
685filegroup(
686 name = "src_trace_processor_analysis_analysis",
687 srcs = [
688 "src/trace_processor/analysis/describe_slice.cc",
689 "src/trace_processor/analysis/describe_slice.h",
690 ],
691)
692
Lalit Maganti2aa88582019-12-17 17:06:49 +0000693# GN target: //src/trace_processor/containers:containers
694filegroup(
695 name = "src_trace_processor_containers_containers",
696 srcs = [
697 "src/trace_processor/containers/bit_vector.cc",
698 "src/trace_processor/containers/bit_vector.h",
699 "src/trace_processor/containers/bit_vector_iterators.cc",
700 "src/trace_processor/containers/bit_vector_iterators.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000701 "src/trace_processor/containers/null_term_string_view.h",
Lalit Maganti78358592020-06-04 17:13:13 +0100702 "src/trace_processor/containers/nullable_vector.cc",
703 "src/trace_processor/containers/nullable_vector.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000704 "src/trace_processor/containers/row_map.cc",
705 "src/trace_processor/containers/row_map.h",
Lalit Maganti9ecfab32019-12-17 17:45:38 +0000706 "src/trace_processor/containers/string_pool.cc",
707 "src/trace_processor/containers/string_pool.h",
Lalit Maganti2aa88582019-12-17 17:06:49 +0000708 ],
709)
710
Primiano Tucci1d409982019-09-19 10:15:18 +0100711# GN target: //src/trace_processor/db:lib
712filegroup(
713 name = "src_trace_processor_db_lib",
714 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100715 "src/trace_processor/db/column.cc",
716 "src/trace_processor/db/column.h",
Lalit Maganti42a5dd92019-12-12 13:28:00 +0000717 "src/trace_processor/db/compare.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100718 "src/trace_processor/db/table.cc",
719 "src/trace_processor/db/table.h",
720 "src/trace_processor/db/typed_column.h",
Lalit Magantia8e11e82020-01-29 11:47:56 +0000721 "src/trace_processor/db/typed_column_internal.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100722 ],
723)
724
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100725# GN target: //src/trace_processor/importers:common
726filegroup(
727 name = "src_trace_processor_importers_common",
728 srcs = [
729 "src/trace_processor/importers/common/args_tracker.cc",
730 "src/trace_processor/importers/common/args_tracker.h",
731 "src/trace_processor/importers/common/clock_tracker.cc",
732 "src/trace_processor/importers/common/clock_tracker.h",
733 "src/trace_processor/importers/common/event_tracker.cc",
734 "src/trace_processor/importers/common/event_tracker.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300735 "src/trace_processor/importers/common/flow_tracker.cc",
736 "src/trace_processor/importers/common/flow_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100737 "src/trace_processor/importers/common/global_args_tracker.cc",
738 "src/trace_processor/importers/common/global_args_tracker.h",
739 "src/trace_processor/importers/common/process_tracker.cc",
740 "src/trace_processor/importers/common/process_tracker.h",
741 "src/trace_processor/importers/common/slice_tracker.cc",
742 "src/trace_processor/importers/common/slice_tracker.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100743 "src/trace_processor/importers/common/system_info_tracker.cc",
744 "src/trace_processor/importers/common/system_info_tracker.h",
Lalit Maganticcdcbae2020-04-15 14:31:40 +0100745 "src/trace_processor/importers/common/track_tracker.cc",
746 "src/trace_processor/importers/common/track_tracker.h",
747 ],
748)
749
Lalit Maganti117272f2020-09-11 14:01:18 +0100750perfetto_cc_proto_descriptor(
Lalit Maganti3b09a3f2020-09-14 13:28:44 +0100751 name = "src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
752 deps = [
753 ":protos_perfetto_metrics_chrome_descriptor",
754 ],
755 outs = [
756 "src/trace_processor/metrics/chrome/all_chrome_metrics.descriptor.h",
757 ],
758)
759
760perfetto_cc_proto_descriptor(
Lalit Maganti117272f2020-09-11 14:01:18 +0100761 name = "src_trace_processor_metrics_gen_cc_metrics_descriptor",
762 deps = [
763 ":protos_perfetto_metrics_descriptor",
764 ],
765 outs = [
766 "src/trace_processor/metrics/metrics.descriptor.h",
767 ],
768)
769
Primiano Tucci1d409982019-09-19 10:15:18 +0100770genrule(
771 name = "src_trace_processor_metrics_gen_merged_sql_metrics",
772 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100773 "src/trace_processor/metrics/android/android_batt.sql",
774 "src/trace_processor/metrics/android/android_cpu.sql",
Primiano Tucci1d409982019-09-19 10:15:18 +0100775 "src/trace_processor/metrics/android/android_cpu_agg.sql",
Oksana Zhuravlovaa0751512020-05-28 10:21:53 -0700776 "src/trace_processor/metrics/android/android_cpu_raw_metrics_per_core.sql",
Yiwei Zhang617d3f62020-09-07 15:57:38 -0700777 "src/trace_processor/metrics/android/android_gpu.sql",
Stan Iliev1d531822020-01-17 11:12:18 -0500778 "src/trace_processor/metrics/android/android_hwui_metric.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +0100779 "src/trace_processor/metrics/android/android_ion.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100780 "src/trace_processor/metrics/android/android_lmk.sql",
Rafal Slawik88ffa442019-11-27 14:42:06 +0000781 "src/trace_processor/metrics/android/android_lmk_reason.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100782 "src/trace_processor/metrics/android/android_mem.sql",
783 "src/trace_processor/metrics/android/android_mem_unagg.sql",
784 "src/trace_processor/metrics/android/android_package_list.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +0100785 "src/trace_processor/metrics/android/android_powrails.sql",
Mikhail Khokhlov46496812020-06-10 15:29:23 +0100786 "src/trace_processor/metrics/android/android_proxy_power.sql",
Primiano Tucci1d409982019-09-19 10:15:18 +0100787 "src/trace_processor/metrics/android/android_startup.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +0100788 "src/trace_processor/metrics/android/android_startup_launches.sql",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +0100789 "src/trace_processor/metrics/android/android_surfaceflinger.sql",
Ioannis Ilkos07270452020-03-06 17:50:17 +0000790 "src/trace_processor/metrics/android/android_task_names.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100791 "src/trace_processor/metrics/android/android_task_state.sql",
Rafal Slawik7eaddac2020-04-21 17:35:05 +0100792 "src/trace_processor/metrics/android/android_thread_time_in_state.sql",
793 "src/trace_processor/metrics/android/cpu_info.sql",
Edgar Arriaga32975d22020-03-03 10:31:44 -0800794 "src/trace_processor/metrics/android/display_metrics.sql",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +0100795 "src/trace_processor/metrics/android/frame_missed.sql",
Yiwei Zhang48a955a2020-09-10 09:39:45 -0700796 "src/trace_processor/metrics/android/global_counter_span_view.sql",
Ioannis Ilkos73f2cd02019-10-08 22:49:02 +0100797 "src/trace_processor/metrics/android/heap_profile_callsites.sql",
Lalit Magantic5f436f2020-04-22 22:02:57 +0100798 "src/trace_processor/metrics/android/hsc_startups.sql",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +0000799 "src/trace_processor/metrics/android/java_heap_histogram.sql",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +0000800 "src/trace_processor/metrics/android/java_heap_stats.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100801 "src/trace_processor/metrics/android/mem_stats_priority_breakdown.sql",
Mikhail Khokhlov4f658692020-06-29 16:33:50 +0100802 "src/trace_processor/metrics/android/power_profile_data.sql",
Simon MacMullen687a9292020-05-11 15:09:21 +0100803 "src/trace_processor/metrics/android/process_counter_span_view.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100804 "src/trace_processor/metrics/android/process_mem.sql",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +0000805 "src/trace_processor/metrics/android/process_metadata.sql",
Rafal Slawikda2b4212019-11-26 11:44:02 +0000806 "src/trace_processor/metrics/android/process_oom_score.sql",
Ioannis Ilkosed803902019-09-24 11:58:56 +0100807 "src/trace_processor/metrics/android/process_unagg_mem_view.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100808 "src/trace_processor/metrics/android/span_view_stats.sql",
809 "src/trace_processor/metrics/android/unsymbolized_frames.sql",
Sami Kyostilab5610ab2020-04-28 19:10:43 +0100810 "src/trace_processor/metrics/chrome/chrome_processes.sql",
Stephen Nuskof3c5fcb2020-07-08 14:53:33 +0100811 "src/trace_processor/metrics/chrome/scroll_flow_event.sql",
Stephen Nusko81feb972020-07-17 18:44:56 +0100812 "src/trace_processor/metrics/chrome/scroll_flow_event_queuing_delay.sql",
Stephen Nuskofb1992c2020-07-07 13:18:11 +0100813 "src/trace_processor/metrics/chrome/scroll_jank.sql",
Stephen Nuskoc7960ed2020-07-17 14:34:35 +0100814 "src/trace_processor/metrics/chrome/scroll_jank_cause.sql",
815 "src/trace_processor/metrics/chrome/scroll_jank_cause_blocking_task.sql",
816 "src/trace_processor/metrics/chrome/scroll_jank_cause_blocking_touch_move.sql",
Stephen Nusko83929782020-07-29 12:31:32 +0100817 "src/trace_processor/metrics/chrome/scroll_jank_cause_queuing_delay.sql",
Deepanjan Royece03502020-08-05 15:47:16 -0400818 "src/trace_processor/metrics/chrome/test_chrome_metric.sql",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +0100819 "src/trace_processor/metrics/trace_metadata.sql",
Oksana Zhuravlovafe596752020-06-15 16:27:16 -0700820 "src/trace_processor/metrics/webview/webview_power_usage.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100821 ],
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100822 outs = [
823 "src/trace_processor/metrics/sql_metrics.h",
824 ],
Lalit Magantie667b0f2019-05-02 13:49:35 +0100825 cmd = "$(location gen_merged_sql_metrics_py) --cpp_out=$@ $(SRCS)",
Lalit Maganti9d9e56b2020-08-13 17:38:15 +0100826 exec_tools = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100827 ":gen_merged_sql_metrics_py",
828 ],
829)
830
831# GN target: //src/trace_processor/metrics:lib
832filegroup(
833 name = "src_trace_processor_metrics_lib",
834 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +0100835 "src/trace_processor/metrics/metrics.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100836 "src/trace_processor/metrics/metrics.h",
837 ],
838)
839
Primiano Tuccia36cccc2019-10-27 13:15:04 +0100840# GN target: //src/trace_processor/rpc:httpd
841filegroup(
842 name = "src_trace_processor_rpc_httpd",
843 srcs = [
844 "src/trace_processor/rpc/httpd.cc",
845 "src/trace_processor/rpc/httpd.h",
846 ],
847)
848
849# GN target: //src/trace_processor/rpc:rpc
850filegroup(
851 name = "src_trace_processor_rpc_rpc",
852 srcs = [
Primiano Tucci4079d1d2020-06-30 11:03:38 +0100853 "src/trace_processor/rpc/query_result_serializer.cc",
854 "src/trace_processor/rpc/query_result_serializer.h",
Primiano Tuccia36cccc2019-10-27 13:15:04 +0100855 "src/trace_processor/rpc/rpc.cc",
856 "src/trace_processor/rpc/rpc.h",
857 ],
858)
859
Primiano Tucci1d409982019-09-19 10:15:18 +0100860# GN target: //src/trace_processor/sqlite:sqlite
861filegroup(
862 name = "src_trace_processor_sqlite_sqlite",
863 srcs = [
864 "src/trace_processor/sqlite/db_sqlite_table.cc",
865 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti65800eb2020-01-30 15:18:59 +0000866 "src/trace_processor/sqlite/query_cache.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100867 "src/trace_processor/sqlite/query_constraints.cc",
868 "src/trace_processor/sqlite/query_constraints.h",
869 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti60732452020-02-04 16:02:53 +0000870 "src/trace_processor/sqlite/span_join_operator_table.cc",
871 "src/trace_processor/sqlite/span_join_operator_table.h",
Lalit Maganti655adae2020-04-14 21:01:25 +0100872 "src/trace_processor/sqlite/sql_stats_table.cc",
873 "src/trace_processor/sqlite/sql_stats_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100874 "src/trace_processor/sqlite/sqlite3_str_split.cc",
875 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti655adae2020-04-14 21:01:25 +0100876 "src/trace_processor/sqlite/sqlite_raw_table.cc",
877 "src/trace_processor/sqlite/sqlite_raw_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100878 "src/trace_processor/sqlite/sqlite_table.cc",
879 "src/trace_processor/sqlite/sqlite_table.h",
880 "src/trace_processor/sqlite/sqlite_utils.h",
Lalit Maganti655adae2020-04-14 21:01:25 +0100881 "src/trace_processor/sqlite/stats_table.cc",
882 "src/trace_processor/sqlite/stats_table.h",
Lalit Maganti60732452020-02-04 16:02:53 +0000883 "src/trace_processor/sqlite/window_operator_table.cc",
884 "src/trace_processor/sqlite/window_operator_table.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100885 ],
886)
887
Lalit Maganti7010b332020-02-07 10:51:15 +0000888# GN target: //src/trace_processor/storage:storage
889filegroup(
890 name = "src_trace_processor_storage_storage",
891 srcs = [
892 "src/trace_processor/storage/metadata.h",
893 "src/trace_processor/storage/stats.h",
894 "src/trace_processor/storage/trace_storage.cc",
895 "src/trace_processor/storage/trace_storage.h",
896 ],
897)
898
Primiano Tucci1d409982019-09-19 10:15:18 +0100899# GN target: //src/trace_processor/tables:tables
900filegroup(
901 name = "src_trace_processor_tables_tables",
902 srcs = [
Lalit Magantif1ab24f2020-01-07 17:42:26 +0000903 "src/trace_processor/tables/android_tables.h",
Lalit Maganti4b3b3ad2019-12-04 19:27:35 +0000904 "src/trace_processor/tables/counter_tables.h",
AndrewB330c879ea42020-07-29 14:12:39 +0300905 "src/trace_processor/tables/flow_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100906 "src/trace_processor/tables/macros.h",
907 "src/trace_processor/tables/macros_internal.h",
Lalit Magantiededb0e2020-01-08 12:50:34 +0000908 "src/trace_processor/tables/metadata_tables.h",
Primiano Tucci1d409982019-09-19 10:15:18 +0100909 "src/trace_processor/tables/profiler_tables.h",
910 "src/trace_processor/tables/slice_tables.h",
Lalit Maganti49155ea2020-03-31 14:53:33 +0100911 "src/trace_processor/tables/table_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +0100912 "src/trace_processor/tables/track_tables.h",
913 ],
914)
915
Lalit Maganti83b53fa2020-01-13 12:55:36 +0000916# GN target: //src/trace_processor/types:types
917filegroup(
918 name = "src_trace_processor_types_types",
919 srcs = [
Lalit Maganti0faddc42020-04-10 17:58:24 +0100920 "src/trace_processor/types/destructible.cc",
921 "src/trace_processor/types/destructible.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +0000922 "src/trace_processor/types/gfp_flags.cc",
923 "src/trace_processor/types/gfp_flags.h",
Isabelle Taylorb74a55b2020-06-24 13:56:19 +1200924 "src/trace_processor/types/softirq_action.h",
Lalit Maganti616bc082020-04-09 19:03:12 +0100925 "src/trace_processor/types/task_state.cc",
926 "src/trace_processor/types/task_state.h",
Lalit Maganti0faddc42020-04-10 17:58:24 +0100927 "src/trace_processor/types/trace_processor_context.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +0000928 "src/trace_processor/types/variadic.cc",
929 "src/trace_processor/types/variadic.h",
Isabelle Taylore908fe82020-06-01 01:52:17 +0100930 "src/trace_processor/types/version_number.h",
Lalit Maganti83b53fa2020-01-13 12:55:36 +0000931 ],
932)
933
Lalit Magantie7107402020-04-15 13:41:12 +0100934# GN target: //src/trace_processor/util:descriptors
Stephen Nuskobc76a6c2019-12-03 11:55:27 +0000935filegroup(
Lalit Magantie7107402020-04-15 13:41:12 +0100936 name = "src_trace_processor_util_descriptors",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +0000937 srcs = [
Lalit Maganti3d9bbff2020-04-15 13:40:58 +0100938 "src/trace_processor/util/descriptors.cc",
939 "src/trace_processor/util/descriptors.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +0000940 ],
941)
942
Lalit Magantie7107402020-04-15 13:41:12 +0100943# GN target: //src/trace_processor/util:util
944filegroup(
945 name = "src_trace_processor_util_util",
946 srcs = [
947 "src/trace_processor/util/status_macros.h",
948 ],
949)
950
Eric Secklera7870e62019-11-01 10:11:58 +0000951# GN target: //src/trace_processor:export_json
952filegroup(
953 name = "src_trace_processor_export_json",
954 srcs = [
955 "src/trace_processor/export_json.cc",
956 "src/trace_processor/export_json.h",
957 ],
958)
959
Lalit Maganti655adae2020-04-14 21:01:25 +0100960# GN target: //src/trace_processor:ftrace_descriptors
961filegroup(
962 name = "src_trace_processor_ftrace_descriptors",
963 srcs = [
964 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
965 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
966 ],
967)
968
Primiano Tucci1d409982019-09-19 10:15:18 +0100969# GN target: //src/trace_processor:lib
970filegroup(
971 name = "src_trace_processor_lib",
972 srcs = [
Stephen Nuskoe5d071f2020-07-02 13:20:17 +0100973 "src/trace_processor/dynamic/ancestor_slice_generator.cc",
974 "src/trace_processor/dynamic/ancestor_slice_generator.h",
Stephen Nusko2b8d8092020-07-02 13:24:30 +0100975 "src/trace_processor/dynamic/descendant_slice_generator.cc",
976 "src/trace_processor/dynamic/descendant_slice_generator.h",
Lalit Maganti1f4712b2020-04-14 21:01:13 +0100977 "src/trace_processor/dynamic/describe_slice_generator.cc",
978 "src/trace_processor/dynamic/describe_slice_generator.h",
979 "src/trace_processor/dynamic/experimental_counter_dur_generator.cc",
980 "src/trace_processor/dynamic/experimental_counter_dur_generator.h",
981 "src/trace_processor/dynamic/experimental_flamegraph_generator.cc",
982 "src/trace_processor/dynamic/experimental_flamegraph_generator.h",
Lalit Magantic59b1bc2020-07-28 16:36:58 +0100983 "src/trace_processor/dynamic/experimental_sched_upid_generator.cc",
984 "src/trace_processor/dynamic/experimental_sched_upid_generator.h",
Hector Dearman5b523762020-04-16 10:36:32 +0100985 "src/trace_processor/dynamic/experimental_slice_layout_generator.cc",
986 "src/trace_processor/dynamic/experimental_slice_layout_generator.h",
Lalit Maganti2fc5db22020-08-13 15:02:47 +0100987 "src/trace_processor/dynamic/thread_state_generator.cc",
988 "src/trace_processor/dynamic/thread_state_generator.h",
Primiano Tucci4e01f632020-06-11 17:03:05 +0100989 "src/trace_processor/iterator_impl.cc",
990 "src/trace_processor/iterator_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000991 "src/trace_processor/read_trace.cc",
Eric Secklera7870e62019-11-01 10:11:58 +0000992 "src/trace_processor/trace_processor.cc",
993 "src/trace_processor/trace_processor_impl.cc",
994 "src/trace_processor/trace_processor_impl.h",
Eric Secklera7870e62019-11-01 10:11:58 +0000995 ],
996)
997
Lalit Maganti427b8332020-05-27 16:09:45 +0100998# GN target: //src/trace_processor:metatrace
999filegroup(
1000 name = "src_trace_processor_metatrace",
1001 srcs = [
1002 "src/trace_processor/tp_metatrace.cc",
1003 "src/trace_processor/tp_metatrace.h",
1004 ],
1005)
1006
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001007# GN target: //src/trace_processor:storage_full
Eric Secklera7870e62019-11-01 10:11:58 +00001008filegroup(
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001009 name = "src_trace_processor_storage_full",
1010 srcs = [
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001011 "src/trace_processor/importers/additional_modules.cc",
1012 "src/trace_processor/importers/additional_modules.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001013 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1014 "src/trace_processor/importers/ftrace/binder_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001015 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1016 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
1017 "src/trace_processor/importers/ftrace/ftrace_parser.cc",
1018 "src/trace_processor/importers/ftrace/ftrace_parser.h",
1019 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc",
1020 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h",
Lalit Maganti697894f2019-12-23 14:32:13 +00001021 "src/trace_processor/importers/ftrace/rss_stat_tracker.cc",
1022 "src/trace_processor/importers/ftrace/rss_stat_tracker.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001023 "src/trace_processor/importers/ftrace/sched_event_tracker.cc",
1024 "src/trace_processor/importers/ftrace/sched_event_tracker.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001025 "src/trace_processor/importers/fuchsia/fuchsia_record.cc",
1026 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.cc",
1027 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h",
1028 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.cc",
1029 "src/trace_processor/importers/fuchsia/fuchsia_trace_tokenizer.h",
1030 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001031 "src/trace_processor/importers/gzip/gzip_trace_parser.cc",
1032 "src/trace_processor/importers/gzip/gzip_trace_parser.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001033 "src/trace_processor/importers/json/json_trace_parser.cc",
1034 "src/trace_processor/importers/json/json_trace_parser.h",
1035 "src/trace_processor/importers/json/json_trace_tokenizer.cc",
1036 "src/trace_processor/importers/json/json_trace_tokenizer.h",
Lalit Maganti6d1f7b52020-02-27 13:16:44 +00001037 "src/trace_processor/importers/json/json_tracker.cc",
1038 "src/trace_processor/importers/json/json_tracker.h",
Mikhail Khokhlov9996d5d2019-12-17 14:43:17 +00001039 "src/trace_processor/importers/proto/android_probes_module.cc",
1040 "src/trace_processor/importers/proto/android_probes_module.h",
1041 "src/trace_processor/importers/proto/android_probes_parser.cc",
1042 "src/trace_processor/importers/proto/android_probes_parser.h",
Florian Mayer19ce3952020-04-08 15:27:32 +02001043 "src/trace_processor/importers/proto/android_probes_tracker.cc",
1044 "src/trace_processor/importers/proto/android_probes_tracker.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001045 "src/trace_processor/importers/proto/gpu_event_parser.cc",
1046 "src/trace_processor/importers/proto/gpu_event_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001047 "src/trace_processor/importers/proto/graphics_event_module.cc",
1048 "src/trace_processor/importers/proto/graphics_event_module.h",
Adithya Srinivasan9b2b1d92020-05-26 19:00:33 -07001049 "src/trace_processor/importers/proto/graphics_frame_event_parser.cc",
1050 "src/trace_processor/importers/proto/graphics_frame_event_parser.h",
Mikhail Khokhlov6146a582019-12-17 17:33:47 +00001051 "src/trace_processor/importers/proto/heap_graph_module.cc",
1052 "src/trace_processor/importers/proto/heap_graph_module.h",
1053 "src/trace_processor/importers/proto/heap_graph_tracker.cc",
1054 "src/trace_processor/importers/proto/heap_graph_tracker.h",
Mikhail Khokhlov04f6eb72019-12-17 14:33:11 +00001055 "src/trace_processor/importers/proto/system_probes_module.cc",
1056 "src/trace_processor/importers/proto/system_probes_module.h",
1057 "src/trace_processor/importers/proto/system_probes_parser.cc",
1058 "src/trace_processor/importers/proto/system_probes_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001059 "src/trace_processor/importers/proto/vulkan_memory_tracker.cc",
1060 "src/trace_processor/importers/proto/vulkan_memory_tracker.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001061 "src/trace_processor/importers/syscalls/syscall_tracker.cc",
1062 "src/trace_processor/importers/syscalls/syscalls_aarch32.h",
1063 "src/trace_processor/importers/syscalls/syscalls_aarch64.h",
1064 "src/trace_processor/importers/syscalls/syscalls_armeabi.h",
1065 "src/trace_processor/importers/syscalls/syscalls_x86.h",
1066 "src/trace_processor/importers/syscalls/syscalls_x86_64.h",
Lalit Maganti2f0b41d2020-02-27 13:35:39 +00001067 "src/trace_processor/importers/systrace/systrace_line_parser.cc",
1068 "src/trace_processor/importers/systrace/systrace_line_parser.h",
1069 "src/trace_processor/importers/systrace/systrace_line_tokenizer.cc",
1070 "src/trace_processor/importers/systrace/systrace_line_tokenizer.h",
Mikhail Khokhlov81491b92019-12-19 13:58:22 +00001071 "src/trace_processor/importers/systrace/systrace_parser.cc",
1072 "src/trace_processor/importers/systrace/systrace_parser.h",
1073 "src/trace_processor/importers/systrace/systrace_trace_parser.cc",
1074 "src/trace_processor/importers/systrace/systrace_trace_parser.h",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00001075 ],
1076)
1077
1078# GN target: //src/trace_processor:storage_minimal
1079filegroup(
1080 name = "src_trace_processor_storage_minimal",
Eric Secklera7870e62019-11-01 10:11:58 +00001081 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001082 "src/trace_processor/chunked_trace_reader.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001083 "src/trace_processor/forwarding_trace_parser.cc",
1084 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti60af4ef2020-04-15 14:27:09 +01001085 "src/trace_processor/importers/default_modules.cc",
1086 "src/trace_processor/importers/default_modules.h",
Mikhail Khokhlovdd1db002019-12-09 16:34:07 +00001087 "src/trace_processor/importers/ftrace/ftrace_module.cc",
Eric Seckleracfe35b2019-10-18 15:50:17 +01001088 "src/trace_processor/importers/ftrace/ftrace_module.h",
Eric Seckler67e15a92020-01-03 13:20:46 +00001089 "src/trace_processor/importers/fuchsia/fuchsia_record.h",
Eric Secklerd8b52082019-10-17 15:58:38 +01001090 "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h",
Lalit Maganti9d538bd2020-03-12 23:48:16 +00001091 "src/trace_processor/importers/gzip/gzip_utils.cc",
1092 "src/trace_processor/importers/gzip/gzip_utils.h",
Lalit Maganti0bfeb972020-03-14 03:57:30 +00001093 "src/trace_processor/importers/json/json_utils.cc",
1094 "src/trace_processor/importers/json/json_utils.h",
Primiano Tucci50446cb2020-02-14 10:40:23 +00001095 "src/trace_processor/importers/ninja/ninja_log_parser.cc",
1096 "src/trace_processor/importers/ninja/ninja_log_parser.h",
Stephen Nuskobc76a6c2019-12-03 11:55:27 +00001097 "src/trace_processor/importers/proto/args_table_utils.cc",
1098 "src/trace_processor/importers/proto/args_table_utils.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001099 "src/trace_processor/importers/proto/heap_profile_tracker.cc",
1100 "src/trace_processor/importers/proto/heap_profile_tracker.h",
1101 "src/trace_processor/importers/proto/metadata_tracker.cc",
1102 "src/trace_processor/importers/proto/metadata_tracker.h",
Eric Seckler7e9dc312020-01-02 15:17:28 +00001103 "src/trace_processor/importers/proto/packet_sequence_state.cc",
Eric Seckler771960c2019-10-22 15:37:12 +01001104 "src/trace_processor/importers/proto/packet_sequence_state.h",
Eric Secklerf2de4db2020-02-14 14:17:20 +00001105 "src/trace_processor/importers/proto/profile_module.cc",
1106 "src/trace_processor/importers/proto/profile_module.h",
1107 "src/trace_processor/importers/proto/profile_packet_utils.cc",
1108 "src/trace_processor/importers/proto/profile_packet_utils.h",
Florian Mayer20d069c2020-08-13 12:24:32 +01001109 "src/trace_processor/importers/proto/profiler_util.cc",
1110 "src/trace_processor/importers/proto/profiler_util.h",
Mikhail Khokhlov785af542019-12-06 13:45:10 +00001111 "src/trace_processor/importers/proto/proto_importer_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001112 "src/trace_processor/importers/proto/proto_importer_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001113 "src/trace_processor/importers/proto/proto_incremental_state.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001114 "src/trace_processor/importers/proto/proto_trace_parser.cc",
1115 "src/trace_processor/importers/proto/proto_trace_parser.h",
Lalit Magantieb63b082020-09-10 14:12:20 +01001116 "src/trace_processor/importers/proto/proto_trace_reader.cc",
1117 "src/trace_processor/importers/proto/proto_trace_reader.h",
Eric Seckler137a4672019-10-24 08:51:14 +01001118 "src/trace_processor/importers/proto/proto_trace_tokenizer.cc",
1119 "src/trace_processor/importers/proto/proto_trace_tokenizer.h",
Lalit Maganti05819e22020-04-14 21:01:38 +01001120 "src/trace_processor/importers/proto/stack_profile_tracker.cc",
1121 "src/trace_processor/importers/proto/stack_profile_tracker.h",
Mikhail Khokhlov4b5de1a2019-12-06 16:33:56 +00001122 "src/trace_processor/importers/proto/track_event_module.cc",
Eric Secklerde589952019-10-17 12:46:07 +01001123 "src/trace_processor/importers/proto/track_event_module.h",
Eric Seckler771960c2019-10-22 15:37:12 +01001124 "src/trace_processor/importers/proto/track_event_parser.cc",
1125 "src/trace_processor/importers/proto/track_event_parser.h",
1126 "src/trace_processor/importers/proto/track_event_tokenizer.cc",
1127 "src/trace_processor/importers/proto/track_event_tokenizer.h",
Lalit Maganticda68652020-04-14 21:01:01 +01001128 "src/trace_processor/importers/syscalls/syscall_tracker.h",
Lalit Maganti31afb822020-03-05 17:36:57 +00001129 "src/trace_processor/importers/systrace/systrace_line.h",
Eric Seckler1a2ea132019-10-16 11:35:31 +01001130 "src/trace_processor/timestamped_trace_piece.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001131 "src/trace_processor/trace_blob_view.h",
1132 "src/trace_processor/trace_parser.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001133 "src/trace_processor/trace_processor_context.cc",
Eric Secklera7870e62019-11-01 10:11:58 +00001134 "src/trace_processor/trace_processor_storage.cc",
1135 "src/trace_processor/trace_processor_storage_impl.cc",
1136 "src/trace_processor/trace_processor_storage_impl.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001137 "src/trace_processor/trace_sorter.cc",
1138 "src/trace_processor/trace_sorter.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001139 "src/trace_processor/virtual_destructors.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001140 ],
1141)
1142
Andrew Shulaevb6678382020-02-27 13:59:32 +00001143# GN target: //src/trace_processor:track_event_descriptor
1144filegroup(
1145 name = "src_trace_processor_track_event_descriptor",
1146 srcs = [
1147 "src/trace_processor/importers/proto/track_event.descriptor.h",
1148 ],
1149)
1150
Primiano Tucci1d409982019-09-19 10:15:18 +01001151# GN target: //src/traced/probes/android_log:android_log
1152filegroup(
1153 name = "src_traced_probes_android_log_android_log",
1154 srcs = [
1155 "src/traced/probes/android_log/android_log_data_source.cc",
1156 "src/traced/probes/android_log/android_log_data_source.h",
1157 ],
1158)
1159
Rafal Slawik8053a682020-04-08 17:26:40 +01001160# GN target: //src/traced/probes/common:common
1161filegroup(
1162 name = "src_traced_probes_common_common",
1163 srcs = [
1164 "src/traced/probes/common/cpu_freq_info.cc",
1165 "src/traced/probes/common/cpu_freq_info.h",
1166 ],
1167)
1168
Primiano Tucci1d409982019-09-19 10:15:18 +01001169# GN target: //src/traced/probes/filesystem:filesystem
1170filegroup(
1171 name = "src_traced_probes_filesystem_filesystem",
1172 srcs = [
1173 "src/traced/probes/filesystem/file_scanner.cc",
1174 "src/traced/probes/filesystem/file_scanner.h",
1175 "src/traced/probes/filesystem/fs_mount.cc",
1176 "src/traced/probes/filesystem/fs_mount.h",
1177 "src/traced/probes/filesystem/inode_file_data_source.cc",
1178 "src/traced/probes/filesystem/inode_file_data_source.h",
1179 "src/traced/probes/filesystem/lru_inode_cache.cc",
1180 "src/traced/probes/filesystem/lru_inode_cache.h",
1181 "src/traced/probes/filesystem/prefix_finder.cc",
1182 "src/traced/probes/filesystem/prefix_finder.h",
1183 "src/traced/probes/filesystem/range_tree.cc",
1184 "src/traced/probes/filesystem/range_tree.h",
1185 ],
1186)
1187
1188# GN target: //src/traced/probes/ftrace:format_parser
1189filegroup(
1190 name = "src_traced_probes_ftrace_format_parser",
1191 srcs = [
1192 "src/traced/probes/ftrace/format_parser.cc",
1193 "src/traced/probes/ftrace/format_parser.h",
1194 ],
1195)
1196
1197# GN target: //src/traced/probes/ftrace:ftrace
1198filegroup(
1199 name = "src_traced_probes_ftrace_ftrace",
1200 srcs = [
1201 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
1202 "src/traced/probes/ftrace/atrace_hal_wrapper.h",
1203 "src/traced/probes/ftrace/atrace_wrapper.cc",
1204 "src/traced/probes/ftrace/atrace_wrapper.h",
Lalit Maganti44817b62019-09-19 16:58:23 +01001205 "src/traced/probes/ftrace/compact_sched.cc",
1206 "src/traced/probes/ftrace/compact_sched.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001207 "src/traced/probes/ftrace/cpu_reader.cc",
1208 "src/traced/probes/ftrace/cpu_reader.h",
1209 "src/traced/probes/ftrace/cpu_stats_parser.cc",
1210 "src/traced/probes/ftrace/cpu_stats_parser.h",
Hector Dearman98a97a82020-02-20 22:25:33 +00001211 "src/traced/probes/ftrace/discover_vendor_tracepoints.cc",
1212 "src/traced/probes/ftrace/discover_vendor_tracepoints.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001213 "src/traced/probes/ftrace/event_info.cc",
1214 "src/traced/probes/ftrace/event_info.h",
1215 "src/traced/probes/ftrace/event_info_constants.cc",
1216 "src/traced/probes/ftrace/event_info_constants.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001217 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
1218 "src/traced/probes/ftrace/ftrace_config_muxer.h",
1219 "src/traced/probes/ftrace/ftrace_config_utils.cc",
1220 "src/traced/probes/ftrace/ftrace_config_utils.h",
1221 "src/traced/probes/ftrace/ftrace_controller.cc",
1222 "src/traced/probes/ftrace/ftrace_controller.h",
1223 "src/traced/probes/ftrace/ftrace_data_source.cc",
1224 "src/traced/probes/ftrace/ftrace_data_source.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01001225 "src/traced/probes/ftrace/ftrace_metadata.h",
1226 "src/traced/probes/ftrace/ftrace_procfs.cc",
1227 "src/traced/probes/ftrace/ftrace_procfs.h",
1228 "src/traced/probes/ftrace/ftrace_stats.cc",
1229 "src/traced/probes/ftrace/ftrace_stats.h",
1230 "src/traced/probes/ftrace/proto_translation_table.cc",
1231 "src/traced/probes/ftrace/proto_translation_table.h",
1232 ],
1233)
1234
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01001235# GN target: //src/traced/probes/initial_display_state:initial_display_state
1236filegroup(
1237 name = "src_traced_probes_initial_display_state_initial_display_state",
1238 srcs = [
1239 "src/traced/probes/initial_display_state/initial_display_state_data_source.cc",
1240 "src/traced/probes/initial_display_state/initial_display_state_data_source.h",
1241 ],
1242)
1243
Primiano Tucci1d409982019-09-19 10:15:18 +01001244# GN target: //src/traced/probes/metatrace:metatrace
1245filegroup(
1246 name = "src_traced_probes_metatrace_metatrace",
1247 srcs = [
1248 "src/traced/probes/metatrace/metatrace_data_source.cc",
1249 "src/traced/probes/metatrace/metatrace_data_source.h",
1250 ],
1251)
1252
1253# GN target: //src/traced/probes/packages_list:packages_list
1254filegroup(
1255 name = "src_traced_probes_packages_list_packages_list",
1256 srcs = [
1257 "src/traced/probes/packages_list/packages_list_data_source.cc",
1258 "src/traced/probes/packages_list/packages_list_data_source.h",
1259 ],
1260)
1261
1262# GN target: //src/traced/probes/power:power
1263filegroup(
1264 name = "src_traced_probes_power_power",
1265 srcs = [
1266 "src/traced/probes/power/android_power_data_source.cc",
1267 "src/traced/probes/power/android_power_data_source.h",
1268 ],
1269)
1270
1271# GN target: //src/traced/probes/ps:ps
1272filegroup(
1273 name = "src_traced_probes_ps_ps",
1274 srcs = [
1275 "src/traced/probes/ps/process_stats_data_source.cc",
1276 "src/traced/probes/ps/process_stats_data_source.h",
1277 ],
1278)
1279
1280# GN target: //src/traced/probes/sys_stats:sys_stats
1281filegroup(
1282 name = "src_traced_probes_sys_stats_sys_stats",
1283 srcs = [
1284 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
1285 "src/traced/probes/sys_stats/sys_stats_data_source.h",
1286 ],
1287)
1288
Rafal Slawikb013a112020-04-03 16:12:02 +01001289# GN target: //src/traced/probes/system_info:system_info
1290filegroup(
1291 name = "src_traced_probes_system_info_system_info",
1292 srcs = [
1293 "src/traced/probes/system_info/system_info_data_source.cc",
1294 "src/traced/probes/system_info/system_info_data_source.h",
1295 ],
1296)
1297
Primiano Tucci1d409982019-09-19 10:15:18 +01001298# GN target: //src/traced/probes:data_source
1299filegroup(
1300 name = "src_traced_probes_data_source",
1301 srcs = [
1302 "src/traced/probes/probes_data_source.cc",
1303 "src/traced/probes/probes_data_source.h",
1304 ],
1305)
1306
1307# GN target: //src/traced/probes:probes
1308filegroup(
1309 name = "src_traced_probes_probes",
1310 srcs = [
1311 "src/traced/probes/probes.cc",
1312 ],
1313)
1314
1315# GN target: //src/traced/probes:probes_src
1316filegroup(
1317 name = "src_traced_probes_probes_src",
1318 srcs = [
1319 "src/traced/probes/probes_producer.cc",
1320 "src/traced/probes/probes_producer.h",
1321 ],
1322)
1323
1324# GN target: //src/traced/service:service
1325filegroup(
1326 name = "src_traced_service_service",
1327 srcs = [
1328 "src/traced/service/builtin_producer.cc",
1329 "src/traced/service/builtin_producer.h",
1330 "src/traced/service/service.cc",
1331 ],
1332)
1333
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001334# GN target: //src/tracing/consumer_api_deprecated:consumer_api_deprecated
1335filegroup(
1336 name = "src_tracing_consumer_api_deprecated_consumer_api_deprecated",
1337 srcs = [
1338 "src/tracing/consumer_api_deprecated/consumer_api_deprecated.cc",
1339 ],
1340)
1341
1342# GN target: //src/tracing/core:core
1343filegroup(
1344 name = "src_tracing_core_core",
1345 srcs = [
1346 "src/tracing/core/id_allocator.cc",
1347 "src/tracing/core/id_allocator.h",
1348 "src/tracing/core/null_trace_writer.cc",
1349 "src/tracing/core/null_trace_writer.h",
1350 "src/tracing/core/patch_list.h",
1351 "src/tracing/core/shared_memory_abi.cc",
1352 "src/tracing/core/shared_memory_arbiter_impl.cc",
1353 "src/tracing/core/shared_memory_arbiter_impl.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001354 "src/tracing/core/trace_packet.cc",
1355 "src/tracing/core/trace_writer_impl.cc",
1356 "src/tracing/core/trace_writer_impl.h",
1357 "src/tracing/core/virtual_destructors.cc",
1358 ],
1359)
1360
1361# GN target: //src/tracing/core:service
1362filegroup(
1363 name = "src_tracing_core_service",
1364 srcs = [
1365 "src/tracing/core/metatrace_writer.cc",
1366 "src/tracing/core/metatrace_writer.h",
1367 "src/tracing/core/packet_stream_validator.cc",
1368 "src/tracing/core/packet_stream_validator.h",
1369 "src/tracing/core/trace_buffer.cc",
1370 "src/tracing/core/trace_buffer.h",
1371 "src/tracing/core/tracing_service_impl.cc",
1372 "src/tracing/core/tracing_service_impl.h",
1373 ],
1374)
1375
1376# GN target: //src/tracing/ipc/consumer:consumer
1377filegroup(
1378 name = "src_tracing_ipc_consumer_consumer",
1379 srcs = [
1380 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
1381 "src/tracing/ipc/consumer/consumer_ipc_client_impl.h",
1382 ],
1383)
1384
1385# GN target: //src/tracing/ipc/producer:producer
1386filegroup(
1387 name = "src_tracing_ipc_producer_producer",
1388 srcs = [
1389 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
1390 "src/tracing/ipc/producer/producer_ipc_client_impl.h",
1391 ],
1392)
1393
1394# GN target: //src/tracing/ipc/service:service
1395filegroup(
1396 name = "src_tracing_ipc_service_service",
1397 srcs = [
1398 "src/tracing/ipc/service/consumer_ipc_service.cc",
1399 "src/tracing/ipc/service/consumer_ipc_service.h",
1400 "src/tracing/ipc/service/producer_ipc_service.cc",
1401 "src/tracing/ipc/service/producer_ipc_service.h",
1402 "src/tracing/ipc/service/service_ipc_host_impl.cc",
1403 "src/tracing/ipc/service/service_ipc_host_impl.h",
1404 ],
1405)
1406
1407# GN target: //src/tracing/ipc:common
1408filegroup(
1409 name = "src_tracing_ipc_common",
1410 srcs = [
1411 "src/tracing/ipc/default_socket.cc",
Eric Seckler14a22db2020-02-03 13:47:08 +00001412 "src/tracing/ipc/memfd.cc",
1413 "src/tracing/ipc/memfd.h",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00001414 "src/tracing/ipc/posix_shared_memory.cc",
1415 "src/tracing/ipc/posix_shared_memory.h",
1416 ],
1417)
1418
Primiano Tucci3feec552020-02-04 11:14:42 +00001419# GN target: //src/tracing:client_api_without_backends
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001420filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001421 name = "src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001422 srcs = [
1423 "src/tracing/data_source.cc",
Sami Kyostila29ff8442019-11-26 16:05:13 +00001424 "src/tracing/debug_annotation.cc",
Sami Kyostila10b270a2019-11-19 19:12:03 +00001425 "src/tracing/event_context.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001426 "src/tracing/internal/tracing_muxer_impl.cc",
1427 "src/tracing/internal/tracing_muxer_impl.h",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001428 "src/tracing/internal/track_event_internal.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001429 "src/tracing/platform.cc",
1430 "src/tracing/tracing.cc",
Sami Kyostila26a04372020-01-13 12:46:48 +00001431 "src/tracing/track.cc",
Sami Kyostila1eebf5e2019-10-24 17:36:15 +01001432 "src/tracing/track_event_category_registry.cc",
Sami Kyostila91f38e42020-02-03 13:59:23 +00001433 "src/tracing/track_event_legacy.cc",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001434 "src/tracing/virtual_destructors.cc",
1435 ],
1436)
1437
Primiano Tucci1d409982019-09-19 10:15:18 +01001438# GN target: //src/tracing:common
1439filegroup(
1440 name = "src_tracing_common",
1441 srcs = [
1442 "src/tracing/trace_writer_base.cc",
1443 ],
1444)
1445
Primiano Tucci55b4d912020-01-28 11:17:51 +00001446# GN target: //src/tracing:in_process_backend
1447filegroup(
1448 name = "src_tracing_in_process_backend",
1449 srcs = [
1450 "src/tracing/internal/in_process_tracing_backend.cc",
1451 ],
1452)
1453
Pascal Muetschardb4966c52019-09-24 13:38:09 -07001454# GN target: //src/tracing:platform_posix
1455filegroup(
1456 name = "src_tracing_platform_posix",
1457 srcs = [
1458 "src/tracing/platform_posix.cc",
1459 ],
1460)
1461
Primiano Tucci3feec552020-02-04 11:14:42 +00001462# GN target: //src/tracing:system_backend
Primiano Tucci55b4d912020-01-28 11:17:51 +00001463filegroup(
Primiano Tucci3feec552020-02-04 11:14:42 +00001464 name = "src_tracing_system_backend",
Primiano Tucci55b4d912020-01-28 11:17:51 +00001465 srcs = [
1466 "src/tracing/internal/system_tracing_backend.cc",
1467 ],
1468)
1469
Lalit Maganti65600342019-09-19 21:35:35 +01001470# GN target: //tools/trace_to_text:common
1471filegroup(
1472 name = "tools_trace_to_text_common",
1473 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00001474 "tools/trace_to_text/deobfuscate_profile.cc",
1475 "tools/trace_to_text/deobfuscate_profile.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001476 "tools/trace_to_text/main.cc",
1477 "tools/trace_to_text/symbolize_profile.cc",
1478 "tools/trace_to_text/symbolize_profile.h",
Eric Secklera60a6b42019-10-07 10:35:48 +01001479 "tools/trace_to_text/trace_to_json.cc",
1480 "tools/trace_to_text/trace_to_json.h",
Lalit Maganti65600342019-09-19 21:35:35 +01001481 "tools/trace_to_text/trace_to_profile.cc",
1482 "tools/trace_to_text/trace_to_profile.h",
1483 "tools/trace_to_text/trace_to_systrace.cc",
1484 "tools/trace_to_text/trace_to_systrace.h",
1485 "tools/trace_to_text/trace_to_text.h",
1486 ],
1487)
1488
1489# GN target: //tools/trace_to_text:full
1490filegroup(
1491 name = "tools_trace_to_text_full",
1492 srcs = [
1493 "tools/trace_to_text/proto_full_utils.cc",
1494 "tools/trace_to_text/proto_full_utils.h",
1495 "tools/trace_to_text/trace_to_text.cc",
1496 ],
1497)
1498
Primiano Tucci1d409982019-09-19 10:15:18 +01001499# GN target: //tools/trace_to_text:pprofbuilder
1500filegroup(
1501 name = "tools_trace_to_text_pprofbuilder",
1502 srcs = [
1503 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01001504 ],
1505)
1506
Primiano Tucci1d409982019-09-19 10:15:18 +01001507# GN target: //tools/trace_to_text:utils
1508filegroup(
1509 name = "tools_trace_to_text_utils",
1510 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01001511 "tools/trace_to_text/utils.cc",
1512 "tools/trace_to_text/utils.h",
1513 ],
1514)
1515
Primiano Tucci1d409982019-09-19 10:15:18 +01001516# ##############################################################################
1517# Proto libraries
1518# ##############################################################################
1519
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001520# GN target: //protos/perfetto/common:cpp
1521perfetto_cc_protocpp_library(
1522 name = "protos_perfetto_common_cpp",
1523 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001524 ":protos_perfetto_common_protos",
1525 ],
1526)
1527
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001528# GN target: //protos/perfetto/common:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001529perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001530 name = "protos_perfetto_common_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001531 deps = [
1532 ":protos_perfetto_common_protos",
1533 ],
1534)
1535
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001536# GN target: //protos/perfetto/common:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001537perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001538 name = "protos_perfetto_common_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001539 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001540 "protos/perfetto/common/android_log_constants.proto",
Eric Secklerdc454522020-05-20 19:40:23 +01001541 "protos/perfetto/common/builtin_clock.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001542 "protos/perfetto/common/commit_data_request.proto",
1543 "protos/perfetto/common/data_source_descriptor.proto",
1544 "protos/perfetto/common/descriptor.proto",
1545 "protos/perfetto/common/gpu_counter_descriptor.proto",
1546 "protos/perfetto/common/observable_events.proto",
1547 "protos/perfetto/common/sys_stats_counters.proto",
1548 "protos/perfetto/common/trace_stats.proto",
Primiano Tuccif5a94cc2020-03-26 10:02:13 +00001549 "protos/perfetto/common/tracing_service_capabilities.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001550 "protos/perfetto/common/tracing_service_state.proto",
1551 "protos/perfetto/common/track_event_descriptor.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001552 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001553 visibility = [
1554 PERFETTO_CONFIG.proto_library_visibility,
1555 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001556)
1557
1558# GN target: //protos/perfetto/common:zero
1559perfetto_cc_protozero_library(
1560 name = "protos_perfetto_common_zero",
1561 deps = [
1562 ":protos_perfetto_common_protos",
1563 ],
1564)
1565
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001566# GN target: //protos/perfetto/config/android:cpp
1567perfetto_cc_protocpp_library(
1568 name = "protos_perfetto_config_android_cpp",
1569 deps = [
Hector Dearman70fc6ca2019-10-23 13:57:43 +01001570 ":protos_perfetto_config_android_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001571 ":protos_perfetto_common_cpp",
1572 ],
1573)
1574
Primiano Tucci1d409982019-09-19 10:15:18 +01001575# GN target: //protos/perfetto/config/android:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001576perfetto_cc_proto_library(
1577 name = "protos_perfetto_config_android_lite",
1578 deps = [
1579 ":protos_perfetto_config_android_protos",
1580 ],
1581)
1582
1583# GN target: //protos/perfetto/config/android:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001584perfetto_proto_library(
1585 name = "protos_perfetto_config_android_protos",
1586 srcs = [
1587 "protos/perfetto/config/android/android_log_config.proto",
Simon MacMullen1f5319f2020-05-01 16:30:44 +01001588 "protos/perfetto/config/android/android_polled_state_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001589 "protos/perfetto/config/android/packages_list_config.proto",
1590 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001591 visibility = [
1592 PERFETTO_CONFIG.proto_library_visibility,
1593 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001594 deps = [
1595 ":protos_perfetto_common_protos",
1596 ],
1597)
1598
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001599# GN target: //protos/perfetto/config/android:zero
1600perfetto_cc_protozero_library(
1601 name = "protos_perfetto_config_android_zero",
1602 deps = [
1603 ":protos_perfetto_config_android_protos",
1604 ],
1605)
1606
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001607# GN target: //protos/perfetto/config:cpp
1608perfetto_cc_protocpp_library(
1609 name = "protos_perfetto_config_cpp",
1610 deps = [
Hector Dearman70fc6ca2019-10-23 13:57:43 +01001611 ":protos_perfetto_config_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001612 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001613 ":protos_perfetto_config_android_cpp",
Primiano Tucci6a7813d2019-11-19 11:08:50 +00001614 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostila38cd0412020-02-12 17:09:52 +00001615 ":protos_perfetto_config_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001616 ":protos_perfetto_config_ftrace_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001617 ":protos_perfetto_config_profiling_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001618 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001619 ":protos_perfetto_config_power_cpp",
1620 ":protos_perfetto_common_cpp",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001621 ":protos_perfetto_config_sys_stats_cpp",
1622 ],
1623)
1624
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001625# GN target: //protos/perfetto/config/ftrace:cpp
1626perfetto_cc_protocpp_library(
1627 name = "protos_perfetto_config_ftrace_cpp",
1628 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001629 ":protos_perfetto_config_ftrace_protos",
1630 ],
1631)
1632
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001633# GN target: //protos/perfetto/config/ftrace:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001634perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001635 name = "protos_perfetto_config_ftrace_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001636 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001637 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001638 ],
1639)
1640
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001641# GN target: //protos/perfetto/config/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001642perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001643 name = "protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001644 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001645 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001646 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001647 visibility = [
1648 PERFETTO_CONFIG.proto_library_visibility,
1649 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001650)
1651
1652# GN target: //protos/perfetto/config/ftrace:zero
1653perfetto_cc_protozero_library(
1654 name = "protos_perfetto_config_ftrace_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01001655 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001656 ":protos_perfetto_config_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001657 ],
1658)
1659
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001660# GN target: //protos/perfetto/config/gpu:cpp
1661perfetto_cc_protocpp_library(
1662 name = "protos_perfetto_config_gpu_cpp",
1663 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001664 ":protos_perfetto_config_gpu_protos",
1665 ],
1666)
1667
Primiano Tucci1d409982019-09-19 10:15:18 +01001668# GN target: //protos/perfetto/config/gpu:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001669perfetto_cc_proto_library(
1670 name = "protos_perfetto_config_gpu_lite",
1671 deps = [
1672 ":protos_perfetto_config_gpu_protos",
1673 ],
1674)
1675
1676# GN target: //protos/perfetto/config/gpu:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001677perfetto_proto_library(
1678 name = "protos_perfetto_config_gpu_protos",
1679 srcs = [
1680 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Mohammad Reza Zakerinasabd9a209c2019-11-28 14:12:55 -05001681 "protos/perfetto/config/gpu/vulkan_memory_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001682 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001683 visibility = [
1684 PERFETTO_CONFIG.proto_library_visibility,
1685 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001686)
1687
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001688# GN target: //protos/perfetto/config/gpu:zero
1689perfetto_cc_protozero_library(
1690 name = "protos_perfetto_config_gpu_zero",
1691 deps = [
1692 ":protos_perfetto_config_gpu_protos",
1693 ],
1694)
1695
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001696# GN target: //protos/perfetto/config/inode_file:cpp
1697perfetto_cc_protocpp_library(
1698 name = "protos_perfetto_config_inode_file_cpp",
1699 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001700 ":protos_perfetto_config_inode_file_protos",
1701 ],
1702)
1703
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001704# GN target: //protos/perfetto/config/inode_file:lite
1705perfetto_cc_proto_library(
1706 name = "protos_perfetto_config_inode_file_lite",
1707 deps = [
1708 ":protos_perfetto_config_inode_file_protos",
1709 ],
1710)
1711
1712# GN target: //protos/perfetto/config/inode_file:zero
1713perfetto_proto_library(
1714 name = "protos_perfetto_config_inode_file_protos",
1715 srcs = [
1716 "protos/perfetto/config/inode_file/inode_file_config.proto",
1717 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001718 visibility = [
1719 PERFETTO_CONFIG.proto_library_visibility,
1720 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001721)
1722
1723# GN target: //protos/perfetto/config/inode_file:zero
1724perfetto_cc_protozero_library(
1725 name = "protos_perfetto_config_inode_file_zero",
1726 deps = [
1727 ":protos_perfetto_config_inode_file_protos",
1728 ],
1729)
1730
1731# GN target: //protos/perfetto/config:lite
1732perfetto_cc_proto_library(
1733 name = "protos_perfetto_config_lite",
1734 deps = [
1735 ":protos_perfetto_config_protos",
1736 ],
1737)
1738
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07001739# GN target: //protos/perfetto/config:merged_config
1740perfetto_cc_proto_library(
1741 name = "protos_perfetto_config_merged_config",
1742 deps = [
1743 ":protos_perfetto_config_merged_config_protos",
1744 ],
1745)
1746
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07001747# GN target: //protos/perfetto/config:merged_config
1748perfetto_proto_library(
1749 name = "protos_perfetto_config_merged_config_protos",
1750 srcs = [
1751 "protos/perfetto/config/perfetto_config.proto",
1752 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00001753 visibility = PERFETTO_CONFIG.public_visibility,
Pascal Muetschardb7cdea02019-09-23 15:25:20 -07001754)
1755
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001756# GN target: //protos/perfetto/config/power:cpp
1757perfetto_cc_protocpp_library(
1758 name = "protos_perfetto_config_power_cpp",
1759 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001760 ":protos_perfetto_config_power_protos",
1761 ],
1762)
1763
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001764# GN target: //protos/perfetto/config/power:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001765perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001766 name = "protos_perfetto_config_power_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001767 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001768 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001769 ],
1770)
1771
1772# GN target: //protos/perfetto/config/power:zero
1773perfetto_proto_library(
1774 name = "protos_perfetto_config_power_protos",
1775 srcs = [
1776 "protos/perfetto/config/power/android_power_config.proto",
1777 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001778 visibility = [
1779 PERFETTO_CONFIG.proto_library_visibility,
1780 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001781)
1782
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001783# GN target: //protos/perfetto/config/power:zero
1784perfetto_cc_protozero_library(
1785 name = "protos_perfetto_config_power_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01001786 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001787 ":protos_perfetto_config_power_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001788 ],
1789)
1790
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001791# GN target: //protos/perfetto/config/process_stats:cpp
1792perfetto_cc_protocpp_library(
1793 name = "protos_perfetto_config_process_stats_cpp",
1794 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001795 ":protos_perfetto_config_process_stats_protos",
1796 ],
1797)
1798
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001799# GN target: //protos/perfetto/config/process_stats:lite
1800perfetto_cc_proto_library(
1801 name = "protos_perfetto_config_process_stats_lite",
1802 deps = [
1803 ":protos_perfetto_config_process_stats_protos",
1804 ],
1805)
1806
1807# GN target: //protos/perfetto/config/process_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001808perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001809 name = "protos_perfetto_config_process_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001810 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001811 "protos/perfetto/config/process_stats/process_stats_config.proto",
1812 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001813 visibility = [
1814 PERFETTO_CONFIG.proto_library_visibility,
1815 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001816)
1817
1818# GN target: //protos/perfetto/config/process_stats:zero
1819perfetto_cc_protozero_library(
1820 name = "protos_perfetto_config_process_stats_zero",
1821 deps = [
1822 ":protos_perfetto_config_process_stats_protos",
1823 ],
1824)
1825
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001826# GN target: //protos/perfetto/config/profiling:cpp
1827perfetto_cc_protocpp_library(
1828 name = "protos_perfetto_config_profiling_cpp",
1829 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001830 ":protos_perfetto_config_profiling_protos",
1831 ],
1832)
1833
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001834# GN target: //protos/perfetto/config/profiling:lite
1835perfetto_cc_proto_library(
1836 name = "protos_perfetto_config_profiling_lite",
1837 deps = [
1838 ":protos_perfetto_config_profiling_protos",
1839 ],
1840)
1841
1842# GN target: //protos/perfetto/config/profiling:zero
1843perfetto_proto_library(
1844 name = "protos_perfetto_config_profiling_protos",
1845 srcs = [
1846 "protos/perfetto/config/profiling/heapprofd_config.proto",
1847 "protos/perfetto/config/profiling/java_hprof_config.proto",
Ryan Savitski09ff3b22019-11-20 15:20:16 +00001848 "protos/perfetto/config/profiling/perf_event_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001849 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001850 visibility = [
1851 PERFETTO_CONFIG.proto_library_visibility,
1852 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001853)
1854
1855# GN target: //protos/perfetto/config/profiling:zero
1856perfetto_cc_protozero_library(
1857 name = "protos_perfetto_config_profiling_zero",
1858 deps = [
1859 ":protos_perfetto_config_profiling_protos",
1860 ],
1861)
1862
1863# GN target: //protos/perfetto/config:zero
1864perfetto_proto_library(
1865 name = "protos_perfetto_config_protos",
1866 srcs = [
1867 "protos/perfetto/config/chrome/chrome_config.proto",
1868 "protos/perfetto/config/data_source_config.proto",
Primiano Tucciff68cac2020-08-06 18:13:17 +02001869 "protos/perfetto/config/stress_test_config.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001870 "protos/perfetto/config/test_config.proto",
1871 "protos/perfetto/config/trace_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001872 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00001873 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01001874 deps = [
1875 ":protos_perfetto_common_protos",
1876 ":protos_perfetto_config_android_protos",
1877 ":protos_perfetto_config_ftrace_protos",
1878 ":protos_perfetto_config_gpu_protos",
1879 ":protos_perfetto_config_inode_file_protos",
1880 ":protos_perfetto_config_power_protos",
1881 ":protos_perfetto_config_process_stats_protos",
1882 ":protos_perfetto_config_profiling_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001883 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00001884 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001885 ],
1886)
1887
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001888# GN target: //protos/perfetto/config/sys_stats:cpp
1889perfetto_cc_protocpp_library(
1890 name = "protos_perfetto_config_sys_stats_cpp",
1891 deps = [
Hector Dearman70fc6ca2019-10-23 13:57:43 +01001892 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01001893 ":protos_perfetto_common_cpp",
1894 ],
1895)
1896
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001897# GN target: //protos/perfetto/config/sys_stats:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01001898perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001899 name = "protos_perfetto_config_sys_stats_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01001900 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001901 ":protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001902 ],
1903)
1904
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001905# GN target: //protos/perfetto/config/sys_stats:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01001906perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001907 name = "protos_perfetto_config_sys_stats_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01001908 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001909 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01001910 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00001911 visibility = [
1912 PERFETTO_CONFIG.proto_library_visibility,
1913 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01001914 deps = [
1915 ":protos_perfetto_common_protos",
1916 ],
1917)
1918
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001919# GN target: //protos/perfetto/config/sys_stats:zero
1920perfetto_cc_protozero_library(
1921 name = "protos_perfetto_config_sys_stats_zero",
1922 deps = [
1923 ":protos_perfetto_config_sys_stats_protos",
1924 ],
1925)
1926
Sami Kyostila38cd0412020-02-12 17:09:52 +00001927# GN target: //protos/perfetto/config/track_event:cpp
1928perfetto_cc_protocpp_library(
1929 name = "protos_perfetto_config_track_event_cpp",
1930 deps = [
1931 ":protos_perfetto_config_track_event_protos",
1932 ],
1933)
1934
1935# GN target: //protos/perfetto/config/track_event:lite
1936perfetto_cc_proto_library(
1937 name = "protos_perfetto_config_track_event_lite",
1938 deps = [
1939 ":protos_perfetto_config_track_event_protos",
1940 ],
1941)
1942
1943# GN target: //protos/perfetto/config/track_event:zero
1944perfetto_proto_library(
1945 name = "protos_perfetto_config_track_event_protos",
1946 srcs = [
1947 "protos/perfetto/config/track_event/track_event_config.proto",
1948 ],
1949 visibility = [
1950 PERFETTO_CONFIG.proto_library_visibility,
1951 ],
1952)
1953
1954# GN target: //protos/perfetto/config/track_event:zero
1955perfetto_cc_protozero_library(
1956 name = "protos_perfetto_config_track_event_zero",
1957 deps = [
1958 ":protos_perfetto_config_track_event_protos",
1959 ],
1960)
1961
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001962# GN target: //protos/perfetto/config:zero
1963perfetto_cc_protozero_library(
1964 name = "protos_perfetto_config_zero",
1965 deps = [
1966 ":protos_perfetto_config_protos",
1967 ],
1968)
1969
Primiano Tuccie8020f92019-11-26 13:24:01 +00001970# GN target: //protos/perfetto/ipc:cpp
1971perfetto_cc_protocpp_library(
1972 name = "protos_perfetto_ipc_cpp",
1973 deps = [
1974 ":protos_perfetto_ipc_protos",
1975 ":protos_perfetto_config_process_stats_cpp",
1976 ":protos_perfetto_config_android_cpp",
1977 ":protos_perfetto_config_inode_file_cpp",
Sami Kyostila38cd0412020-02-12 17:09:52 +00001978 ":protos_perfetto_config_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001979 ":protos_perfetto_config_ftrace_cpp",
1980 ":protos_perfetto_config_profiling_cpp",
1981 ":protos_perfetto_config_gpu_cpp",
1982 ":protos_perfetto_config_cpp",
1983 ":protos_perfetto_config_power_cpp",
1984 ":protos_perfetto_common_cpp",
1985 ":protos_perfetto_config_sys_stats_cpp",
1986 ],
1987)
1988
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01001989# GN target: //protos/perfetto/ipc:ipc
1990perfetto_cc_ipc_library(
1991 name = "protos_perfetto_ipc_ipc",
1992 deps = [
Primiano Tuccif0d63af2019-11-19 17:07:37 +00001993 ":protos_perfetto_ipc_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001994 ":protos_perfetto_config_android_cpp",
Sami Kyostila38cd0412020-02-12 17:09:52 +00001995 ":protos_perfetto_config_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00001996 ":protos_perfetto_ipc_wire_protocol_cpp",
Sami Kyostila38cd0412020-02-12 17:09:52 +00001997 ":protos_perfetto_common_cpp",
1998 ":protos_perfetto_config_process_stats_cpp",
1999 ":protos_perfetto_config_ftrace_cpp",
2000 ":protos_perfetto_config_inode_file_cpp",
2001 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002002 ":protos_perfetto_config_gpu_cpp",
2003 ":protos_perfetto_config_cpp",
2004 ":protos_perfetto_config_power_cpp",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002005 ":protos_perfetto_ipc_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002006 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tucci1d409982019-09-19 10:15:18 +01002007 ],
2008)
2009
Primiano Tuccie8020f92019-11-26 13:24:01 +00002010# GN target: //protos/perfetto/ipc:ipc
Primiano Tucci1d409982019-09-19 10:15:18 +01002011perfetto_proto_library(
Primiano Tuccif0d63af2019-11-19 17:07:37 +00002012 name = "protos_perfetto_ipc_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002013 srcs = [
2014 "protos/perfetto/ipc/consumer_port.proto",
2015 "protos/perfetto/ipc/producer_port.proto",
2016 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002017 visibility = [
2018 PERFETTO_CONFIG.proto_library_visibility,
2019 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002020 deps = [
2021 ":protos_perfetto_common_protos",
2022 ":protos_perfetto_config_android_protos",
2023 ":protos_perfetto_config_ftrace_protos",
2024 ":protos_perfetto_config_gpu_protos",
2025 ":protos_perfetto_config_inode_file_protos",
2026 ":protos_perfetto_config_power_protos",
2027 ":protos_perfetto_config_process_stats_protos",
2028 ":protos_perfetto_config_profiling_protos",
2029 ":protos_perfetto_config_protos",
2030 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002031 ":protos_perfetto_config_track_event_protos",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002032 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002033 ],
2034)
2035
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002036# GN target: //protos/perfetto/ipc:wire_protocol_cpp
2037perfetto_cc_protocpp_library(
2038 name = "protos_perfetto_ipc_wire_protocol_cpp",
2039 deps = [
2040 ":protos_perfetto_ipc_wire_protocol_protos",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002041 ],
2042)
2043
Primiano Tuccie8020f92019-11-26 13:24:01 +00002044# GN target: //protos/perfetto/ipc:wire_protocol_cpp
Primiano Tucci1d409982019-09-19 10:15:18 +01002045perfetto_proto_library(
2046 name = "protos_perfetto_ipc_wire_protocol_protos",
2047 srcs = [
2048 "protos/perfetto/ipc/wire_protocol.proto",
2049 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002050 visibility = [
2051 PERFETTO_CONFIG.proto_library_visibility,
2052 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002053)
2054
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002055# GN target: //protos/perfetto/metrics/android:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002056perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002057 name = "protos_perfetto_metrics_android_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002058 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002059 ":protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002060 ],
2061)
2062
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002063# GN target: //protos/perfetto/metrics/android:source_set
Primiano Tucci1d409982019-09-19 10:15:18 +01002064perfetto_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002065 name = "protos_perfetto_metrics_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002066 srcs = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002067 "protos/perfetto/metrics/android/batt_metric.proto",
2068 "protos/perfetto/metrics/android/cpu_metric.proto",
Edgar Arriaga32975d22020-03-03 10:31:44 -08002069 "protos/perfetto/metrics/android/display_metrics.proto",
Yiwei Zhang617d3f62020-09-07 15:57:38 -07002070 "protos/perfetto/metrics/android/gpu_metric.proto",
Ioannis Ilkos73f2cd02019-10-08 22:49:02 +01002071 "protos/perfetto/metrics/android/heap_profile_callsites.proto",
Stan Iliev1d531822020-01-17 11:12:18 -05002072 "protos/perfetto/metrics/android/hwui_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002073 "protos/perfetto/metrics/android/ion_metric.proto",
Ioannis Ilkosf6b6aae2020-02-25 12:14:54 +00002074 "protos/perfetto/metrics/android/java_heap_histogram.proto",
Ioannis Ilkos2c832dc2019-11-08 11:35:03 +00002075 "protos/perfetto/metrics/android/java_heap_stats.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002076 "protos/perfetto/metrics/android/lmk_metric.proto",
Rafal Slawik88ffa442019-11-27 14:42:06 +00002077 "protos/perfetto/metrics/android/lmk_reason_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002078 "protos/perfetto/metrics/android/mem_metric.proto",
2079 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
2080 "protos/perfetto/metrics/android/package_list.proto",
2081 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkoscfcd7f82019-11-19 14:43:24 +00002082 "protos/perfetto/metrics/android/process_metadata.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002083 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti5fb5b4c2020-06-10 13:06:41 +01002084 "protos/perfetto/metrics/android/surfaceflinger.proto",
Ioannis Ilkos07270452020-03-06 17:50:17 +00002085 "protos/perfetto/metrics/android/task_names.proto",
Rafal Slawik7eaddac2020-04-21 17:35:05 +01002086 "protos/perfetto/metrics/android/thread_time_in_state_metric.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002087 "protos/perfetto/metrics/android/unsymbolized_frames.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002088 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002089 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002090)
2091
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002092# GN target: //protos/perfetto/metrics/chrome:descriptor
2093perfetto_proto_descriptor(
2094 name = "protos_perfetto_metrics_chrome_descriptor",
2095 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002096 ":protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002097 ],
2098 outs = [
2099 "protos_perfetto_metrics_chrome_descriptor.bin",
2100 ],
2101)
2102
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002103# GN target: //protos/perfetto/metrics/chrome:source_set
2104perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002105 name = "protos_perfetto_metrics_chrome_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002106 srcs = [
2107 "protos/perfetto/metrics/chrome/all_chrome_metrics.proto",
2108 "protos/perfetto/metrics/chrome/test_chrome_metric.proto",
2109 ],
2110 visibility = [
2111 PERFETTO_CONFIG.proto_library_visibility,
2112 ],
2113 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002114 ":protos_perfetto_metrics_android_protos",
2115 ":protos_perfetto_metrics_custom_options_protos",
2116 ":protos_perfetto_metrics_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002117 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2118)
2119
2120# GN target: //protos/perfetto/metrics:custom_options_source_set
2121perfetto_proto_library(
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002122 name = "protos_perfetto_metrics_custom_options_protos",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01002123 srcs = [
2124 "protos/perfetto/metrics/custom_options.proto",
2125 ],
2126 visibility = [
2127 PERFETTO_CONFIG.proto_library_visibility,
2128 ],
2129 deps = [
2130 ] + PERFETTO_CONFIG.deps.protobuf_descriptor_proto,
2131)
2132
Lalit Maganti117272f2020-09-11 14:01:18 +01002133# GN target: //protos/perfetto/metrics:descriptor
2134perfetto_proto_descriptor(
2135 name = "protos_perfetto_metrics_descriptor",
2136 deps = [
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002137 ":protos_perfetto_metrics_protos",
Lalit Maganti117272f2020-09-11 14:01:18 +01002138 ],
2139 outs = [
2140 "protos_perfetto_metrics_descriptor.bin",
2141 ],
2142)
2143
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002144# GN target: //protos/perfetto/metrics:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002145perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002146 name = "protos_perfetto_metrics_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002147 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002148 ":protos_perfetto_metrics_protos",
2149 ],
2150)
2151
Lalit Maganti64cd1f62020-09-14 17:44:52 +01002152# GN target: //protos/perfetto/metrics:source_set
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002153perfetto_proto_library(
2154 name = "protos_perfetto_metrics_protos",
2155 srcs = [
2156 "protos/perfetto/metrics/metrics.proto",
2157 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002158 visibility = PERFETTO_CONFIG.public_visibility,
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002159 deps = [
2160 ":protos_perfetto_metrics_android_protos",
2161 ],
2162)
2163
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002164# GN target: //protos/perfetto/trace/android:lite
2165perfetto_cc_proto_library(
2166 name = "protos_perfetto_trace_android_lite",
2167 deps = [
2168 ":protos_perfetto_trace_android_protos",
2169 ],
2170)
2171
2172# GN target: //protos/perfetto/trace/android:zero
2173perfetto_proto_library(
2174 name = "protos_perfetto_trace_android_protos",
2175 srcs = [
2176 "protos/perfetto/trace/android/android_log.proto",
Yiwei Zhangc8411942020-06-25 14:41:23 -07002177 "protos/perfetto/trace/android/gpu_mem_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002178 "protos/perfetto/trace/android/graphics_frame_event.proto",
Simon MacMullen3d4c54a2020-04-17 16:40:53 +01002179 "protos/perfetto/trace/android/initial_display_state.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002180 "protos/perfetto/trace/android/packages_list.proto",
2181 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002182 visibility = [
2183 PERFETTO_CONFIG.proto_library_visibility,
2184 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002185 deps = [
2186 ":protos_perfetto_common_protos",
2187 ],
2188)
2189
2190# GN target: //protos/perfetto/trace/android:zero
2191perfetto_cc_protozero_library(
2192 name = "protos_perfetto_trace_android_zero",
2193 deps = [
2194 ":protos_perfetto_trace_android_protos",
2195 ],
2196)
2197
2198# GN target: //protos/perfetto/trace/chrome:lite
2199perfetto_cc_proto_library(
2200 name = "protos_perfetto_trace_chrome_lite",
2201 deps = [
2202 ":protos_perfetto_trace_chrome_protos",
2203 ],
2204)
2205
2206# GN target: //protos/perfetto/trace/chrome:zero
2207perfetto_proto_library(
2208 name = "protos_perfetto_trace_chrome_protos",
2209 srcs = [
2210 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
2211 "protos/perfetto/trace/chrome/chrome_metadata.proto",
2212 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
2213 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002214 visibility = [
2215 PERFETTO_CONFIG.proto_library_visibility,
2216 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002217)
2218
2219# GN target: //protos/perfetto/trace/chrome:zero
2220perfetto_cc_protozero_library(
2221 name = "protos_perfetto_trace_chrome_zero",
2222 deps = [
2223 ":protos_perfetto_trace_chrome_protos",
2224 ],
2225)
2226
2227# GN target: //protos/perfetto/trace/filesystem:lite
2228perfetto_cc_proto_library(
2229 name = "protos_perfetto_trace_filesystem_lite",
2230 deps = [
2231 ":protos_perfetto_trace_filesystem_protos",
2232 ],
2233)
2234
2235# GN target: //protos/perfetto/trace/filesystem:zero
2236perfetto_proto_library(
2237 name = "protos_perfetto_trace_filesystem_protos",
2238 srcs = [
2239 "protos/perfetto/trace/filesystem/inode_file_map.proto",
2240 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002241 visibility = [
2242 PERFETTO_CONFIG.proto_library_visibility,
2243 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002244)
2245
2246# GN target: //protos/perfetto/trace/filesystem:zero
2247perfetto_cc_protozero_library(
2248 name = "protos_perfetto_trace_filesystem_zero",
2249 deps = [
2250 ":protos_perfetto_trace_filesystem_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002251 ],
2252)
2253
2254# GN target: //protos/perfetto/trace/ftrace:lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002255perfetto_cc_proto_library(
2256 name = "protos_perfetto_trace_ftrace_lite",
2257 deps = [
2258 ":protos_perfetto_trace_ftrace_protos",
2259 ],
2260)
2261
2262# GN target: //protos/perfetto/trace/ftrace:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002263perfetto_proto_library(
2264 name = "protos_perfetto_trace_ftrace_protos",
2265 srcs = [
2266 "protos/perfetto/trace/ftrace/binder.proto",
2267 "protos/perfetto/trace/ftrace/block.proto",
2268 "protos/perfetto/trace/ftrace/cgroup.proto",
2269 "protos/perfetto/trace/ftrace/clk.proto",
2270 "protos/perfetto/trace/ftrace/compaction.proto",
Hector Dearman30fa3982020-08-11 17:09:40 +01002271 "protos/perfetto/trace/ftrace/cpuhp.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002272 "protos/perfetto/trace/ftrace/ext4.proto",
2273 "protos/perfetto/trace/ftrace/f2fs.proto",
2274 "protos/perfetto/trace/ftrace/fence.proto",
2275 "protos/perfetto/trace/ftrace/filemap.proto",
2276 "protos/perfetto/trace/ftrace/ftrace.proto",
2277 "protos/perfetto/trace/ftrace/ftrace_event.proto",
2278 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
2279 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
2280 "protos/perfetto/trace/ftrace/generic.proto",
Adithya Srinivasanc615dec2020-06-24 14:50:06 -07002281 "protos/perfetto/trace/ftrace/gpu_mem.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002282 "protos/perfetto/trace/ftrace/i2c.proto",
Ioannis Ilkose5ddb4a2020-04-22 09:45:19 +01002283 "protos/perfetto/trace/ftrace/ion.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002284 "protos/perfetto/trace/ftrace/ipi.proto",
2285 "protos/perfetto/trace/ftrace/irq.proto",
2286 "protos/perfetto/trace/ftrace/kmem.proto",
2287 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
2288 "protos/perfetto/trace/ftrace/mdss.proto",
2289 "protos/perfetto/trace/ftrace/mm_event.proto",
2290 "protos/perfetto/trace/ftrace/oom.proto",
2291 "protos/perfetto/trace/ftrace/power.proto",
2292 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
2293 "protos/perfetto/trace/ftrace/regulator.proto",
2294 "protos/perfetto/trace/ftrace/sched.proto",
Hector Dearman324cc4b2020-06-16 12:42:26 +01002295 "protos/perfetto/trace/ftrace/scm.proto",
Hector Dearman3cd7cd52019-12-04 16:07:16 +00002296 "protos/perfetto/trace/ftrace/sde.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002297 "protos/perfetto/trace/ftrace/signal.proto",
2298 "protos/perfetto/trace/ftrace/sync.proto",
2299 "protos/perfetto/trace/ftrace/systrace.proto",
2300 "protos/perfetto/trace/ftrace/task.proto",
2301 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Isabelle Taylor9cc87862020-07-21 16:53:32 +01002302 "protos/perfetto/trace/ftrace/thermal.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002303 "protos/perfetto/trace/ftrace/vmscan.proto",
2304 "protos/perfetto/trace/ftrace/workqueue.proto",
2305 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002306 visibility = [
2307 PERFETTO_CONFIG.proto_library_visibility,
2308 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002309)
2310
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002311# GN target: //protos/perfetto/trace/ftrace:zero
2312perfetto_cc_protozero_library(
2313 name = "protos_perfetto_trace_ftrace_zero",
2314 deps = [
2315 ":protos_perfetto_trace_ftrace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002316 ],
2317)
2318
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002319# GN target: //protos/perfetto/trace/gpu:lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002320perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002321 name = "protos_perfetto_trace_gpu_lite",
2322 deps = [
2323 ":protos_perfetto_trace_gpu_protos",
2324 ],
2325)
2326
2327# GN target: //protos/perfetto/trace/gpu:zero
2328perfetto_proto_library(
2329 name = "protos_perfetto_trace_gpu_protos",
2330 srcs = [
2331 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
Raymond Chiuc612b7f2019-09-18 14:53:28 -07002332 "protos/perfetto/trace/gpu/gpu_log.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002333 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
Raymond Chiu5d526b82019-11-22 14:18:51 -08002334 "protos/perfetto/trace/gpu/vulkan_api_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002335 "protos/perfetto/trace/gpu/vulkan_memory_event.proto",
2336 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002337 visibility = [
2338 PERFETTO_CONFIG.proto_library_visibility,
2339 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002340 deps = [
2341 ":protos_perfetto_common_protos",
2342 ],
2343)
2344
2345# GN target: //protos/perfetto/trace/gpu:zero
2346perfetto_cc_protozero_library(
2347 name = "protos_perfetto_trace_gpu_zero",
2348 deps = [
2349 ":protos_perfetto_trace_gpu_protos",
2350 ],
2351)
2352
2353# GN target: //protos/perfetto/trace/interned_data:lite
2354perfetto_cc_proto_library(
2355 name = "protos_perfetto_trace_interned_data_lite",
2356 deps = [
2357 ":protos_perfetto_trace_interned_data_protos",
2358 ],
2359)
2360
2361# GN target: //protos/perfetto/trace/interned_data:zero
2362perfetto_proto_library(
2363 name = "protos_perfetto_trace_interned_data_protos",
2364 srcs = [
2365 "protos/perfetto/trace/interned_data/interned_data.proto",
2366 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002367 visibility = [
2368 PERFETTO_CONFIG.proto_library_visibility,
2369 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002370 deps = [
Raymond Chiu37532e62020-04-06 16:15:48 -07002371 ":protos_perfetto_common_protos",
2372 ":protos_perfetto_trace_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002373 ":protos_perfetto_trace_profiling_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002374 ":protos_perfetto_trace_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002375 ],
2376)
2377
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002378# GN target: //protos/perfetto/trace/interned_data:zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002379perfetto_cc_protozero_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002380 name = "protos_perfetto_trace_interned_data_zero",
Primiano Tucci1d409982019-09-19 10:15:18 +01002381 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002382 ":protos_perfetto_trace_interned_data_protos",
2383 ],
2384)
2385
2386# GN target: //protos/perfetto/trace:merged_trace
2387perfetto_cc_proto_library(
2388 name = "protos_perfetto_trace_merged_trace",
2389 deps = [
2390 ":protos_perfetto_trace_merged_trace_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002391 ],
2392)
2393
Lalit Magantic3187f82019-09-20 14:51:11 +01002394# GN target: //protos/perfetto/trace:merged_trace
2395perfetto_proto_library(
2396 name = "protos_perfetto_trace_merged_trace_protos",
2397 srcs = [
2398 "protos/perfetto/trace/perfetto_trace.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002399 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002400 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002401)
2402
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002403# GN target: //protos/perfetto/trace:minimal_lite
Primiano Tucci1d409982019-09-19 10:15:18 +01002404perfetto_cc_proto_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002405 name = "protos_perfetto_trace_minimal_lite",
Primiano Tucci1d409982019-09-19 10:15:18 +01002406 deps = [
Primiano Tucci1d409982019-09-19 10:15:18 +01002407 ":protos_perfetto_trace_minimal_protos",
2408 ],
2409)
2410
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002411# GN target: //protos/perfetto/trace:minimal_zero
2412perfetto_proto_library(
2413 name = "protos_perfetto_trace_minimal_protos",
2414 srcs = [
2415 "protos/perfetto/trace/clock_snapshot.proto",
2416 "protos/perfetto/trace/system_info.proto",
2417 "protos/perfetto/trace/trigger.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002418 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002419 visibility = [
2420 PERFETTO_CONFIG.proto_library_visibility,
2421 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01002422 deps = [
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002423 ":protos_perfetto_common_protos",
2424 ":protos_perfetto_config_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002425 ":protos_perfetto_config_ftrace_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002426 ":protos_perfetto_config_gpu_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002427 ":protos_perfetto_config_inode_file_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002428 ":protos_perfetto_config_power_protos",
2429 ":protos_perfetto_config_process_stats_protos",
2430 ":protos_perfetto_config_profiling_protos",
2431 ":protos_perfetto_config_protos",
2432 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002433 ":protos_perfetto_config_track_event_protos",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002434 ],
2435)
2436
2437# GN target: //protos/perfetto/trace:minimal_zero
2438perfetto_cc_protozero_library(
2439 name = "protos_perfetto_trace_minimal_zero",
2440 deps = [
2441 ":protos_perfetto_trace_minimal_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002442 ],
2443)
2444
2445# GN target: //protos/perfetto/trace:non_minimal_lite
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002446perfetto_cc_proto_library(
2447 name = "protos_perfetto_trace_non_minimal_lite",
2448 deps = [
2449 ":protos_perfetto_trace_non_minimal_protos",
2450 ],
2451)
2452
2453# GN target: //protos/perfetto/trace:non_minimal_zero
Primiano Tucci1d409982019-09-19 10:15:18 +01002454perfetto_proto_library(
2455 name = "protos_perfetto_trace_non_minimal_protos",
2456 srcs = [
Andrew Shulaev46b12a92020-07-09 00:45:37 +01002457 "protos/perfetto/trace/extension_descriptor.proto",
Piotr Roguski10ee0502020-08-12 14:05:48 +02002458 "protos/perfetto/trace/memory_graph.proto",
Primiano Tucci1d409982019-09-19 10:15:18 +01002459 "protos/perfetto/trace/test_event.proto",
2460 "protos/perfetto/trace/trace.proto",
2461 "protos/perfetto/trace/trace_packet.proto",
2462 "protos/perfetto/trace/trace_packet_defaults.proto",
2463 ],
Lalit Magantie5aad3b2020-01-20 18:43:05 +00002464 visibility = PERFETTO_CONFIG.public_visibility,
Primiano Tucci1d409982019-09-19 10:15:18 +01002465 deps = [
2466 ":protos_perfetto_common_protos",
2467 ":protos_perfetto_config_android_protos",
2468 ":protos_perfetto_config_ftrace_protos",
2469 ":protos_perfetto_config_gpu_protos",
2470 ":protos_perfetto_config_inode_file_protos",
2471 ":protos_perfetto_config_power_protos",
2472 ":protos_perfetto_config_process_stats_protos",
2473 ":protos_perfetto_config_profiling_protos",
2474 ":protos_perfetto_config_protos",
2475 ":protos_perfetto_config_sys_stats_protos",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002476 ":protos_perfetto_config_track_event_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002477 ":protos_perfetto_trace_android_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002478 ":protos_perfetto_trace_chrome_protos",
2479 ":protos_perfetto_trace_filesystem_protos",
2480 ":protos_perfetto_trace_ftrace_protos",
2481 ":protos_perfetto_trace_gpu_protos",
2482 ":protos_perfetto_trace_interned_data_protos",
2483 ":protos_perfetto_trace_minimal_protos",
2484 ":protos_perfetto_trace_perfetto_protos",
2485 ":protos_perfetto_trace_power_protos",
2486 ":protos_perfetto_trace_profiling_protos",
2487 ":protos_perfetto_trace_ps_protos",
2488 ":protos_perfetto_trace_sys_stats_protos",
Rafal Slawikb013a112020-04-03 16:12:02 +01002489 ":protos_perfetto_trace_system_info_protos",
Primiano Tucci1d409982019-09-19 10:15:18 +01002490 ":protos_perfetto_trace_track_event_protos",
2491 ],
2492)
2493
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002494# GN target: //protos/perfetto/trace:non_minimal_zero
2495perfetto_cc_protozero_library(
2496 name = "protos_perfetto_trace_non_minimal_zero",
2497 deps = [
2498 ":protos_perfetto_trace_non_minimal_protos",
2499 ],
2500)
2501
2502# GN target: //protos/perfetto/trace/perfetto:lite
2503perfetto_cc_proto_library(
2504 name = "protos_perfetto_trace_perfetto_lite",
2505 deps = [
2506 ":protos_perfetto_trace_perfetto_protos",
2507 ],
2508)
2509
2510# GN target: //protos/perfetto/trace/perfetto:zero
2511perfetto_proto_library(
2512 name = "protos_perfetto_trace_perfetto_protos",
2513 srcs = [
2514 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
Primiano Tucci79e4dcb2020-04-08 09:51:02 +01002515 "protos/perfetto/trace/perfetto/tracing_service_event.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002516 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002517 visibility = [
2518 PERFETTO_CONFIG.proto_library_visibility,
2519 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002520)
2521
2522# GN target: //protos/perfetto/trace/perfetto:zero
2523perfetto_cc_protozero_library(
2524 name = "protos_perfetto_trace_perfetto_zero",
2525 deps = [
2526 ":protos_perfetto_trace_perfetto_protos",
2527 ],
2528)
2529
2530# GN target: //protos/perfetto/trace/power:lite
2531perfetto_cc_proto_library(
2532 name = "protos_perfetto_trace_power_lite",
2533 deps = [
2534 ":protos_perfetto_trace_power_protos",
2535 ],
2536)
2537
2538# GN target: //protos/perfetto/trace/power:zero
2539perfetto_proto_library(
2540 name = "protos_perfetto_trace_power_protos",
2541 srcs = [
2542 "protos/perfetto/trace/power/battery_counters.proto",
2543 "protos/perfetto/trace/power/power_rails.proto",
2544 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002545 visibility = [
2546 PERFETTO_CONFIG.proto_library_visibility,
2547 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002548)
2549
2550# GN target: //protos/perfetto/trace/power:zero
2551perfetto_cc_protozero_library(
2552 name = "protos_perfetto_trace_power_zero",
2553 deps = [
2554 ":protos_perfetto_trace_power_protos",
2555 ],
2556)
2557
2558# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
2559perfetto_proto_library(
2560 name = "protos_perfetto_trace_processor_metrics_impl_protos",
2561 srcs = [
2562 "protos/perfetto/trace_processor/metrics_impl.proto",
2563 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002564 visibility = [
2565 PERFETTO_CONFIG.proto_library_visibility,
2566 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002567)
2568
2569# GN target: //protos/perfetto/trace_processor:metrics_impl_zero
2570perfetto_cc_protozero_library(
2571 name = "protos_perfetto_trace_processor_metrics_impl_zero",
2572 deps = [
2573 ":protos_perfetto_trace_processor_metrics_impl_protos",
2574 ],
2575)
2576
Primiano Tuccia36cccc2019-10-27 13:15:04 +01002577# GN target: //protos/perfetto/trace_processor:zero
2578perfetto_proto_library(
2579 name = "protos_perfetto_trace_processor_protos",
2580 srcs = [
2581 "protos/perfetto/trace_processor/trace_processor.proto",
2582 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002583 visibility = [
2584 PERFETTO_CONFIG.proto_library_visibility,
2585 ],
Deepanjan Roy77747772020-09-01 15:10:33 -04002586 deps = [
2587 ":protos_perfetto_common_protos",
2588 ],
Primiano Tuccia36cccc2019-10-27 13:15:04 +01002589)
2590
2591# GN target: //protos/perfetto/trace_processor:zero
2592perfetto_cc_protozero_library(
2593 name = "protos_perfetto_trace_processor_zero",
2594 deps = [
2595 ":protos_perfetto_trace_processor_protos",
2596 ],
2597)
2598
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002599# GN target: //protos/perfetto/trace/profiling:lite
2600perfetto_cc_proto_library(
2601 name = "protos_perfetto_trace_profiling_lite",
2602 deps = [
2603 ":protos_perfetto_trace_profiling_protos",
2604 ],
2605)
2606
2607# GN target: //protos/perfetto/trace/profiling:zero
2608perfetto_proto_library(
2609 name = "protos_perfetto_trace_profiling_protos",
2610 srcs = [
Florian Mayerc2d09962020-08-12 15:52:50 +01002611 "protos/perfetto/trace/profiling/deobfuscation.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002612 "protos/perfetto/trace/profiling/heap_graph.proto",
2613 "protos/perfetto/trace/profiling/profile_common.proto",
2614 "protos/perfetto/trace/profiling/profile_packet.proto",
Florian Mayer633b4442020-04-04 11:54:17 +02002615 "protos/perfetto/trace/profiling/smaps.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002616 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002617 visibility = [
2618 PERFETTO_CONFIG.proto_library_visibility,
2619 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002620)
2621
2622# GN target: //protos/perfetto/trace/profiling:zero
2623perfetto_cc_protozero_library(
2624 name = "protos_perfetto_trace_profiling_zero",
2625 deps = [
2626 ":protos_perfetto_trace_profiling_protos",
2627 ],
2628)
2629
2630# GN target: //protos/perfetto/trace/ps:lite
2631perfetto_cc_proto_library(
2632 name = "protos_perfetto_trace_ps_lite",
2633 deps = [
2634 ":protos_perfetto_trace_ps_protos",
2635 ],
2636)
2637
2638# GN target: //protos/perfetto/trace/ps:zero
2639perfetto_proto_library(
2640 name = "protos_perfetto_trace_ps_protos",
2641 srcs = [
2642 "protos/perfetto/trace/ps/process_stats.proto",
2643 "protos/perfetto/trace/ps/process_tree.proto",
2644 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002645 visibility = [
2646 PERFETTO_CONFIG.proto_library_visibility,
2647 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002648)
2649
2650# GN target: //protos/perfetto/trace/ps:zero
2651perfetto_cc_protozero_library(
2652 name = "protos_perfetto_trace_ps_zero",
2653 deps = [
2654 ":protos_perfetto_trace_ps_protos",
2655 ],
2656)
2657
2658# GN target: //protos/perfetto/trace/sys_stats:lite
2659perfetto_cc_proto_library(
2660 name = "protos_perfetto_trace_sys_stats_lite",
2661 deps = [
2662 ":protos_perfetto_trace_sys_stats_protos",
2663 ],
2664)
2665
2666# GN target: //protos/perfetto/trace/sys_stats:zero
2667perfetto_proto_library(
2668 name = "protos_perfetto_trace_sys_stats_protos",
2669 srcs = [
2670 "protos/perfetto/trace/sys_stats/sys_stats.proto",
2671 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002672 visibility = [
2673 PERFETTO_CONFIG.proto_library_visibility,
2674 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002675 deps = [
2676 ":protos_perfetto_common_protos",
2677 ],
2678)
2679
2680# GN target: //protos/perfetto/trace/sys_stats:zero
2681perfetto_cc_protozero_library(
2682 name = "protos_perfetto_trace_sys_stats_zero",
2683 deps = [
2684 ":protos_perfetto_trace_sys_stats_protos",
2685 ],
2686)
2687
Rafal Slawikb013a112020-04-03 16:12:02 +01002688# GN target: //protos/perfetto/trace/system_info:lite
2689perfetto_cc_proto_library(
2690 name = "protos_perfetto_trace_system_info_lite",
2691 deps = [
2692 ":protos_perfetto_trace_system_info_protos",
2693 ],
2694)
2695
2696# GN target: //protos/perfetto/trace/system_info:zero
2697perfetto_proto_library(
2698 name = "protos_perfetto_trace_system_info_protos",
2699 srcs = [
2700 "protos/perfetto/trace/system_info/cpu_info.proto",
2701 ],
2702 visibility = [
2703 PERFETTO_CONFIG.proto_library_visibility,
2704 ],
2705)
2706
2707# GN target: //protos/perfetto/trace/system_info:zero
2708perfetto_cc_protozero_library(
2709 name = "protos_perfetto_trace_system_info_zero",
2710 deps = [
2711 ":protos_perfetto_trace_system_info_protos",
2712 ],
2713)
2714
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01002715# GN target: //protos/perfetto/trace/track_event:cpp
2716perfetto_cc_protocpp_library(
2717 name = "protos_perfetto_trace_track_event_cpp",
2718 deps = [
2719 ":protos_perfetto_trace_track_event_protos",
2720 ],
2721)
2722
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002723# GN target: //protos/perfetto/trace/track_event:lite
2724perfetto_cc_proto_library(
2725 name = "protos_perfetto_trace_track_event_lite",
2726 deps = [
2727 ":protos_perfetto_trace_track_event_protos",
2728 ],
2729)
2730
2731# GN target: //protos/perfetto/trace/track_event:zero
2732perfetto_proto_library(
2733 name = "protos_perfetto_trace_track_event_protos",
2734 srcs = [
Stephen Nusko3db31c82019-11-27 16:32:01 +00002735 "protos/perfetto/trace/track_event/chrome_compositor_scheduler_state.proto",
Sadrul Habib Chowdhury2d5e2a62020-06-15 11:24:18 -04002736 "protos/perfetto/trace/track_event/chrome_frame_reporter.proto",
Oystein Eftevaagbe533b22019-12-05 11:01:05 -08002737 "protos/perfetto/trace/track_event/chrome_histogram_sample.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00002738 "protos/perfetto/trace/track_event/chrome_keyed_service.proto",
Andrew Shulaev784967b2020-02-03 08:22:20 +00002739 "protos/perfetto/trace/track_event/chrome_latency_info.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00002740 "protos/perfetto/trace/track_event/chrome_legacy_ipc.proto",
Sami Kyostilab0686c92020-01-07 12:56:55 +00002741 "protos/perfetto/trace/track_event/chrome_process_descriptor.proto",
2742 "protos/perfetto/trace/track_event/chrome_thread_descriptor.proto",
Eric Secklere1e8ff42019-12-04 11:05:43 +00002743 "protos/perfetto/trace/track_event/chrome_user_event.proto",
Eric Seckler39559492020-03-03 18:04:25 +00002744 "protos/perfetto/trace/track_event/counter_descriptor.proto",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002745 "protos/perfetto/trace/track_event/debug_annotation.proto",
2746 "protos/perfetto/trace/track_event/log_message.proto",
2747 "protos/perfetto/trace/track_event/process_descriptor.proto",
2748 "protos/perfetto/trace/track_event/source_location.proto",
2749 "protos/perfetto/trace/track_event/task_execution.proto",
2750 "protos/perfetto/trace/track_event/thread_descriptor.proto",
2751 "protos/perfetto/trace/track_event/track_descriptor.proto",
2752 "protos/perfetto/trace/track_event/track_event.proto",
2753 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002754 visibility = [
2755 PERFETTO_CONFIG.proto_library_visibility,
2756 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002757)
2758
2759# GN target: //protos/perfetto/trace/track_event:zero
2760perfetto_cc_protozero_library(
2761 name = "protos_perfetto_trace_track_event_zero",
2762 deps = [
2763 ":protos_perfetto_trace_track_event_protos",
2764 ],
2765)
2766
Primiano Tucci2d813fd2019-11-26 17:27:07 +00002767# GN target: //protos/third_party/pprof:zero
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002768perfetto_proto_library(
2769 name = "protos_third_party_pprof_protos",
2770 srcs = [
2771 "protos/third_party/pprof/profile.proto",
2772 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002773 visibility = [
2774 PERFETTO_CONFIG.proto_library_visibility,
2775 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002776)
2777
Primiano Tucci2d813fd2019-11-26 17:27:07 +00002778# GN target: //protos/third_party/pprof:zero
2779perfetto_cc_protozero_library(
2780 name = "protos_third_party_pprof_zero",
2781 deps = [
2782 ":protos_third_party_pprof_protos",
2783 ],
2784)
2785
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002786# GN target: //src/perfetto_cmd:protos
Hector Dearman040f9582019-12-03 18:06:33 +00002787perfetto_cc_protocpp_library(
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002788 name = "src_perfetto_cmd_protos",
2789 deps = [
2790 ":src_perfetto_cmd_protos_protos",
2791 ],
2792)
2793
2794# GN target: //src/perfetto_cmd:protos
2795perfetto_proto_library(
2796 name = "src_perfetto_cmd_protos_protos",
2797 srcs = [
2798 "src/perfetto_cmd/perfetto_cmd_state.proto",
2799 ],
Primiano Tuccie88d9392019-11-19 17:42:41 +00002800 visibility = [
2801 PERFETTO_CONFIG.proto_library_visibility,
2802 ],
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01002803)
2804
Primiano Tucci1d409982019-09-19 10:15:18 +01002805# ##############################################################################
2806# Public targets
2807# ##############################################################################
2808
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002809# GN target: //:libperfetto_client_experimental
2810perfetto_cc_library(
2811 name = "libperfetto_client_experimental",
2812 srcs = [
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002813 ":src_base_base",
2814 ":src_base_unix_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002815 ":src_ipc_client",
2816 ":src_ipc_common",
2817 ":src_ipc_host",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002818 ":src_protozero_protozero",
Primiano Tucci3feec552020-02-04 11:14:42 +00002819 ":src_tracing_client_api_without_backends",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002820 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002821 ":src_tracing_core_core",
2822 ":src_tracing_core_service",
Primiano Tucci55b4d912020-01-28 11:17:51 +00002823 ":src_tracing_in_process_backend",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002824 ":src_tracing_ipc_common",
2825 ":src_tracing_ipc_consumer_consumer",
2826 ":src_tracing_ipc_producer_producer",
2827 ":src_tracing_ipc_service_service",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002828 ":src_tracing_platform_posix",
Primiano Tucci3feec552020-02-04 11:14:42 +00002829 ":src_tracing_system_backend",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002830 ],
2831 hdrs = [
2832 ":include_perfetto_base_base",
2833 ":include_perfetto_ext_base_base",
2834 ":include_perfetto_ext_ipc_ipc",
2835 ":include_perfetto_ext_tracing_core_core",
2836 ":include_perfetto_ext_tracing_ipc_ipc",
2837 ":include_perfetto_protozero_protozero",
2838 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00002839 ":include_perfetto_tracing_core_forward_decls",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002840 ":include_perfetto_tracing_tracing",
Lalit Maganti91d223e2019-12-20 12:28:19 +00002841 "include/perfetto/tracing.h",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002842 ],
2843 visibility = [
2844 "//visibility:public",
2845 ],
2846 deps = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002847 ":protos_perfetto_common_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002848 ":protos_perfetto_common_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002849 ":protos_perfetto_config_android_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002850 ":protos_perfetto_config_android_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002851 ":protos_perfetto_config_cpp",
2852 ":protos_perfetto_config_ftrace_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002853 ":protos_perfetto_config_ftrace_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002854 ":protos_perfetto_config_gpu_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002855 ":protos_perfetto_config_gpu_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002856 ":protos_perfetto_config_inode_file_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002857 ":protos_perfetto_config_inode_file_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002858 ":protos_perfetto_config_power_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002859 ":protos_perfetto_config_power_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002860 ":protos_perfetto_config_process_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002861 ":protos_perfetto_config_process_stats_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002862 ":protos_perfetto_config_profiling_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002863 ":protos_perfetto_config_profiling_zero",
Primiano Tucci57dd66b2019-10-15 23:09:04 +01002864 ":protos_perfetto_config_sys_stats_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002865 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002866 ":protos_perfetto_config_track_event_cpp",
2867 ":protos_perfetto_config_track_event_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002868 ":protos_perfetto_config_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002869 ":protos_perfetto_ipc_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002870 ":protos_perfetto_ipc_ipc",
Primiano Tuccib3e08d02019-11-19 11:10:11 +00002871 ":protos_perfetto_ipc_wire_protocol_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002872 ":protos_perfetto_trace_android_zero",
2873 ":protos_perfetto_trace_chrome_zero",
2874 ":protos_perfetto_trace_filesystem_zero",
2875 ":protos_perfetto_trace_ftrace_zero",
2876 ":protos_perfetto_trace_gpu_zero",
2877 ":protos_perfetto_trace_interned_data_zero",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002878 ":protos_perfetto_trace_minimal_zero",
2879 ":protos_perfetto_trace_non_minimal_zero",
2880 ":protos_perfetto_trace_perfetto_zero",
2881 ":protos_perfetto_trace_power_zero",
2882 ":protos_perfetto_trace_profiling_zero",
2883 ":protos_perfetto_trace_ps_zero",
2884 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01002885 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01002886 ":protos_perfetto_trace_track_event_cpp",
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002887 ":protos_perfetto_trace_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002888 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00002889 linkstatic = True,
Pascal Muetschardb4966c52019-09-24 13:38:09 -07002890)
2891
Primiano Tucci1d409982019-09-19 10:15:18 +01002892# GN target: //src/perfetto_cmd:perfetto
2893perfetto_cc_binary(
2894 name = "perfetto",
2895 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01002896 "src/perfetto_cmd/main.cc",
Primiano Tucci1d409982019-09-19 10:15:18 +01002897 ":include_perfetto_base_base",
2898 ":include_perfetto_ext_base_base",
2899 ":include_perfetto_ext_ipc_ipc",
2900 ":include_perfetto_ext_traced_traced",
2901 ":include_perfetto_ext_tracing_core_core",
2902 ":include_perfetto_ext_tracing_ipc_ipc",
2903 ":include_perfetto_protozero_protozero",
2904 ":include_perfetto_tracing_core_core",
Primiano Tuccicb8cea22019-11-22 11:05:35 +00002905 ":include_perfetto_tracing_core_forward_decls",
Primiano Tucci1d409982019-09-19 10:15:18 +01002906 ":include_perfetto_tracing_tracing",
2907 ":src_android_internal_headers",
2908 ":src_android_internal_lazy_library_loader",
2909 ":src_base_base",
2910 ":src_base_unix_socket",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002911 ":src_ipc_client",
2912 ":src_ipc_common",
Hector Dearman92d7d112019-12-05 15:19:57 +00002913 ":src_perfetto_cmd_perfetto_atoms",
Primiano Tucci1d409982019-09-19 10:15:18 +01002914 ":src_perfetto_cmd_perfetto_cmd",
2915 ":src_perfetto_cmd_trigger_producer",
2916 ":src_protozero_protozero",
2917 ":src_tracing_common",
Primiano Tuccic4c063b2020-01-27 09:34:46 +00002918 ":src_tracing_core_core",
2919 ":src_tracing_ipc_common",
2920 ":src_tracing_ipc_consumer_consumer",
2921 ":src_tracing_ipc_producer_producer",
Primiano Tucci1d409982019-09-19 10:15:18 +01002922 ],
2923 visibility = [
2924 "//visibility:public",
2925 ],
2926 deps = [
Primiano Tuccie8020f92019-11-26 13:24:01 +00002927 ":protos_perfetto_common_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002928 ":protos_perfetto_common_zero",
2929 ":protos_perfetto_config_android_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002930 ":protos_perfetto_config_android_zero",
2931 ":protos_perfetto_config_cpp",
2932 ":protos_perfetto_config_ftrace_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002933 ":protos_perfetto_config_ftrace_zero",
2934 ":protos_perfetto_config_gpu_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002935 ":protos_perfetto_config_gpu_zero",
2936 ":protos_perfetto_config_inode_file_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002937 ":protos_perfetto_config_inode_file_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002938 ":protos_perfetto_config_power_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002939 ":protos_perfetto_config_power_zero",
2940 ":protos_perfetto_config_process_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002941 ":protos_perfetto_config_process_stats_zero",
2942 ":protos_perfetto_config_profiling_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002943 ":protos_perfetto_config_profiling_zero",
2944 ":protos_perfetto_config_sys_stats_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002945 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00002946 ":protos_perfetto_config_track_event_cpp",
2947 ":protos_perfetto_config_track_event_zero",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002948 ":protos_perfetto_config_zero",
2949 ":protos_perfetto_ipc_cpp",
2950 ":protos_perfetto_ipc_ipc",
2951 ":protos_perfetto_ipc_wire_protocol_cpp",
2952 ":protos_perfetto_trace_android_zero",
2953 ":protos_perfetto_trace_chrome_zero",
2954 ":protos_perfetto_trace_filesystem_zero",
2955 ":protos_perfetto_trace_ftrace_zero",
2956 ":protos_perfetto_trace_gpu_zero",
2957 ":protos_perfetto_trace_interned_data_zero",
2958 ":protos_perfetto_trace_minimal_zero",
2959 ":protos_perfetto_trace_non_minimal_zero",
2960 ":protos_perfetto_trace_perfetto_zero",
2961 ":protos_perfetto_trace_power_zero",
2962 ":protos_perfetto_trace_profiling_zero",
2963 ":protos_perfetto_trace_ps_zero",
2964 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01002965 ":protos_perfetto_trace_system_info_zero",
Sami Kyostilad4eec8e2020-05-05 15:56:42 +01002966 ":protos_perfetto_trace_track_event_cpp",
Primiano Tuccie8020f92019-11-26 13:24:01 +00002967 ":protos_perfetto_trace_track_event_zero",
2968 ":src_perfetto_cmd_protos",
2969 ] + PERFETTO_CONFIG.deps.zlib,
Primiano Tucci1d409982019-09-19 10:15:18 +01002970)
2971
2972# GN target: //src/trace_processor:trace_processor
2973perfetto_cc_library(
2974 name = "trace_processor",
2975 srcs = [
2976 ":src_base_base",
2977 ":src_protozero_protozero",
Lalit Maganti97d7d472020-04-07 18:49:17 +01002978 ":src_trace_processor_analysis_analysis",
Lalit Maganti2aa88582019-12-17 17:06:49 +00002979 ":src_trace_processor_containers_containers",
Primiano Tucci1d409982019-09-19 10:15:18 +01002980 ":src_trace_processor_db_lib",
Eric Secklera7870e62019-11-01 10:11:58 +00002981 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01002982 ":src_trace_processor_ftrace_descriptors",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01002983 ":src_trace_processor_importers_common",
Primiano Tucci1d409982019-09-19 10:15:18 +01002984 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01002985 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01002986 ":src_trace_processor_metrics_lib",
2987 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00002988 ":src_trace_processor_storage_full",
2989 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00002990 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01002991 ":src_trace_processor_tables_tables",
Andrew Shulaevb6678382020-02-27 13:59:32 +00002992 ":src_trace_processor_track_event_descriptor",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00002993 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01002994 ":src_trace_processor_util_descriptors",
2995 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01002996 ],
2997 hdrs = [
2998 ":include_perfetto_base_base",
2999 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003000 ":include_perfetto_ext_trace_processor_export_json",
Primiano Tucci1d409982019-09-19 10:15:18 +01003001 ":include_perfetto_ext_traced_sys_stats_counters",
3002 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003003 ":include_perfetto_trace_processor_basic_types",
3004 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003005 ":include_perfetto_trace_processor_trace_processor",
3006 ],
3007 visibility = [
3008 "//visibility:public",
3009 ],
3010 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003011 ":protos_perfetto_common_zero",
3012 ":protos_perfetto_config_android_zero",
3013 ":protos_perfetto_config_ftrace_zero",
3014 ":protos_perfetto_config_gpu_zero",
3015 ":protos_perfetto_config_inode_file_zero",
3016 ":protos_perfetto_config_power_zero",
3017 ":protos_perfetto_config_process_stats_zero",
3018 ":protos_perfetto_config_profiling_zero",
3019 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003020 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003021 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003022 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003023 ":protos_perfetto_trace_chrome_zero",
3024 ":protos_perfetto_trace_filesystem_zero",
3025 ":protos_perfetto_trace_ftrace_zero",
3026 ":protos_perfetto_trace_gpu_zero",
3027 ":protos_perfetto_trace_interned_data_zero",
3028 ":protos_perfetto_trace_minimal_zero",
3029 ":protos_perfetto_trace_non_minimal_zero",
3030 ":protos_perfetto_trace_perfetto_zero",
3031 ":protos_perfetto_trace_power_zero",
3032 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003033 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003034 ":protos_perfetto_trace_profiling_zero",
3035 ":protos_perfetto_trace_ps_zero",
3036 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003037 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003038 ":protos_perfetto_trace_track_event_zero",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003039 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003040 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Lalit Maganti65600342019-09-19 21:35:35 +01003041 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003042 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003043 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3044 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003045 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003046 ],
Lalit Magantif9c004d2020-01-06 14:44:34 +00003047 linkstatic = True,
Primiano Tucci1d409982019-09-19 10:15:18 +01003048)
3049
3050# GN target: //src/trace_processor:trace_processor_shell
3051perfetto_cc_binary(
3052 name = "trace_processor_shell",
3053 srcs = [
Lalit Maganti65600342019-09-19 21:35:35 +01003054 "src/trace_processor/trace_processor_shell.cc",
Lalit Maganti3d9bbff2020-04-15 13:40:58 +01003055 "src/trace_processor/util/proto_to_json.cc",
3056 "src/trace_processor/util/proto_to_json.h",
Primiano Tucci1d409982019-09-19 10:15:18 +01003057 ":include_perfetto_base_base",
3058 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003059 ":include_perfetto_ext_trace_processor_export_json",
Primiano Tucci1d409982019-09-19 10:15:18 +01003060 ":include_perfetto_ext_traced_sys_stats_counters",
3061 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003062 ":include_perfetto_trace_processor_basic_types",
3063 ":include_perfetto_trace_processor_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003064 ":include_perfetto_trace_processor_trace_processor",
3065 ":src_base_base",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003066 ":src_base_unix_socket",
Florian Mayer6cc8b1d2019-12-18 16:37:32 +00003067 ":src_profiling_symbolizer_symbolize_database",
3068 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003069 ":src_protozero_protozero",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003070 ":src_trace_processor_analysis_analysis",
Lalit Maganti2aa88582019-12-17 17:06:49 +00003071 ":src_trace_processor_containers_containers",
Primiano Tucci1d409982019-09-19 10:15:18 +01003072 ":src_trace_processor_db_lib",
Eric Secklera7870e62019-11-01 10:11:58 +00003073 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003074 ":src_trace_processor_ftrace_descriptors",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01003075 ":src_trace_processor_importers_common",
Primiano Tucci1d409982019-09-19 10:15:18 +01003076 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003077 ":src_trace_processor_metatrace",
Primiano Tucci1d409982019-09-19 10:15:18 +01003078 ":src_trace_processor_metrics_lib",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003079 ":src_trace_processor_rpc_httpd",
3080 ":src_trace_processor_rpc_rpc",
Primiano Tucci1d409982019-09-19 10:15:18 +01003081 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003082 ":src_trace_processor_storage_full",
3083 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003084 ":src_trace_processor_storage_storage",
Primiano Tucci1d409982019-09-19 10:15:18 +01003085 ":src_trace_processor_tables_tables",
Andrew Shulaevb6678382020-02-27 13:59:32 +00003086 ":src_trace_processor_track_event_descriptor",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003087 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003088 ":src_trace_processor_util_descriptors",
3089 ":src_trace_processor_util_util",
Primiano Tucci1d409982019-09-19 10:15:18 +01003090 ],
3091 visibility = [
3092 "//visibility:public",
3093 ],
3094 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003095 ":protos_perfetto_common_zero",
3096 ":protos_perfetto_config_android_zero",
3097 ":protos_perfetto_config_ftrace_zero",
3098 ":protos_perfetto_config_gpu_zero",
3099 ":protos_perfetto_config_inode_file_zero",
3100 ":protos_perfetto_config_power_zero",
3101 ":protos_perfetto_config_process_stats_zero",
3102 ":protos_perfetto_config_profiling_zero",
3103 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003104 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003105 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003106 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003107 ":protos_perfetto_trace_chrome_zero",
3108 ":protos_perfetto_trace_filesystem_zero",
3109 ":protos_perfetto_trace_ftrace_zero",
3110 ":protos_perfetto_trace_gpu_zero",
3111 ":protos_perfetto_trace_interned_data_zero",
3112 ":protos_perfetto_trace_minimal_zero",
3113 ":protos_perfetto_trace_non_minimal_zero",
3114 ":protos_perfetto_trace_perfetto_zero",
3115 ":protos_perfetto_trace_power_zero",
3116 ":protos_perfetto_trace_processor_metrics_impl_zero",
Primiano Tuccia36cccc2019-10-27 13:15:04 +01003117 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003118 ":protos_perfetto_trace_profiling_zero",
3119 ":protos_perfetto_trace_ps_zero",
3120 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003121 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003122 ":protos_perfetto_trace_track_event_zero",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003123 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003124 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003125 ] + PERFETTO_CONFIG.deps.jsoncpp +
Lalit Maganti65600342019-09-19 21:35:35 +01003126 PERFETTO_CONFIG.deps.linenoise +
Lalit Magantia97798d2020-09-16 17:40:57 +01003127 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003128 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003129 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3130 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003131 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003132 ],
Primiano Tucci1d409982019-09-19 10:15:18 +01003133)
3134
3135# GN target: //src/traced/probes:traced_probes
3136perfetto_cc_binary(
3137 name = "traced_probes",
3138 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003139 "src/traced/probes/main.cc",
Lalit Maganti65600342019-09-19 21:35:35 +01003140 ":include_perfetto_ext_traced_traced",
Primiano Tucci1d409982019-09-19 10:15:18 +01003141 ],
3142 visibility = [
3143 "//visibility:public",
3144 ],
3145 deps = [
3146 ":libperfetto",
3147 ],
3148)
3149
3150# GN target: //src/traced/service:traced
3151perfetto_cc_binary(
3152 name = "traced",
3153 srcs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003154 "src/traced/service/main.cc",
Lalit Maganti65600342019-09-19 21:35:35 +01003155 ":include_perfetto_ext_traced_traced",
Primiano Tucci1d409982019-09-19 10:15:18 +01003156 ],
3157 visibility = [
3158 "//visibility:public",
3159 ],
3160 deps = [
3161 ":libperfetto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003162 ],
3163)
3164
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003165# GN target: //tools/trace_to_text:libpprofbuilder
Primiano Tucci1d409982019-09-19 10:15:18 +01003166perfetto_cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +02003167 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003168 srcs = [
Florian Mayer3be55fb2019-11-22 13:08:47 +00003169 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003170 ":src_profiling_symbolizer_symbolize_database",
3171 ":src_profiling_symbolizer_symbolizer",
Primiano Tucci1d409982019-09-19 10:15:18 +01003172 ":tools_trace_to_text_pprofbuilder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003173 ":tools_trace_to_text_utils",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003174 ],
3175 hdrs = [
Primiano Tucci1d409982019-09-19 10:15:18 +01003176 ":include_perfetto_base_base",
3177 ":include_perfetto_ext_base_base",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003178 ":include_perfetto_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003179 ":include_perfetto_profiling_pprof_builder",
Primiano Tucci1d409982019-09-19 10:15:18 +01003180 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003181 ":include_perfetto_trace_processor_basic_types",
3182 ":include_perfetto_trace_processor_storage",
Florian Mayer5403ce92019-09-19 19:55:17 +01003183 ":include_perfetto_trace_processor_trace_processor",
Primiano Tucci1d409982019-09-19 10:15:18 +01003184 ],
3185 visibility = [
3186 "//visibility:public",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003187 ],
3188 deps = [
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003189 ":protos_perfetto_common_zero",
3190 ":protos_perfetto_config_android_zero",
3191 ":protos_perfetto_config_ftrace_zero",
3192 ":protos_perfetto_config_gpu_zero",
3193 ":protos_perfetto_config_inode_file_zero",
3194 ":protos_perfetto_config_power_zero",
3195 ":protos_perfetto_config_process_stats_zero",
3196 ":protos_perfetto_config_profiling_zero",
3197 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003198 ":protos_perfetto_config_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003199 ":protos_perfetto_config_zero",
3200 ":protos_perfetto_trace_android_zero",
3201 ":protos_perfetto_trace_chrome_zero",
3202 ":protos_perfetto_trace_filesystem_zero",
3203 ":protos_perfetto_trace_ftrace_zero",
3204 ":protos_perfetto_trace_gpu_zero",
3205 ":protos_perfetto_trace_interned_data_zero",
3206 ":protos_perfetto_trace_minimal_zero",
3207 ":protos_perfetto_trace_non_minimal_zero",
3208 ":protos_perfetto_trace_perfetto_zero",
3209 ":protos_perfetto_trace_power_zero",
3210 ":protos_perfetto_trace_profiling_zero",
3211 ":protos_perfetto_trace_ps_zero",
3212 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003213 ":protos_perfetto_trace_system_info_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003214 ":protos_perfetto_trace_track_event_zero",
3215 ":protos_third_party_pprof_zero",
3216 ] + PERFETTO_CONFIG.deps.zlib,
Lalit Magantif9c004d2020-01-06 14:44:34 +00003217 linkstatic = True,
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003218)
3219
Lalit Maganti65600342019-09-19 21:35:35 +01003220# GN target: //tools/trace_to_text:trace_to_text
3221perfetto_cc_binary(
3222 name = "trace_to_text",
3223 srcs = [
3224 ":include_perfetto_base_base",
3225 ":include_perfetto_ext_base_base",
Eric Seckler7fb1d232019-10-23 14:42:43 +01003226 ":include_perfetto_ext_trace_processor_export_json",
Lalit Maganti65600342019-09-19 21:35:35 +01003227 ":include_perfetto_ext_traced_sys_stats_counters",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003228 ":include_perfetto_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003229 ":include_perfetto_profiling_pprof_builder",
Lalit Maganti65600342019-09-19 21:35:35 +01003230 ":include_perfetto_protozero_protozero",
Eric Secklera7870e62019-11-01 10:11:58 +00003231 ":include_perfetto_trace_processor_basic_types",
3232 ":include_perfetto_trace_processor_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003233 ":include_perfetto_trace_processor_trace_processor",
3234 ":src_base_base",
Florian Mayer3be55fb2019-11-22 13:08:47 +00003235 ":src_profiling_deobfuscator",
Florian Mayerbd88ff82019-12-18 16:36:37 +00003236 ":src_profiling_symbolizer_symbolize_database",
3237 ":src_profiling_symbolizer_symbolizer",
Lalit Maganti65600342019-09-19 21:35:35 +01003238 ":src_protozero_protozero",
Lalit Maganti97d7d472020-04-07 18:49:17 +01003239 ":src_trace_processor_analysis_analysis",
Lalit Maganti2aa88582019-12-17 17:06:49 +00003240 ":src_trace_processor_containers_containers",
Lalit Maganti65600342019-09-19 21:35:35 +01003241 ":src_trace_processor_db_lib",
Eric Secklera7870e62019-11-01 10:11:58 +00003242 ":src_trace_processor_export_json",
Lalit Maganti655adae2020-04-14 21:01:25 +01003243 ":src_trace_processor_ftrace_descriptors",
Lalit Maganticcdcbae2020-04-15 14:31:40 +01003244 ":src_trace_processor_importers_common",
Lalit Maganti65600342019-09-19 21:35:35 +01003245 ":src_trace_processor_lib",
Lalit Maganti427b8332020-05-27 16:09:45 +01003246 ":src_trace_processor_metatrace",
Lalit Maganti65600342019-09-19 21:35:35 +01003247 ":src_trace_processor_metrics_lib",
3248 ":src_trace_processor_sqlite_sqlite",
Mikhail Khokhlov692087e2019-12-11 10:53:45 +00003249 ":src_trace_processor_storage_full",
3250 ":src_trace_processor_storage_minimal",
Lalit Maganti7010b332020-02-07 10:51:15 +00003251 ":src_trace_processor_storage_storage",
Lalit Maganti65600342019-09-19 21:35:35 +01003252 ":src_trace_processor_tables_tables",
Andrew Shulaevb6678382020-02-27 13:59:32 +00003253 ":src_trace_processor_track_event_descriptor",
Lalit Maganti83b53fa2020-01-13 12:55:36 +00003254 ":src_trace_processor_types_types",
Lalit Magantie7107402020-04-15 13:41:12 +01003255 ":src_trace_processor_util_descriptors",
3256 ":src_trace_processor_util_util",
Lalit Maganti65600342019-09-19 21:35:35 +01003257 ":tools_trace_to_text_common",
3258 ":tools_trace_to_text_full",
Lalit Maganti65600342019-09-19 21:35:35 +01003259 ":tools_trace_to_text_pprofbuilder",
Lalit Maganti65600342019-09-19 21:35:35 +01003260 ":tools_trace_to_text_utils",
3261 ],
3262 visibility = [
3263 "//visibility:public",
3264 ],
3265 deps = [
Lalit Maganti65600342019-09-19 21:35:35 +01003266 ":protos_perfetto_common_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003267 ":protos_perfetto_config_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003268 ":protos_perfetto_config_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003269 ":protos_perfetto_config_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003270 ":protos_perfetto_config_inode_file_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003271 ":protos_perfetto_config_power_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003272 ":protos_perfetto_config_process_stats_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003273 ":protos_perfetto_config_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003274 ":protos_perfetto_config_sys_stats_zero",
Sami Kyostila38cd0412020-02-12 17:09:52 +00003275 ":protos_perfetto_config_track_event_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003276 ":protos_perfetto_config_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003277 ":protos_perfetto_trace_android_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003278 ":protos_perfetto_trace_chrome_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003279 ":protos_perfetto_trace_filesystem_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003280 ":protos_perfetto_trace_ftrace_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003281 ":protos_perfetto_trace_gpu_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003282 ":protos_perfetto_trace_interned_data_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003283 ":protos_perfetto_trace_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003284 ":protos_perfetto_trace_non_minimal_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003285 ":protos_perfetto_trace_perfetto_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003286 ":protos_perfetto_trace_power_zero",
3287 ":protos_perfetto_trace_processor_metrics_impl_zero",
Deepanjan Roy77747772020-09-01 15:10:33 -04003288 ":protos_perfetto_trace_processor_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003289 ":protos_perfetto_trace_profiling_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003290 ":protos_perfetto_trace_ps_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003291 ":protos_perfetto_trace_sys_stats_zero",
Rafal Slawikb013a112020-04-03 16:12:02 +01003292 ":protos_perfetto_trace_system_info_zero",
Lalit Maganti65600342019-09-19 21:35:35 +01003293 ":protos_perfetto_trace_track_event_zero",
Primiano Tucci2d813fd2019-11-26 17:27:07 +00003294 ":protos_third_party_pprof_zero",
Lalit Maganti3b09a3f2020-09-14 13:28:44 +01003295 ":src_trace_processor_metrics_gen_cc_all_chrome_metrics_descriptor",
Lalit Maganti117272f2020-09-11 14:01:18 +01003296 ":src_trace_processor_metrics_gen_cc_metrics_descriptor",
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003297 ] + PERFETTO_CONFIG.deps.jsoncpp +
3298 PERFETTO_CONFIG.deps.protobuf_full +
Lalit Maganti65600342019-09-19 21:35:35 +01003299 PERFETTO_CONFIG.deps.sqlite +
Matthew Clarkson9a5dfa52019-10-03 09:54:04 +01003300 PERFETTO_CONFIG.deps.sqlite_ext_percentile +
3301 PERFETTO_CONFIG.deps.zlib + [
Lalit Magantia4244e42019-09-20 12:03:32 +01003302 ":cc_merged_sql_metrics",
Lalit Maganti65600342019-09-19 21:35:35 +01003303 ],
3304)
3305
Primiano Tucci1d409982019-09-19 10:15:18 +01003306# Content from BUILD.extras
3307
3308build_config_dir_ = "include/perfetto/base/build_configs/bazel"
3309
3310# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
3311# This is pulled as a default dep by all targets.
Primiano Tucci02c11762019-08-30 00:57:59 +02003312cc_library(
Primiano Tucci1d409982019-09-19 10:15:18 +01003313 name = "build_config_hdr",
3314 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
3315 includes = [build_config_dir_],
Primiano Tucci02c11762019-08-30 00:57:59 +02003316)
3317
Primiano Tucci1d409982019-09-19 10:15:18 +01003318perfetto_cc_library(
3319 name = "cc_merged_sql_metrics",
3320 hdrs = ["src/trace_processor/metrics/sql_metrics.h"],
Primiano Tucci02c11762019-08-30 00:57:59 +02003321)
3322
Primiano Tucci1d409982019-09-19 10:15:18 +01003323perfetto_py_binary(
Lalit Maganticaac9922019-05-01 10:40:53 +01003324 name = "gen_merged_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003325 srcs = [
Lalit Magantiab619fa2019-05-02 12:56:37 +01003326 "tools/gen_merged_sql_metrics.py",
3327 ],
3328 main = "tools/gen_merged_sql_metrics.py",
Lalit Magantic449f772020-06-03 14:20:10 +01003329 python_version = "PY3",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003330)
Lalit Maganti65600342019-09-19 21:35:35 +01003331
Lalit Maganti117272f2020-09-11 14:01:18 +01003332perfetto_py_binary(
3333 name = "gen_cc_proto_descriptor_py",
3334 srcs = [
3335 "tools/gen_cc_proto_descriptor.py",
3336 ],
3337 main = "tools/gen_cc_proto_descriptor.py",
3338 python_version = "PY3",
3339)
3340
Lalit Maganti65600342019-09-19 21:35:35 +01003341perfetto_java_proto_library(
3342 name = "protos_perfetto_metrics_java",
3343 deps = [
3344 ":protos_perfetto_metrics_protos",
3345 ],
3346)
3347
3348perfetto_java_proto_library(
3349 name = "protos_perfetto_metrics_android_java",
3350 deps = [
3351 ":protos_perfetto_metrics_android_protos",
3352 ],
3353)
3354
Lalit Magantic3187f82019-09-20 14:51:11 +01003355perfetto_java_proto_library(
3356 name = "protos_perfetto_trace_merged_trace_java",
3357 deps = [
3358 ":protos_perfetto_trace_merged_trace_protos",
3359 ],
3360)
3361
Hector Dearmanb0f680e2020-04-28 17:40:37 +01003362perfetto_java_proto_library(
Hector Dearman41fb1812020-04-29 11:28:09 +01003363 name = "protos_perfetto_config_merged_config_java",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01003364 deps = [
Hector Dearman41fb1812020-04-29 11:28:09 +01003365 ":protos_perfetto_config_merged_config_protos",
Hector Dearmanb0f680e2020-04-28 17:40:37 +01003366 ],
3367)
3368
Lalit Maganti46e2bda2020-05-06 12:51:33 +01003369perfetto_java_lite_proto_library(
3370 name = "protos_perfetto_config_merged_config_java_lite",
3371 deps = [
3372 ":protos_perfetto_config_merged_config_protos",
3373 ],
3374)
3375
Lalit Maganti65600342019-09-19 21:35:35 +01003376perfetto_gensignature_internal_only(
3377 name = "trace_processor_sig",
3378 srcs = [
3379 ":trace_processor_shell",
3380 ":trace_to_text",
3381 ],
3382 tags = [
3383 "__TRACE_PROCESSOR_SIG_TAG1",
3384 "__TRACE_PROCESSOR_SIG_TAG2",
3385 ],
3386)
Anindita Ghosh237a7762020-06-30 10:46:52 +00003387
Anindita Ghosh152562f2020-07-08 20:29:56 +00003388# Noop targets used to represent targets of the protobuf library.
3389# These will be rewritten in Google3 to be dependencies on the real targets.
3390
3391perfetto_py_library(
Anindita Ghosh37c9e1e2020-07-09 17:07:26 +00003392 name = "pyglib_noop",
3393 srcs = [],
3394)
3395
3396perfetto_py_library(
Anindita Ghosh152562f2020-07-08 20:29:56 +00003397 name = "protobuf_noop",
3398 srcs = [],
3399)
3400
3401perfetto_py_library(
3402 name = "protobuf_descriptor_pb2_noop",
3403 srcs = [],
3404)
3405
Anindita Ghoshf52572f2020-08-03 21:15:45 +00003406perfetto_py_library(
3407 name = "trace_processor_init_noop",
3408 srcs = [],
3409)
3410
Anindita Ghosh237a7762020-06-30 10:46:52 +00003411perfetto_py_binary(
Lalit Maganti82a2c042020-07-06 13:50:33 +01003412 name = "trace_processor_py_example",
3413 srcs = ["src/trace_processor/python/example.py"],
3414 deps = [":trace_processor_py"],
3415 main = "src/trace_processor/python/example.py",
Anindita Ghosh237a7762020-06-30 10:46:52 +00003416 python_version = "PY3",
3417)
3418
3419perfetto_py_library(
Lalit Maganti82a2c042020-07-06 13:50:33 +01003420 name = "trace_processor_py",
Anindita Ghosh456261f2020-09-07 11:31:24 +01003421 srcs = glob(["src/trace_processor/python/perfetto/trace_processor/*.py"]),
Anindita Ghosh152562f2020-07-08 20:29:56 +00003422 data = [
Anindita Ghoshf52572f2020-08-03 21:15:45 +00003423 ":trace_processor_init_noop",
Anindita Ghosh456261f2020-09-07 11:31:24 +01003424 "src/trace_processor/python/perfetto/trace_processor/trace_processor.descriptor",
3425 "src/trace_processor/python/perfetto/trace_processor/metrics.descriptor",
Anindita Ghosh7887c762020-07-20 16:35:15 +00003426 ":trace_processor_shell",
Anindita Ghosh152562f2020-07-08 20:29:56 +00003427 ],
3428 deps = [
3429 ":protobuf_noop",
3430 ":protobuf_descriptor_pb2_noop",
Anindita Ghosh37c9e1e2020-07-09 17:07:26 +00003431 ":pyglib_noop",
Anindita Ghosh152562f2020-07-08 20:29:56 +00003432 ]
Anindita Ghosh237a7762020-06-30 10:46:52 +00003433)