blob: 3b5e81ca37dacd447dac3d685f416e6e82bdab83 [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
17package(default_visibility = ["//visibility:public"])
18
19licenses(["notice"]) # Apache 2.0
20
21exports_files(["LICENSE"])
22
Lalit Maganti26f69bd2019-04-29 18:23:47 +010023# GN target: //src/trace_processor/metrics:gen_merged_sql_metrics
24genrule(
25 name = "gen_merged_sql_metrics",
26 srcs = [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +010027 "src/trace_processor/metrics/android/android_batt.sql",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +010028 "src/trace_processor/metrics/android/android_cpu.sql",
29 "src/trace_processor/metrics/android/android_cpu_agg.sql",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +010030 "src/trace_processor/metrics/android/android_ion.sql",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +010031 "src/trace_processor/metrics/android/android_lmk.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010032 "src/trace_processor/metrics/android/android_mem.sql",
Lalit Magantia316d6e2019-07-09 19:01:01 +010033 "src/trace_processor/metrics/android/android_mem_unagg.sql",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +010034 "src/trace_processor/metrics/android/android_package_list.sql",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +010035 "src/trace_processor/metrics/android/android_powrails.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010036 "src/trace_processor/metrics/android/android_process_growth.sql",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +010037 "src/trace_processor/metrics/android/android_startup.sql",
Ioannis Ilkos1cbd2282019-05-29 23:41:57 +010038 "src/trace_processor/metrics/android/android_startup_cpu.sql",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +010039 "src/trace_processor/metrics/android/android_startup_launches.sql",
40 "src/trace_processor/metrics/android/android_task_state.sql",
Ioannis Ilkos09d85432019-08-05 17:54:08 +010041 "src/trace_processor/metrics/android/heap_profile_callsite_stats.sql",
Ioannis Ilkos79b511c2019-07-09 14:45:07 +010042 "src/trace_processor/metrics/android/mem_stats_priority_breakdown.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010043 "src/trace_processor/metrics/android/process_mem.sql",
Lalit Magantia316d6e2019-07-09 19:01:01 +010044 "src/trace_processor/metrics/android/process_unagg_mem_view.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010045 "src/trace_processor/metrics/android/span_view_stats.sql",
46 "src/trace_processor/metrics/android/upid_span_view.sql",
Ioannis Ilkosf17cf992019-07-31 17:41:17 +010047 "src/trace_processor/metrics/trace_metadata.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010048 ],
Lalit Maganti26f69bd2019-04-29 18:23:47 +010049 outs = [
50 "src/trace_processor/metrics/sql_metrics.h",
51 ],
Lalit Magantie667b0f2019-05-02 13:49:35 +010052 cmd = "$(location gen_merged_sql_metrics_py) --cpp_out=$@ $(SRCS)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010053 tools = [
54 "gen_merged_sql_metrics_py",
55 ],
56)
57
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +010058# GN target: //tools/trace_to_text:libpprofbuilder
59cc_library(
Primiano Tucci02c11762019-08-30 00:57:59 +020060 name = "libpprofbuilder",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +010061 srcs = [
Florian Mayeraaac9092019-08-05 14:21:38 +010062 "src/base/event_fd.cc",
63 "src/base/file_utils.cc",
64 "src/base/metatrace.cc",
65 "src/base/paged_memory.cc",
66 "src/base/pipe.cc",
67 "src/base/string_splitter.cc",
68 "src/base/string_utils.cc",
69 "src/base/string_view.cc",
70 "src/base/temp_file.cc",
71 "src/base/thread_checker.cc",
72 "src/base/thread_task_runner.cc",
73 "src/base/time.cc",
74 "src/base/unix_task_runner.cc",
75 "src/base/uuid.cc",
76 "src/base/virtual_destructors.cc",
77 "src/base/waitable_event.cc",
78 "src/base/watchdog_posix.cc",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +010079 "src/protozero/message.cc",
80 "src/protozero/message_handle.cc",
81 "src/protozero/proto_decoder.cc",
82 "src/protozero/scattered_heap_buffer.cc",
83 "src/protozero/scattered_stream_null_delegate.cc",
84 "src/protozero/scattered_stream_writer.cc",
85 "tools/trace_to_text/pprof_builder.cc",
Florian Mayer2d20a982019-08-02 14:00:06 +010086 "tools/trace_to_text/profile_visitor.cc",
87 "tools/trace_to_text/profile_visitor.h",
Florian Mayer04d1ace2019-08-01 11:59:53 +010088 "tools/trace_to_text/symbolizer.cc",
Florian Mayercf9eadc2019-08-05 11:59:35 +010089 "tools/trace_to_text/trace_symbol_table.cc",
90 "tools/trace_to_text/trace_symbol_table.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +010091 "tools/trace_to_text/utils.cc",
92 "tools/trace_to_text/utils.h",
93 ],
94 hdrs = [
95 "include/perfetto/base/build_config.h",
96 "include/perfetto/base/compiler.h",
Primiano Tucci3b39fc72019-06-22 19:05:23 +010097 "include/perfetto/base/copyable_ptr.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +010098 "include/perfetto/base/export.h",
99 "include/perfetto/base/logging.h",
100 "include/perfetto/base/task_runner.h",
Eric Seckler83dcc8c2019-08-21 12:18:43 +0100101 "include/perfetto/base/time.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100102 "include/perfetto/ext/base/circular_queue.h",
103 "include/perfetto/ext/base/container_annotations.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100104 "include/perfetto/ext/base/event_fd.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100105 "include/perfetto/ext/base/file_utils.h",
106 "include/perfetto/ext/base/hash.h",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200107 "include/perfetto/ext/base/lookup_set.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100108 "include/perfetto/ext/base/metatrace.h",
109 "include/perfetto/ext/base/metatrace_events.h",
110 "include/perfetto/ext/base/no_destructor.h",
111 "include/perfetto/ext/base/optional.h",
112 "include/perfetto/ext/base/paged_memory.h",
113 "include/perfetto/ext/base/pipe.h",
Primiano Tucci07489b82019-08-23 10:06:50 +0200114 "include/perfetto/ext/base/proc_utils.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100115 "include/perfetto/ext/base/scoped_file.h",
116 "include/perfetto/ext/base/small_set.h",
117 "include/perfetto/ext/base/string_splitter.h",
118 "include/perfetto/ext/base/string_utils.h",
119 "include/perfetto/ext/base/string_view.h",
120 "include/perfetto/ext/base/string_writer.h",
121 "include/perfetto/ext/base/temp_file.h",
122 "include/perfetto/ext/base/thread_annotations.h",
123 "include/perfetto/ext/base/thread_checker.h",
124 "include/perfetto/ext/base/thread_task_runner.h",
125 "include/perfetto/ext/base/thread_utils.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100126 "include/perfetto/ext/base/unix_socket.h",
127 "include/perfetto/ext/base/unix_task_runner.h",
128 "include/perfetto/ext/base/utils.h",
Hector Dearmanf275f692019-07-31 12:56:59 +0100129 "include/perfetto/ext/base/uuid.h",
Lalit Magantiacedc642019-07-11 16:50:16 +0100130 "include/perfetto/ext/base/waitable_event.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100131 "include/perfetto/ext/base/watchdog.h",
132 "include/perfetto/ext/base/watchdog_noop.h",
133 "include/perfetto/ext/base/watchdog_posix.h",
134 "include/perfetto/ext/base/weak_ptr.h",
135 "include/perfetto/ext/traced/sys_stats_counters.h",
136 "include/perfetto/protozero/contiguous_memory_range.h",
137 "include/perfetto/protozero/field.h",
138 "include/perfetto/protozero/message.h",
139 "include/perfetto/protozero/message_handle.h",
140 "include/perfetto/protozero/proto_decoder.h",
141 "include/perfetto/protozero/proto_utils.h",
142 "include/perfetto/protozero/scattered_heap_buffer.h",
143 "include/perfetto/protozero/scattered_stream_null_delegate.h",
144 "include/perfetto/protozero/scattered_stream_writer.h",
Ioannis Ilkos95cea2e2019-06-25 12:21:30 +0100145 "tools/trace_to_text/pprof_builder.h",
Florian Mayer24f556d2019-08-05 12:00:24 +0100146 "tools/trace_to_text/symbolizer.h",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100147 ],
148 deps = [
149 "//third_party/perfetto/protos:common_cc_proto",
150 "//third_party/perfetto/protos:common_zero_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +0200151 "//third_party/perfetto/protos:config_android_cc_proto",
152 "//third_party/perfetto/protos:config_android_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100153 "//third_party/perfetto/protos:config_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +0200154 "//third_party/perfetto/protos:config_ftrace_cc_proto",
155 "//third_party/perfetto/protos:config_ftrace_zero_cc_proto",
156 "//third_party/perfetto/protos:config_gpu_cc_proto",
157 "//third_party/perfetto/protos:config_gpu_zero_cc_proto",
158 "//third_party/perfetto/protos:config_inode_file_cc_proto",
159 "//third_party/perfetto/protos:config_inode_file_zero_cc_proto",
160 "//third_party/perfetto/protos:config_power_cc_proto",
161 "//third_party/perfetto/protos:config_power_zero_cc_proto",
162 "//third_party/perfetto/protos:config_process_stats_cc_proto",
163 "//third_party/perfetto/protos:config_process_stats_zero_cc_proto",
164 "//third_party/perfetto/protos:config_profiling_cc_proto",
165 "//third_party/perfetto/protos:config_profiling_zero_cc_proto",
166 "//third_party/perfetto/protos:config_sys_stats_cc_proto",
167 "//third_party/perfetto/protos:config_sys_stats_zero_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100168 "//third_party/perfetto/protos:config_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100169 "//third_party/perfetto/protos:protos_third_party_pprof_cc_proto",
170 "//third_party/perfetto/protos:trace_android_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100171 "//third_party/perfetto/protos:trace_android_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100172 "//third_party/perfetto/protos:trace_chrome_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100173 "//third_party/perfetto/protos:trace_chrome_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100174 "//third_party/perfetto/protos:trace_filesystem_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100175 "//third_party/perfetto/protos:trace_filesystem_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100176 "//third_party/perfetto/protos:trace_ftrace_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100177 "//third_party/perfetto/protos:trace_ftrace_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100178 "//third_party/perfetto/protos:trace_gpu_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100179 "//third_party/perfetto/protos:trace_gpu_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100180 "//third_party/perfetto/protos:trace_interned_data_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100181 "//third_party/perfetto/protos:trace_interned_data_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100182 "//third_party/perfetto/protos:trace_minimal_cc_proto",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200183 "//third_party/perfetto/protos:trace_minimal_zero_cc_proto",
184 "//third_party/perfetto/protos:trace_non_minimal_cc_proto",
185 "//third_party/perfetto/protos:trace_non_minimal_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100186 "//third_party/perfetto/protos:trace_perfetto_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100187 "//third_party/perfetto/protos:trace_perfetto_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100188 "//third_party/perfetto/protos:trace_power_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100189 "//third_party/perfetto/protos:trace_power_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100190 "//third_party/perfetto/protos:trace_profiling_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100191 "//third_party/perfetto/protos:trace_profiling_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100192 "//third_party/perfetto/protos:trace_ps_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100193 "//third_party/perfetto/protos:trace_ps_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100194 "//third_party/perfetto/protos:trace_sys_stats_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100195 "//third_party/perfetto/protos:trace_sys_stats_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100196 "//third_party/perfetto/protos:trace_track_event_cc_proto",
Florian Mayercf9eadc2019-08-05 11:59:35 +0100197 "//third_party/perfetto/protos:trace_track_event_zero_cc_proto",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +0100198 ],
199)
200
Primiano Tucci02c11762019-08-30 00:57:59 +0200201# GN target: //src/protozero:libprotozero
202cc_library(
203 name = "libprotozero",
204 srcs = [
205 "src/protozero/message.cc",
206 "src/protozero/message_handle.cc",
207 "src/protozero/proto_decoder.cc",
208 "src/protozero/scattered_heap_buffer.cc",
209 "src/protozero/scattered_stream_null_delegate.cc",
210 "src/protozero/scattered_stream_writer.cc",
211 ],
212 hdrs = [
213 "include/perfetto/base/build_config.h",
214 "include/perfetto/base/compiler.h",
215 "include/perfetto/base/copyable_ptr.h",
216 "include/perfetto/base/export.h",
217 "include/perfetto/base/logging.h",
218 "include/perfetto/base/task_runner.h",
219 "include/perfetto/base/time.h",
220 "include/perfetto/ext/base/circular_queue.h",
221 "include/perfetto/ext/base/container_annotations.h",
222 "include/perfetto/ext/base/event_fd.h",
223 "include/perfetto/ext/base/file_utils.h",
224 "include/perfetto/ext/base/hash.h",
225 "include/perfetto/ext/base/lookup_set.h",
226 "include/perfetto/ext/base/metatrace.h",
227 "include/perfetto/ext/base/metatrace_events.h",
228 "include/perfetto/ext/base/no_destructor.h",
229 "include/perfetto/ext/base/optional.h",
230 "include/perfetto/ext/base/paged_memory.h",
231 "include/perfetto/ext/base/pipe.h",
232 "include/perfetto/ext/base/proc_utils.h",
233 "include/perfetto/ext/base/scoped_file.h",
234 "include/perfetto/ext/base/small_set.h",
235 "include/perfetto/ext/base/string_splitter.h",
236 "include/perfetto/ext/base/string_utils.h",
237 "include/perfetto/ext/base/string_view.h",
238 "include/perfetto/ext/base/string_writer.h",
239 "include/perfetto/ext/base/temp_file.h",
240 "include/perfetto/ext/base/thread_annotations.h",
241 "include/perfetto/ext/base/thread_checker.h",
242 "include/perfetto/ext/base/thread_task_runner.h",
243 "include/perfetto/ext/base/thread_utils.h",
244 "include/perfetto/ext/base/unix_socket.h",
245 "include/perfetto/ext/base/unix_task_runner.h",
246 "include/perfetto/ext/base/utils.h",
247 "include/perfetto/ext/base/uuid.h",
248 "include/perfetto/ext/base/waitable_event.h",
249 "include/perfetto/ext/base/watchdog.h",
250 "include/perfetto/ext/base/watchdog_noop.h",
251 "include/perfetto/ext/base/watchdog_posix.h",
252 "include/perfetto/ext/base/weak_ptr.h",
253 "include/perfetto/protozero/contiguous_memory_range.h",
254 "include/perfetto/protozero/field.h",
255 "include/perfetto/protozero/message.h",
256 "include/perfetto/protozero/message_handle.h",
257 "include/perfetto/protozero/proto_decoder.h",
258 "include/perfetto/protozero/proto_utils.h",
259 "include/perfetto/protozero/scattered_heap_buffer.h",
260 "include/perfetto/protozero/scattered_stream_null_delegate.h",
261 "include/perfetto/protozero/scattered_stream_writer.h",
262 ],
263)
264
265# GN target: //src/protozero/protoc_plugin:protozero_plugin
266cc_binary(
267 name = "src_protozero_protoc_plugin_protozero_plugin",
268 srcs = [
269 "src/protozero/protoc_plugin/protozero_plugin.cc",
270 ],
271 deps = [
272 "//third_party/protobuf:libprotoc_legacy",
273 "//third_party/protobuf:protobuf_legacy",
274 ],
275)
276
Lalit Maganti279ecde2019-04-01 16:57:12 +0100277# GN target: //src/trace_processor:trace_processor
278cc_library(
Lalit Maganti5e242472019-04-01 17:25:08 +0100279 name = "trace_processor",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100280 srcs = [
Sami Kyostila389861f2019-07-09 20:52:43 +0100281 "src/base/event_fd.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100282 "src/base/file_utils.cc",
283 "src/base/metatrace.cc",
284 "src/base/paged_memory.cc",
285 "src/base/pipe.cc",
286 "src/base/string_splitter.cc",
287 "src/base/string_utils.cc",
288 "src/base/string_view.cc",
289 "src/base/temp_file.cc",
290 "src/base/thread_checker.cc",
291 "src/base/thread_task_runner.cc",
292 "src/base/time.cc",
293 "src/base/unix_task_runner.cc",
Hector Dearmanf275f692019-07-31 12:56:59 +0100294 "src/base/uuid.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100295 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100296 "src/base/waitable_event.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100297 "src/base/watchdog_posix.cc",
298 "src/protozero/message.cc",
299 "src/protozero/message_handle.cc",
300 "src/protozero/proto_decoder.cc",
301 "src/protozero/scattered_heap_buffer.cc",
302 "src/protozero/scattered_stream_null_delegate.cc",
303 "src/protozero/scattered_stream_writer.cc",
304 "src/trace_processor/android_logs_table.cc",
305 "src/trace_processor/android_logs_table.h",
306 "src/trace_processor/args_table.cc",
307 "src/trace_processor/args_table.h",
308 "src/trace_processor/args_tracker.cc",
309 "src/trace_processor/args_tracker.h",
310 "src/trace_processor/chunked_trace_reader.h",
311 "src/trace_processor/clock_tracker.cc",
312 "src/trace_processor/clock_tracker.h",
313 "src/trace_processor/counter_definitions_table.cc",
314 "src/trace_processor/counter_definitions_table.h",
315 "src/trace_processor/counter_values_table.cc",
316 "src/trace_processor/counter_values_table.h",
Oystein Eftevaag7f64c102019-08-29 10:27:31 -0700317 "src/trace_processor/cpu_profile_stack_sample_table.cc",
318 "src/trace_processor/cpu_profile_stack_sample_table.h",
Lalit Maganticf39caa2019-08-21 14:00:08 -0700319 "src/trace_processor/db/bit_vector.cc",
320 "src/trace_processor/db/bit_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700321 "src/trace_processor/db/column.cc",
322 "src/trace_processor/db/column.h",
Lalit Magantidb5a4732019-08-21 14:43:06 -0700323 "src/trace_processor/db/row_map.cc",
324 "src/trace_processor/db/row_map.h",
Lalit Magantidae1c1c2019-08-21 14:49:23 -0700325 "src/trace_processor/db/sparse_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700326 "src/trace_processor/db/table.cc",
327 "src/trace_processor/db/table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100328 "src/trace_processor/event_tracker.cc",
329 "src/trace_processor/event_tracker.h",
Mikhail Khokhlova8d310d2019-05-07 17:34:21 +0100330 "src/trace_processor/export_json.cc",
331 "src/trace_processor/export_json.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100332 "src/trace_processor/filtered_row_index.cc",
333 "src/trace_processor/filtered_row_index.h",
Hector Dearmand8c3d5c2019-08-06 13:28:23 +0100334 "src/trace_processor/forwarding_trace_parser.cc",
335 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100336 "src/trace_processor/ftrace_descriptors.cc",
337 "src/trace_processor/ftrace_descriptors.h",
338 "src/trace_processor/ftrace_utils.cc",
339 "src/trace_processor/ftrace_utils.h",
Brian Hamrickd57e1332019-04-24 11:25:36 -0700340 "src/trace_processor/fuchsia_provider_view.cc",
341 "src/trace_processor/fuchsia_provider_view.h",
342 "src/trace_processor/fuchsia_trace_parser.cc",
343 "src/trace_processor/fuchsia_trace_parser.h",
344 "src/trace_processor/fuchsia_trace_tokenizer.cc",
345 "src/trace_processor/fuchsia_trace_tokenizer.h",
346 "src/trace_processor/fuchsia_trace_utils.cc",
347 "src/trace_processor/fuchsia_trace_utils.h",
Mikael Pessa7160ccc2019-07-25 11:19:26 -0700348 "src/trace_processor/graphics_frame_event_parser.cc",
349 "src/trace_processor/graphics_frame_event_parser.h",
Hector Dearman22f1de52019-06-04 18:11:45 +0100350 "src/trace_processor/gzip_trace_parser.cc",
351 "src/trace_processor/gzip_trace_parser.h",
Lalit Maganti9b2d52b2019-05-07 14:32:15 +0100352 "src/trace_processor/heap_profile_allocation_table.cc",
353 "src/trace_processor/heap_profile_allocation_table.h",
Florian Mayer438b5ab2019-05-02 11:18:06 +0100354 "src/trace_processor/heap_profile_tracker.cc",
355 "src/trace_processor/heap_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100356 "src/trace_processor/instants_table.cc",
357 "src/trace_processor/instants_table.h",
358 "src/trace_processor/json_trace_parser.cc",
359 "src/trace_processor/json_trace_parser.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -0700360 "src/trace_processor/json_trace_tokenizer.cc",
361 "src/trace_processor/json_trace_tokenizer.h",
362 "src/trace_processor/json_trace_utils.cc",
363 "src/trace_processor/json_trace_utils.h",
Mikhail Khokhlove466c002019-05-23 13:33:33 +0100364 "src/trace_processor/metadata.h",
365 "src/trace_processor/metadata_table.cc",
366 "src/trace_processor/metadata_table.h",
Lalit Maganti62211072019-05-10 14:09:58 +0100367 "src/trace_processor/metrics/descriptors.cc",
368 "src/trace_processor/metrics/descriptors.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100369 "src/trace_processor/metrics/metrics.cc",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100370 "src/trace_processor/metrics/metrics.descriptor.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100371 "src/trace_processor/metrics/metrics.h",
Lalit Maganti697cc482019-05-01 14:39:11 +0100372 "src/trace_processor/metrics/sql_metrics.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100373 "src/trace_processor/null_term_string_view.h",
374 "src/trace_processor/process_table.cc",
375 "src/trace_processor/process_table.h",
376 "src/trace_processor/process_tracker.cc",
377 "src/trace_processor/process_tracker.h",
Lalit Magantic50e1422019-04-29 14:23:25 +0100378 "src/trace_processor/proto_incremental_state.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100379 "src/trace_processor/proto_trace_parser.cc",
380 "src/trace_processor/proto_trace_parser.h",
381 "src/trace_processor/proto_trace_tokenizer.cc",
382 "src/trace_processor/proto_trace_tokenizer.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100383 "src/trace_processor/raw_table.cc",
384 "src/trace_processor/raw_table.h",
385 "src/trace_processor/row_iterators.cc",
386 "src/trace_processor/row_iterators.h",
387 "src/trace_processor/sched_slice_table.cc",
388 "src/trace_processor/sched_slice_table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100389 "src/trace_processor/slice_table.cc",
390 "src/trace_processor/slice_table.h",
391 "src/trace_processor/slice_tracker.cc",
392 "src/trace_processor/slice_tracker.h",
393 "src/trace_processor/span_join_operator_table.cc",
394 "src/trace_processor/span_join_operator_table.h",
395 "src/trace_processor/sql_stats_table.cc",
396 "src/trace_processor/sql_stats_table.h",
Lalit Maganti59e87512019-09-03 15:24:51 +0100397 "src/trace_processor/sqlite/db_sqlite_table.cc",
398 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti737b3762019-08-26 13:46:37 -0700399 "src/trace_processor/sqlite/query_constraints.cc",
400 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100401 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100402 "src/trace_processor/sqlite/sqlite3_str_split.cc",
403 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti737b3762019-08-26 13:46:37 -0700404 "src/trace_processor/sqlite/sqlite_table.cc",
405 "src/trace_processor/sqlite/sqlite_table.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100406 "src/trace_processor/sqlite/sqlite_utils.h",
Oystein Eftevaag5419c582019-08-21 13:58:49 -0700407 "src/trace_processor/stack_profile_callsite_table.cc",
408 "src/trace_processor/stack_profile_callsite_table.h",
409 "src/trace_processor/stack_profile_frame_table.cc",
410 "src/trace_processor/stack_profile_frame_table.h",
411 "src/trace_processor/stack_profile_mapping_table.cc",
412 "src/trace_processor/stack_profile_mapping_table.h",
413 "src/trace_processor/stack_profile_tracker.cc",
414 "src/trace_processor/stack_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100415 "src/trace_processor/stats.h",
416 "src/trace_processor/stats_table.cc",
417 "src/trace_processor/stats_table.h",
418 "src/trace_processor/storage_columns.cc",
419 "src/trace_processor/storage_columns.h",
420 "src/trace_processor/storage_schema.cc",
421 "src/trace_processor/storage_schema.h",
422 "src/trace_processor/storage_table.cc",
423 "src/trace_processor/storage_table.h",
424 "src/trace_processor/string_pool.cc",
425 "src/trace_processor/string_pool.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100426 "src/trace_processor/syscall_tracker.cc",
427 "src/trace_processor/syscall_tracker.h",
Lalit Maganti5e60c652019-04-15 19:55:07 +0100428 "src/trace_processor/syscalls_aarch32.h",
429 "src/trace_processor/syscalls_aarch64.h",
430 "src/trace_processor/syscalls_armeabi.h",
431 "src/trace_processor/syscalls_x86_64.h",
Lalit Magantid33dc272019-06-06 14:51:45 +0100432 "src/trace_processor/systrace_parser.cc",
433 "src/trace_processor/systrace_parser.h",
Lalit Magantid54d7522019-05-30 14:36:08 +0100434 "src/trace_processor/systrace_trace_parser.cc",
435 "src/trace_processor/systrace_trace_parser.h",
Lalit Maganti6dc35462019-08-29 13:24:07 +0100436 "src/trace_processor/tables/macros.h",
437 "src/trace_processor/tables/macros_internal.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100438 "src/trace_processor/thread_table.cc",
439 "src/trace_processor/thread_table.h",
440 "src/trace_processor/trace_blob_view.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -0700441 "src/trace_processor/trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100442 "src/trace_processor/trace_processor.cc",
443 "src/trace_processor/trace_processor_context.cc",
444 "src/trace_processor/trace_processor_context.h",
445 "src/trace_processor/trace_processor_impl.cc",
446 "src/trace_processor/trace_processor_impl.h",
447 "src/trace_processor/trace_sorter.cc",
448 "src/trace_processor/trace_sorter.h",
449 "src/trace_processor/trace_storage.cc",
450 "src/trace_processor/trace_storage.h",
Lalit Maganticdd69c92019-08-23 17:30:53 -0700451 "src/trace_processor/track_table.cc",
452 "src/trace_processor/track_table.h",
Mikhail Khokhlov85a0dd02019-05-17 14:22:28 +0100453 "src/trace_processor/variadic.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100454 "src/trace_processor/virtual_destructors.cc",
Eric Seckler5703ede2019-07-10 10:13:02 +0100455 "src/trace_processor/virtual_track_tracker.cc",
456 "src/trace_processor/virtual_track_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100457 "src/trace_processor/window_operator_table.cc",
458 "src/trace_processor/window_operator_table.h",
459 ],
460 hdrs = [
461 "include/perfetto/base/build_config.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100462 "include/perfetto/base/compiler.h",
Primiano Tucci3b39fc72019-06-22 19:05:23 +0100463 "include/perfetto/base/copyable_ptr.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100464 "include/perfetto/base/export.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100465 "include/perfetto/base/logging.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100466 "include/perfetto/base/task_runner.h",
Eric Seckler83dcc8c2019-08-21 12:18:43 +0100467 "include/perfetto/base/time.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100468 "include/perfetto/ext/base/circular_queue.h",
469 "include/perfetto/ext/base/container_annotations.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100470 "include/perfetto/ext/base/event_fd.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100471 "include/perfetto/ext/base/file_utils.h",
472 "include/perfetto/ext/base/hash.h",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200473 "include/perfetto/ext/base/lookup_set.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100474 "include/perfetto/ext/base/metatrace.h",
Lalit Maganti0dc98592019-06-05 14:59:55 +0100475 "include/perfetto/ext/base/metatrace_events.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100476 "include/perfetto/ext/base/no_destructor.h",
477 "include/perfetto/ext/base/optional.h",
478 "include/perfetto/ext/base/paged_memory.h",
479 "include/perfetto/ext/base/pipe.h",
Primiano Tucci07489b82019-08-23 10:06:50 +0200480 "include/perfetto/ext/base/proc_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100481 "include/perfetto/ext/base/scoped_file.h",
482 "include/perfetto/ext/base/small_set.h",
483 "include/perfetto/ext/base/string_splitter.h",
484 "include/perfetto/ext/base/string_utils.h",
485 "include/perfetto/ext/base/string_view.h",
486 "include/perfetto/ext/base/string_writer.h",
487 "include/perfetto/ext/base/temp_file.h",
488 "include/perfetto/ext/base/thread_annotations.h",
489 "include/perfetto/ext/base/thread_checker.h",
490 "include/perfetto/ext/base/thread_task_runner.h",
491 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100492 "include/perfetto/ext/base/unix_socket.h",
493 "include/perfetto/ext/base/unix_task_runner.h",
494 "include/perfetto/ext/base/utils.h",
Hector Dearmanf275f692019-07-31 12:56:59 +0100495 "include/perfetto/ext/base/uuid.h",
Lalit Magantiacedc642019-07-11 16:50:16 +0100496 "include/perfetto/ext/base/waitable_event.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100497 "include/perfetto/ext/base/watchdog.h",
498 "include/perfetto/ext/base/watchdog_noop.h",
499 "include/perfetto/ext/base/watchdog_posix.h",
500 "include/perfetto/ext/base/weak_ptr.h",
501 "include/perfetto/ext/traced/sys_stats_counters.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100502 "include/perfetto/protozero/contiguous_memory_range.h",
503 "include/perfetto/protozero/field.h",
504 "include/perfetto/protozero/message.h",
505 "include/perfetto/protozero/message_handle.h",
506 "include/perfetto/protozero/proto_decoder.h",
507 "include/perfetto/protozero/proto_utils.h",
508 "include/perfetto/protozero/scattered_heap_buffer.h",
509 "include/perfetto/protozero/scattered_stream_null_delegate.h",
510 "include/perfetto/protozero/scattered_stream_writer.h",
511 "include/perfetto/trace_processor/basic_types.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100512 "include/perfetto/trace_processor/status.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100513 "include/perfetto/trace_processor/trace_processor.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100514 ],
515 deps = [
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100516 "//third_party/perfetto:gen_merged_sql_metrics",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100517 "//third_party/perfetto/google:jsoncpp",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100518 "//third_party/perfetto/protos:common_zero_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +0200519 "//third_party/perfetto/protos:config_android_zero_cc_proto",
520 "//third_party/perfetto/protos:config_ftrace_zero_cc_proto",
521 "//third_party/perfetto/protos:config_gpu_zero_cc_proto",
522 "//third_party/perfetto/protos:config_inode_file_zero_cc_proto",
523 "//third_party/perfetto/protos:config_power_zero_cc_proto",
524 "//third_party/perfetto/protos:config_process_stats_zero_cc_proto",
525 "//third_party/perfetto/protos:config_profiling_zero_cc_proto",
526 "//third_party/perfetto/protos:config_sys_stats_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100527 "//third_party/perfetto/protos:config_zero_cc_proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100528 "//third_party/perfetto/protos:metrics_android_zero_cc_proto",
529 "//third_party/perfetto/protos:metrics_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100530 "//third_party/perfetto/protos:trace_android_zero_cc_proto",
531 "//third_party/perfetto/protos:trace_chrome_zero_cc_proto",
532 "//third_party/perfetto/protos:trace_filesystem_zero_cc_proto",
533 "//third_party/perfetto/protos:trace_ftrace_zero_cc_proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700534 "//third_party/perfetto/protos:trace_gpu_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100535 "//third_party/perfetto/protos:trace_interned_data_zero_cc_proto",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200536 "//third_party/perfetto/protos:trace_minimal_zero_cc_proto",
537 "//third_party/perfetto/protos:trace_non_minimal_zero_cc_proto",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100538 "//third_party/perfetto/protos:trace_perfetto_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100539 "//third_party/perfetto/protos:trace_power_zero_cc_proto",
Lalit Magantie59293b2019-05-22 15:07:39 +0100540 "//third_party/perfetto/protos:trace_processor_metrics_impl_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100541 "//third_party/perfetto/protos:trace_profiling_zero_cc_proto",
542 "//third_party/perfetto/protos:trace_ps_zero_cc_proto",
543 "//third_party/perfetto/protos:trace_sys_stats_zero_cc_proto",
544 "//third_party/perfetto/protos:trace_track_event_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100545 "//third_party/sqlite",
546 "//third_party/sqlite:sqlite_ext_percentile",
Lalit Magantidf7d31c2019-06-18 13:18:57 +0100547 "//third_party/zlib:zlibsystem",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100548 ],
549)
550
Primiano Tucci02c11762019-08-30 00:57:59 +0200551# GN target: //src/trace_processor:trace_processor_shell
Lalit Maganti279ecde2019-04-01 16:57:12 +0100552cc_binary(
Lalit Maganti5e242472019-04-01 17:25:08 +0100553 name = "trace_processor_shell",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100554 srcs = [
555 "include/perfetto/base/build_config.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100556 "include/perfetto/base/compiler.h",
Primiano Tucci3b39fc72019-06-22 19:05:23 +0100557 "include/perfetto/base/copyable_ptr.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100558 "include/perfetto/base/export.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100559 "include/perfetto/base/logging.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100560 "include/perfetto/base/task_runner.h",
Eric Seckler83dcc8c2019-08-21 12:18:43 +0100561 "include/perfetto/base/time.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100562 "include/perfetto/ext/base/circular_queue.h",
563 "include/perfetto/ext/base/container_annotations.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100564 "include/perfetto/ext/base/event_fd.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100565 "include/perfetto/ext/base/file_utils.h",
566 "include/perfetto/ext/base/hash.h",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200567 "include/perfetto/ext/base/lookup_set.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100568 "include/perfetto/ext/base/metatrace.h",
Lalit Maganti0dc98592019-06-05 14:59:55 +0100569 "include/perfetto/ext/base/metatrace_events.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100570 "include/perfetto/ext/base/no_destructor.h",
571 "include/perfetto/ext/base/optional.h",
572 "include/perfetto/ext/base/paged_memory.h",
573 "include/perfetto/ext/base/pipe.h",
Primiano Tucci07489b82019-08-23 10:06:50 +0200574 "include/perfetto/ext/base/proc_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100575 "include/perfetto/ext/base/scoped_file.h",
576 "include/perfetto/ext/base/small_set.h",
577 "include/perfetto/ext/base/string_splitter.h",
578 "include/perfetto/ext/base/string_utils.h",
579 "include/perfetto/ext/base/string_view.h",
580 "include/perfetto/ext/base/string_writer.h",
581 "include/perfetto/ext/base/temp_file.h",
582 "include/perfetto/ext/base/thread_annotations.h",
583 "include/perfetto/ext/base/thread_checker.h",
584 "include/perfetto/ext/base/thread_task_runner.h",
585 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100586 "include/perfetto/ext/base/unix_socket.h",
587 "include/perfetto/ext/base/unix_task_runner.h",
588 "include/perfetto/ext/base/utils.h",
Hector Dearmanf275f692019-07-31 12:56:59 +0100589 "include/perfetto/ext/base/uuid.h",
Lalit Magantiacedc642019-07-11 16:50:16 +0100590 "include/perfetto/ext/base/waitable_event.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100591 "include/perfetto/ext/base/watchdog.h",
592 "include/perfetto/ext/base/watchdog_noop.h",
593 "include/perfetto/ext/base/watchdog_posix.h",
594 "include/perfetto/ext/base/weak_ptr.h",
595 "include/perfetto/ext/traced/sys_stats_counters.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100596 "include/perfetto/protozero/contiguous_memory_range.h",
597 "include/perfetto/protozero/field.h",
598 "include/perfetto/protozero/message.h",
599 "include/perfetto/protozero/message_handle.h",
600 "include/perfetto/protozero/proto_decoder.h",
601 "include/perfetto/protozero/proto_utils.h",
602 "include/perfetto/protozero/scattered_heap_buffer.h",
603 "include/perfetto/protozero/scattered_stream_null_delegate.h",
604 "include/perfetto/protozero/scattered_stream_writer.h",
605 "include/perfetto/trace_processor/basic_types.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100606 "include/perfetto/trace_processor/status.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100607 "include/perfetto/trace_processor/trace_processor.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100608 "src/base/event_fd.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100609 "src/base/file_utils.cc",
610 "src/base/metatrace.cc",
611 "src/base/paged_memory.cc",
612 "src/base/pipe.cc",
613 "src/base/string_splitter.cc",
614 "src/base/string_utils.cc",
615 "src/base/string_view.cc",
616 "src/base/temp_file.cc",
617 "src/base/thread_checker.cc",
618 "src/base/thread_task_runner.cc",
619 "src/base/time.cc",
620 "src/base/unix_task_runner.cc",
Hector Dearmanf275f692019-07-31 12:56:59 +0100621 "src/base/uuid.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100622 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100623 "src/base/waitable_event.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100624 "src/base/watchdog_posix.cc",
625 "src/protozero/message.cc",
626 "src/protozero/message_handle.cc",
627 "src/protozero/proto_decoder.cc",
628 "src/protozero/scattered_heap_buffer.cc",
629 "src/protozero/scattered_stream_null_delegate.cc",
630 "src/protozero/scattered_stream_writer.cc",
631 "src/trace_processor/android_logs_table.cc",
632 "src/trace_processor/android_logs_table.h",
633 "src/trace_processor/args_table.cc",
634 "src/trace_processor/args_table.h",
635 "src/trace_processor/args_tracker.cc",
636 "src/trace_processor/args_tracker.h",
637 "src/trace_processor/chunked_trace_reader.h",
638 "src/trace_processor/clock_tracker.cc",
639 "src/trace_processor/clock_tracker.h",
640 "src/trace_processor/counter_definitions_table.cc",
641 "src/trace_processor/counter_definitions_table.h",
642 "src/trace_processor/counter_values_table.cc",
643 "src/trace_processor/counter_values_table.h",
Oystein Eftevaag7f64c102019-08-29 10:27:31 -0700644 "src/trace_processor/cpu_profile_stack_sample_table.cc",
645 "src/trace_processor/cpu_profile_stack_sample_table.h",
Lalit Maganticf39caa2019-08-21 14:00:08 -0700646 "src/trace_processor/db/bit_vector.cc",
647 "src/trace_processor/db/bit_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700648 "src/trace_processor/db/column.cc",
649 "src/trace_processor/db/column.h",
Lalit Magantidb5a4732019-08-21 14:43:06 -0700650 "src/trace_processor/db/row_map.cc",
651 "src/trace_processor/db/row_map.h",
Lalit Magantidae1c1c2019-08-21 14:49:23 -0700652 "src/trace_processor/db/sparse_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700653 "src/trace_processor/db/table.cc",
654 "src/trace_processor/db/table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100655 "src/trace_processor/event_tracker.cc",
656 "src/trace_processor/event_tracker.h",
Mikhail Khokhlova8d310d2019-05-07 17:34:21 +0100657 "src/trace_processor/export_json.cc",
658 "src/trace_processor/export_json.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100659 "src/trace_processor/filtered_row_index.cc",
660 "src/trace_processor/filtered_row_index.h",
Hector Dearmand8c3d5c2019-08-06 13:28:23 +0100661 "src/trace_processor/forwarding_trace_parser.cc",
662 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100663 "src/trace_processor/ftrace_descriptors.cc",
664 "src/trace_processor/ftrace_descriptors.h",
665 "src/trace_processor/ftrace_utils.cc",
666 "src/trace_processor/ftrace_utils.h",
Brian Hamrickd57e1332019-04-24 11:25:36 -0700667 "src/trace_processor/fuchsia_provider_view.cc",
668 "src/trace_processor/fuchsia_provider_view.h",
669 "src/trace_processor/fuchsia_trace_parser.cc",
670 "src/trace_processor/fuchsia_trace_parser.h",
671 "src/trace_processor/fuchsia_trace_tokenizer.cc",
672 "src/trace_processor/fuchsia_trace_tokenizer.h",
673 "src/trace_processor/fuchsia_trace_utils.cc",
674 "src/trace_processor/fuchsia_trace_utils.h",
Mikael Pessa7160ccc2019-07-25 11:19:26 -0700675 "src/trace_processor/graphics_frame_event_parser.cc",
676 "src/trace_processor/graphics_frame_event_parser.h",
Hector Dearman22f1de52019-06-04 18:11:45 +0100677 "src/trace_processor/gzip_trace_parser.cc",
678 "src/trace_processor/gzip_trace_parser.h",
Lalit Maganti9b2d52b2019-05-07 14:32:15 +0100679 "src/trace_processor/heap_profile_allocation_table.cc",
680 "src/trace_processor/heap_profile_allocation_table.h",
Florian Mayer438b5ab2019-05-02 11:18:06 +0100681 "src/trace_processor/heap_profile_tracker.cc",
682 "src/trace_processor/heap_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100683 "src/trace_processor/instants_table.cc",
684 "src/trace_processor/instants_table.h",
685 "src/trace_processor/json_trace_parser.cc",
686 "src/trace_processor/json_trace_parser.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -0700687 "src/trace_processor/json_trace_tokenizer.cc",
688 "src/trace_processor/json_trace_tokenizer.h",
689 "src/trace_processor/json_trace_utils.cc",
690 "src/trace_processor/json_trace_utils.h",
Mikhail Khokhlove466c002019-05-23 13:33:33 +0100691 "src/trace_processor/metadata.h",
692 "src/trace_processor/metadata_table.cc",
693 "src/trace_processor/metadata_table.h",
Lalit Maganti62211072019-05-10 14:09:58 +0100694 "src/trace_processor/metrics/descriptors.cc",
695 "src/trace_processor/metrics/descriptors.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100696 "src/trace_processor/metrics/metrics.cc",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100697 "src/trace_processor/metrics/metrics.descriptor.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100698 "src/trace_processor/metrics/metrics.h",
Lalit Maganti697cc482019-05-01 14:39:11 +0100699 "src/trace_processor/metrics/sql_metrics.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100700 "src/trace_processor/null_term_string_view.h",
701 "src/trace_processor/process_table.cc",
702 "src/trace_processor/process_table.h",
703 "src/trace_processor/process_tracker.cc",
704 "src/trace_processor/process_tracker.h",
Lalit Magantic50e1422019-04-29 14:23:25 +0100705 "src/trace_processor/proto_incremental_state.h",
Lalit Maganti25863f72019-08-28 22:14:25 +0100706 "src/trace_processor/proto_to_json.cc",
707 "src/trace_processor/proto_to_json.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100708 "src/trace_processor/proto_trace_parser.cc",
709 "src/trace_processor/proto_trace_parser.h",
710 "src/trace_processor/proto_trace_tokenizer.cc",
711 "src/trace_processor/proto_trace_tokenizer.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100712 "src/trace_processor/raw_table.cc",
713 "src/trace_processor/raw_table.h",
714 "src/trace_processor/row_iterators.cc",
715 "src/trace_processor/row_iterators.h",
716 "src/trace_processor/sched_slice_table.cc",
717 "src/trace_processor/sched_slice_table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100718 "src/trace_processor/slice_table.cc",
719 "src/trace_processor/slice_table.h",
720 "src/trace_processor/slice_tracker.cc",
721 "src/trace_processor/slice_tracker.h",
722 "src/trace_processor/span_join_operator_table.cc",
723 "src/trace_processor/span_join_operator_table.h",
724 "src/trace_processor/sql_stats_table.cc",
725 "src/trace_processor/sql_stats_table.h",
Lalit Maganti59e87512019-09-03 15:24:51 +0100726 "src/trace_processor/sqlite/db_sqlite_table.cc",
727 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti737b3762019-08-26 13:46:37 -0700728 "src/trace_processor/sqlite/query_constraints.cc",
729 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100730 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100731 "src/trace_processor/sqlite/sqlite3_str_split.cc",
732 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti737b3762019-08-26 13:46:37 -0700733 "src/trace_processor/sqlite/sqlite_table.cc",
734 "src/trace_processor/sqlite/sqlite_table.h",
Lalit Maganti03d10622019-08-27 14:47:39 +0100735 "src/trace_processor/sqlite/sqlite_utils.h",
Oystein Eftevaag5419c582019-08-21 13:58:49 -0700736 "src/trace_processor/stack_profile_callsite_table.cc",
737 "src/trace_processor/stack_profile_callsite_table.h",
738 "src/trace_processor/stack_profile_frame_table.cc",
739 "src/trace_processor/stack_profile_frame_table.h",
740 "src/trace_processor/stack_profile_mapping_table.cc",
741 "src/trace_processor/stack_profile_mapping_table.h",
742 "src/trace_processor/stack_profile_tracker.cc",
743 "src/trace_processor/stack_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100744 "src/trace_processor/stats.h",
745 "src/trace_processor/stats_table.cc",
746 "src/trace_processor/stats_table.h",
747 "src/trace_processor/storage_columns.cc",
748 "src/trace_processor/storage_columns.h",
749 "src/trace_processor/storage_schema.cc",
750 "src/trace_processor/storage_schema.h",
751 "src/trace_processor/storage_table.cc",
752 "src/trace_processor/storage_table.h",
753 "src/trace_processor/string_pool.cc",
754 "src/trace_processor/string_pool.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100755 "src/trace_processor/syscall_tracker.cc",
756 "src/trace_processor/syscall_tracker.h",
Lalit Maganti5e60c652019-04-15 19:55:07 +0100757 "src/trace_processor/syscalls_aarch32.h",
758 "src/trace_processor/syscalls_aarch64.h",
759 "src/trace_processor/syscalls_armeabi.h",
760 "src/trace_processor/syscalls_x86_64.h",
Lalit Magantid33dc272019-06-06 14:51:45 +0100761 "src/trace_processor/systrace_parser.cc",
762 "src/trace_processor/systrace_parser.h",
Lalit Magantid54d7522019-05-30 14:36:08 +0100763 "src/trace_processor/systrace_trace_parser.cc",
764 "src/trace_processor/systrace_trace_parser.h",
Lalit Maganti6dc35462019-08-29 13:24:07 +0100765 "src/trace_processor/tables/macros.h",
766 "src/trace_processor/tables/macros_internal.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100767 "src/trace_processor/thread_table.cc",
768 "src/trace_processor/thread_table.h",
769 "src/trace_processor/trace_blob_view.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -0700770 "src/trace_processor/trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100771 "src/trace_processor/trace_processor.cc",
772 "src/trace_processor/trace_processor_context.cc",
773 "src/trace_processor/trace_processor_context.h",
774 "src/trace_processor/trace_processor_impl.cc",
775 "src/trace_processor/trace_processor_impl.h",
776 "src/trace_processor/trace_processor_shell.cc",
777 "src/trace_processor/trace_sorter.cc",
778 "src/trace_processor/trace_sorter.h",
779 "src/trace_processor/trace_storage.cc",
780 "src/trace_processor/trace_storage.h",
Lalit Maganticdd69c92019-08-23 17:30:53 -0700781 "src/trace_processor/track_table.cc",
782 "src/trace_processor/track_table.h",
Mikhail Khokhlov85a0dd02019-05-17 14:22:28 +0100783 "src/trace_processor/variadic.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100784 "src/trace_processor/virtual_destructors.cc",
Eric Seckler5703ede2019-07-10 10:13:02 +0100785 "src/trace_processor/virtual_track_tracker.cc",
786 "src/trace_processor/virtual_track_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100787 "src/trace_processor/window_operator_table.cc",
788 "src/trace_processor/window_operator_table.h",
789 ],
790 deps = [
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100791 "//third_party/perfetto:gen_merged_sql_metrics",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100792 "//third_party/perfetto/google:jsoncpp",
793 "//third_party/perfetto/google:linenoise",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100794 "//third_party/perfetto/protos:common_zero_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +0200795 "//third_party/perfetto/protos:config_android_zero_cc_proto",
796 "//third_party/perfetto/protos:config_ftrace_zero_cc_proto",
797 "//third_party/perfetto/protos:config_gpu_zero_cc_proto",
798 "//third_party/perfetto/protos:config_inode_file_zero_cc_proto",
799 "//third_party/perfetto/protos:config_power_zero_cc_proto",
800 "//third_party/perfetto/protos:config_process_stats_zero_cc_proto",
801 "//third_party/perfetto/protos:config_profiling_zero_cc_proto",
802 "//third_party/perfetto/protos:config_sys_stats_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100803 "//third_party/perfetto/protos:config_zero_cc_proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +0100804 "//third_party/perfetto/protos:metrics_android_zero_cc_proto",
805 "//third_party/perfetto/protos:metrics_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100806 "//third_party/perfetto/protos:trace_android_zero_cc_proto",
807 "//third_party/perfetto/protos:trace_chrome_zero_cc_proto",
808 "//third_party/perfetto/protos:trace_filesystem_zero_cc_proto",
809 "//third_party/perfetto/protos:trace_ftrace_zero_cc_proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700810 "//third_party/perfetto/protos:trace_gpu_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100811 "//third_party/perfetto/protos:trace_interned_data_zero_cc_proto",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200812 "//third_party/perfetto/protos:trace_minimal_zero_cc_proto",
813 "//third_party/perfetto/protos:trace_non_minimal_zero_cc_proto",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100814 "//third_party/perfetto/protos:trace_perfetto_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100815 "//third_party/perfetto/protos:trace_power_zero_cc_proto",
Lalit Magantie59293b2019-05-22 15:07:39 +0100816 "//third_party/perfetto/protos:trace_processor_metrics_impl_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +0100817 "//third_party/perfetto/protos:trace_profiling_zero_cc_proto",
818 "//third_party/perfetto/protos:trace_ps_zero_cc_proto",
819 "//third_party/perfetto/protos:trace_sys_stats_zero_cc_proto",
820 "//third_party/perfetto/protos:trace_track_event_zero_cc_proto",
Hector Dearmanc47d62b2019-06-20 09:40:26 +0100821 "//third_party/protobuf:libprotoc_legacy",
822 "//third_party/protobuf:protobuf_legacy",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100823 "//third_party/sqlite",
824 "//third_party/sqlite:sqlite_ext_percentile",
Lalit Magantidf7d31c2019-06-18 13:18:57 +0100825 "//third_party/zlib:zlibsystem",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100826 ],
827)
828
Primiano Tucci02c11762019-08-30 00:57:59 +0200829# GN target: //tools/trace_to_text:trace_to_text
Lalit Maganti279ecde2019-04-01 16:57:12 +0100830cc_binary(
Lalit Maganti5e242472019-04-01 17:25:08 +0100831 name = "trace_to_text",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100832 srcs = [
833 "include/perfetto/base/build_config.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100834 "include/perfetto/base/compiler.h",
Primiano Tucci3b39fc72019-06-22 19:05:23 +0100835 "include/perfetto/base/copyable_ptr.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100836 "include/perfetto/base/export.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100837 "include/perfetto/base/logging.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100838 "include/perfetto/base/task_runner.h",
Eric Seckler83dcc8c2019-08-21 12:18:43 +0100839 "include/perfetto/base/time.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100840 "include/perfetto/ext/base/circular_queue.h",
841 "include/perfetto/ext/base/container_annotations.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100842 "include/perfetto/ext/base/event_fd.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100843 "include/perfetto/ext/base/file_utils.h",
844 "include/perfetto/ext/base/hash.h",
Primiano Tucci75ae50e2019-08-28 13:09:55 +0200845 "include/perfetto/ext/base/lookup_set.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100846 "include/perfetto/ext/base/metatrace.h",
Lalit Maganti0dc98592019-06-05 14:59:55 +0100847 "include/perfetto/ext/base/metatrace_events.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100848 "include/perfetto/ext/base/no_destructor.h",
849 "include/perfetto/ext/base/optional.h",
850 "include/perfetto/ext/base/paged_memory.h",
851 "include/perfetto/ext/base/pipe.h",
Primiano Tucci07489b82019-08-23 10:06:50 +0200852 "include/perfetto/ext/base/proc_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100853 "include/perfetto/ext/base/scoped_file.h",
854 "include/perfetto/ext/base/small_set.h",
855 "include/perfetto/ext/base/string_splitter.h",
856 "include/perfetto/ext/base/string_utils.h",
857 "include/perfetto/ext/base/string_view.h",
858 "include/perfetto/ext/base/string_writer.h",
859 "include/perfetto/ext/base/temp_file.h",
860 "include/perfetto/ext/base/thread_annotations.h",
861 "include/perfetto/ext/base/thread_checker.h",
862 "include/perfetto/ext/base/thread_task_runner.h",
863 "include/perfetto/ext/base/thread_utils.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100864 "include/perfetto/ext/base/unix_socket.h",
865 "include/perfetto/ext/base/unix_task_runner.h",
866 "include/perfetto/ext/base/utils.h",
Hector Dearmanf275f692019-07-31 12:56:59 +0100867 "include/perfetto/ext/base/uuid.h",
Lalit Magantiacedc642019-07-11 16:50:16 +0100868 "include/perfetto/ext/base/waitable_event.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100869 "include/perfetto/ext/base/watchdog.h",
870 "include/perfetto/ext/base/watchdog_noop.h",
871 "include/perfetto/ext/base/watchdog_posix.h",
872 "include/perfetto/ext/base/weak_ptr.h",
873 "include/perfetto/ext/traced/sys_stats_counters.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100874 "include/perfetto/protozero/contiguous_memory_range.h",
875 "include/perfetto/protozero/field.h",
876 "include/perfetto/protozero/message.h",
877 "include/perfetto/protozero/message_handle.h",
878 "include/perfetto/protozero/proto_decoder.h",
879 "include/perfetto/protozero/proto_utils.h",
880 "include/perfetto/protozero/scattered_heap_buffer.h",
881 "include/perfetto/protozero/scattered_stream_null_delegate.h",
882 "include/perfetto/protozero/scattered_stream_writer.h",
883 "include/perfetto/trace_processor/basic_types.h",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100884 "include/perfetto/trace_processor/status.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100885 "include/perfetto/trace_processor/trace_processor.h",
Sami Kyostila389861f2019-07-09 20:52:43 +0100886 "src/base/event_fd.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100887 "src/base/file_utils.cc",
888 "src/base/metatrace.cc",
889 "src/base/paged_memory.cc",
890 "src/base/pipe.cc",
891 "src/base/string_splitter.cc",
892 "src/base/string_utils.cc",
893 "src/base/string_view.cc",
894 "src/base/temp_file.cc",
895 "src/base/thread_checker.cc",
896 "src/base/thread_task_runner.cc",
897 "src/base/time.cc",
898 "src/base/unix_task_runner.cc",
Hector Dearmanf275f692019-07-31 12:56:59 +0100899 "src/base/uuid.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100900 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100901 "src/base/waitable_event.cc",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100902 "src/base/watchdog_posix.cc",
903 "src/protozero/message.cc",
904 "src/protozero/message_handle.cc",
905 "src/protozero/proto_decoder.cc",
906 "src/protozero/scattered_heap_buffer.cc",
907 "src/protozero/scattered_stream_null_delegate.cc",
908 "src/protozero/scattered_stream_writer.cc",
909 "src/trace_processor/android_logs_table.cc",
910 "src/trace_processor/android_logs_table.h",
911 "src/trace_processor/args_table.cc",
912 "src/trace_processor/args_table.h",
913 "src/trace_processor/args_tracker.cc",
914 "src/trace_processor/args_tracker.h",
915 "src/trace_processor/chunked_trace_reader.h",
916 "src/trace_processor/clock_tracker.cc",
917 "src/trace_processor/clock_tracker.h",
918 "src/trace_processor/counter_definitions_table.cc",
919 "src/trace_processor/counter_definitions_table.h",
920 "src/trace_processor/counter_values_table.cc",
921 "src/trace_processor/counter_values_table.h",
Oystein Eftevaag7f64c102019-08-29 10:27:31 -0700922 "src/trace_processor/cpu_profile_stack_sample_table.cc",
923 "src/trace_processor/cpu_profile_stack_sample_table.h",
Lalit Maganticf39caa2019-08-21 14:00:08 -0700924 "src/trace_processor/db/bit_vector.cc",
925 "src/trace_processor/db/bit_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700926 "src/trace_processor/db/column.cc",
927 "src/trace_processor/db/column.h",
Lalit Magantidb5a4732019-08-21 14:43:06 -0700928 "src/trace_processor/db/row_map.cc",
929 "src/trace_processor/db/row_map.h",
Lalit Magantidae1c1c2019-08-21 14:49:23 -0700930 "src/trace_processor/db/sparse_vector.h",
Lalit Maganti22c8d962019-08-21 16:56:11 -0700931 "src/trace_processor/db/table.cc",
932 "src/trace_processor/db/table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100933 "src/trace_processor/event_tracker.cc",
934 "src/trace_processor/event_tracker.h",
Mikhail Khokhlova8d310d2019-05-07 17:34:21 +0100935 "src/trace_processor/export_json.cc",
936 "src/trace_processor/export_json.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100937 "src/trace_processor/filtered_row_index.cc",
938 "src/trace_processor/filtered_row_index.h",
Hector Dearmand8c3d5c2019-08-06 13:28:23 +0100939 "src/trace_processor/forwarding_trace_parser.cc",
940 "src/trace_processor/forwarding_trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100941 "src/trace_processor/ftrace_descriptors.cc",
942 "src/trace_processor/ftrace_descriptors.h",
943 "src/trace_processor/ftrace_utils.cc",
944 "src/trace_processor/ftrace_utils.h",
Brian Hamrickd57e1332019-04-24 11:25:36 -0700945 "src/trace_processor/fuchsia_provider_view.cc",
946 "src/trace_processor/fuchsia_provider_view.h",
947 "src/trace_processor/fuchsia_trace_parser.cc",
948 "src/trace_processor/fuchsia_trace_parser.h",
949 "src/trace_processor/fuchsia_trace_tokenizer.cc",
950 "src/trace_processor/fuchsia_trace_tokenizer.h",
951 "src/trace_processor/fuchsia_trace_utils.cc",
952 "src/trace_processor/fuchsia_trace_utils.h",
Mikael Pessa7160ccc2019-07-25 11:19:26 -0700953 "src/trace_processor/graphics_frame_event_parser.cc",
954 "src/trace_processor/graphics_frame_event_parser.h",
Hector Dearman22f1de52019-06-04 18:11:45 +0100955 "src/trace_processor/gzip_trace_parser.cc",
956 "src/trace_processor/gzip_trace_parser.h",
Lalit Maganti9b2d52b2019-05-07 14:32:15 +0100957 "src/trace_processor/heap_profile_allocation_table.cc",
958 "src/trace_processor/heap_profile_allocation_table.h",
Florian Mayer438b5ab2019-05-02 11:18:06 +0100959 "src/trace_processor/heap_profile_tracker.cc",
960 "src/trace_processor/heap_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100961 "src/trace_processor/instants_table.cc",
962 "src/trace_processor/instants_table.h",
963 "src/trace_processor/json_trace_parser.cc",
964 "src/trace_processor/json_trace_parser.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -0700965 "src/trace_processor/json_trace_tokenizer.cc",
966 "src/trace_processor/json_trace_tokenizer.h",
967 "src/trace_processor/json_trace_utils.cc",
968 "src/trace_processor/json_trace_utils.h",
Mikhail Khokhlove466c002019-05-23 13:33:33 +0100969 "src/trace_processor/metadata.h",
970 "src/trace_processor/metadata_table.cc",
971 "src/trace_processor/metadata_table.h",
Lalit Maganti62211072019-05-10 14:09:58 +0100972 "src/trace_processor/metrics/descriptors.cc",
973 "src/trace_processor/metrics/descriptors.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100974 "src/trace_processor/metrics/metrics.cc",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100975 "src/trace_processor/metrics/metrics.descriptor.h",
Lalit Maganti622676a2019-04-30 14:15:37 +0100976 "src/trace_processor/metrics/metrics.h",
Lalit Maganti697cc482019-05-01 14:39:11 +0100977 "src/trace_processor/metrics/sql_metrics.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100978 "src/trace_processor/null_term_string_view.h",
979 "src/trace_processor/process_table.cc",
980 "src/trace_processor/process_table.h",
981 "src/trace_processor/process_tracker.cc",
982 "src/trace_processor/process_tracker.h",
Lalit Magantic50e1422019-04-29 14:23:25 +0100983 "src/trace_processor/proto_incremental_state.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100984 "src/trace_processor/proto_trace_parser.cc",
985 "src/trace_processor/proto_trace_parser.h",
986 "src/trace_processor/proto_trace_tokenizer.cc",
987 "src/trace_processor/proto_trace_tokenizer.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100988 "src/trace_processor/raw_table.cc",
989 "src/trace_processor/raw_table.h",
990 "src/trace_processor/row_iterators.cc",
991 "src/trace_processor/row_iterators.h",
992 "src/trace_processor/sched_slice_table.cc",
993 "src/trace_processor/sched_slice_table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +0100994 "src/trace_processor/slice_table.cc",
995 "src/trace_processor/slice_table.h",
996 "src/trace_processor/slice_tracker.cc",
997 "src/trace_processor/slice_tracker.h",
998 "src/trace_processor/span_join_operator_table.cc",
999 "src/trace_processor/span_join_operator_table.h",
1000 "src/trace_processor/sql_stats_table.cc",
1001 "src/trace_processor/sql_stats_table.h",
Lalit Maganti59e87512019-09-03 15:24:51 +01001002 "src/trace_processor/sqlite/db_sqlite_table.cc",
1003 "src/trace_processor/sqlite/db_sqlite_table.h",
Lalit Maganti737b3762019-08-26 13:46:37 -07001004 "src/trace_processor/sqlite/query_constraints.cc",
1005 "src/trace_processor/sqlite/query_constraints.h",
Lalit Maganti03d10622019-08-27 14:47:39 +01001006 "src/trace_processor/sqlite/scoped_db.h",
Lalit Maganti03d10622019-08-27 14:47:39 +01001007 "src/trace_processor/sqlite/sqlite3_str_split.cc",
1008 "src/trace_processor/sqlite/sqlite3_str_split.h",
Lalit Maganti737b3762019-08-26 13:46:37 -07001009 "src/trace_processor/sqlite/sqlite_table.cc",
1010 "src/trace_processor/sqlite/sqlite_table.h",
Lalit Maganti03d10622019-08-27 14:47:39 +01001011 "src/trace_processor/sqlite/sqlite_utils.h",
Oystein Eftevaag5419c582019-08-21 13:58:49 -07001012 "src/trace_processor/stack_profile_callsite_table.cc",
1013 "src/trace_processor/stack_profile_callsite_table.h",
1014 "src/trace_processor/stack_profile_frame_table.cc",
1015 "src/trace_processor/stack_profile_frame_table.h",
1016 "src/trace_processor/stack_profile_mapping_table.cc",
1017 "src/trace_processor/stack_profile_mapping_table.h",
1018 "src/trace_processor/stack_profile_tracker.cc",
1019 "src/trace_processor/stack_profile_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001020 "src/trace_processor/stats.h",
1021 "src/trace_processor/stats_table.cc",
1022 "src/trace_processor/stats_table.h",
1023 "src/trace_processor/storage_columns.cc",
1024 "src/trace_processor/storage_columns.h",
1025 "src/trace_processor/storage_schema.cc",
1026 "src/trace_processor/storage_schema.h",
1027 "src/trace_processor/storage_table.cc",
1028 "src/trace_processor/storage_table.h",
1029 "src/trace_processor/string_pool.cc",
1030 "src/trace_processor/string_pool.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001031 "src/trace_processor/syscall_tracker.cc",
1032 "src/trace_processor/syscall_tracker.h",
Lalit Maganti5e60c652019-04-15 19:55:07 +01001033 "src/trace_processor/syscalls_aarch32.h",
1034 "src/trace_processor/syscalls_aarch64.h",
1035 "src/trace_processor/syscalls_armeabi.h",
1036 "src/trace_processor/syscalls_x86_64.h",
Lalit Magantid33dc272019-06-06 14:51:45 +01001037 "src/trace_processor/systrace_parser.cc",
1038 "src/trace_processor/systrace_parser.h",
Lalit Magantid54d7522019-05-30 14:36:08 +01001039 "src/trace_processor/systrace_trace_parser.cc",
1040 "src/trace_processor/systrace_trace_parser.h",
Lalit Maganti6dc35462019-08-29 13:24:07 +01001041 "src/trace_processor/tables/macros.h",
1042 "src/trace_processor/tables/macros_internal.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001043 "src/trace_processor/thread_table.cc",
1044 "src/trace_processor/thread_table.h",
1045 "src/trace_processor/trace_blob_view.h",
Deepanjan Roy01994ca2019-04-02 11:05:34 -07001046 "src/trace_processor/trace_parser.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001047 "src/trace_processor/trace_processor.cc",
1048 "src/trace_processor/trace_processor_context.cc",
1049 "src/trace_processor/trace_processor_context.h",
1050 "src/trace_processor/trace_processor_impl.cc",
1051 "src/trace_processor/trace_processor_impl.h",
1052 "src/trace_processor/trace_sorter.cc",
1053 "src/trace_processor/trace_sorter.h",
1054 "src/trace_processor/trace_storage.cc",
1055 "src/trace_processor/trace_storage.h",
Lalit Maganticdd69c92019-08-23 17:30:53 -07001056 "src/trace_processor/track_table.cc",
1057 "src/trace_processor/track_table.h",
Mikhail Khokhlov85a0dd02019-05-17 14:22:28 +01001058 "src/trace_processor/variadic.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001059 "src/trace_processor/virtual_destructors.cc",
Eric Seckler5703ede2019-07-10 10:13:02 +01001060 "src/trace_processor/virtual_track_tracker.cc",
1061 "src/trace_processor/virtual_track_tracker.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001062 "src/trace_processor/window_operator_table.cc",
1063 "src/trace_processor/window_operator_table.h",
Florian Mayerd12a6de2019-08-01 10:36:11 +01001064 "tools/trace_to_text/local_symbolizer.cc",
1065 "tools/trace_to_text/local_symbolizer.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001066 "tools/trace_to_text/main.cc",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01001067 "tools/trace_to_text/pprof_builder.cc",
1068 "tools/trace_to_text/pprof_builder.h",
Florian Mayer2d20a982019-08-02 14:00:06 +01001069 "tools/trace_to_text/profile_visitor.cc",
1070 "tools/trace_to_text/profile_visitor.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001071 "tools/trace_to_text/proto_full_utils.cc",
1072 "tools/trace_to_text/proto_full_utils.h",
Florian Mayer0b063752019-07-08 19:51:31 +01001073 "tools/trace_to_text/symbolize_profile.cc",
1074 "tools/trace_to_text/symbolize_profile.h",
Florian Mayerd12a6de2019-08-01 10:36:11 +01001075 "tools/trace_to_text/symbolizer.cc",
1076 "tools/trace_to_text/symbolizer.h",
Florian Mayercf9eadc2019-08-05 11:59:35 +01001077 "tools/trace_to_text/trace_symbol_table.cc",
1078 "tools/trace_to_text/trace_symbol_table.h",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001079 "tools/trace_to_text/trace_to_profile.cc",
1080 "tools/trace_to_text/trace_to_profile.h",
1081 "tools/trace_to_text/trace_to_systrace.cc",
1082 "tools/trace_to_text/trace_to_systrace.h",
1083 "tools/trace_to_text/trace_to_text.cc",
1084 "tools/trace_to_text/trace_to_text.h",
1085 "tools/trace_to_text/utils.cc",
1086 "tools/trace_to_text/utils.h",
1087 ],
1088 deps = [
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001089 "//third_party/perfetto:gen_merged_sql_metrics",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001090 "//third_party/perfetto/google:jsoncpp",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001091 "//third_party/perfetto/protos:common_cc_proto",
1092 "//third_party/perfetto/protos:common_zero_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +02001093 "//third_party/perfetto/protos:config_android_cc_proto",
1094 "//third_party/perfetto/protos:config_android_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001095 "//third_party/perfetto/protos:config_cc_proto",
Primiano Tucci70431002019-08-22 17:13:10 +02001096 "//third_party/perfetto/protos:config_ftrace_cc_proto",
1097 "//third_party/perfetto/protos:config_ftrace_zero_cc_proto",
1098 "//third_party/perfetto/protos:config_gpu_cc_proto",
1099 "//third_party/perfetto/protos:config_gpu_zero_cc_proto",
1100 "//third_party/perfetto/protos:config_inode_file_cc_proto",
1101 "//third_party/perfetto/protos:config_inode_file_zero_cc_proto",
1102 "//third_party/perfetto/protos:config_power_cc_proto",
1103 "//third_party/perfetto/protos:config_power_zero_cc_proto",
1104 "//third_party/perfetto/protos:config_process_stats_cc_proto",
1105 "//third_party/perfetto/protos:config_process_stats_zero_cc_proto",
1106 "//third_party/perfetto/protos:config_profiling_cc_proto",
1107 "//third_party/perfetto/protos:config_profiling_zero_cc_proto",
1108 "//third_party/perfetto/protos:config_sys_stats_cc_proto",
1109 "//third_party/perfetto/protos:config_sys_stats_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001110 "//third_party/perfetto/protos:config_zero_cc_proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001111 "//third_party/perfetto/protos:metrics_android_zero_cc_proto",
1112 "//third_party/perfetto/protos:metrics_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +01001113 "//third_party/perfetto/protos:protos_third_party_pprof_cc_proto",
1114 "//third_party/perfetto/protos:trace_android_cc_proto",
1115 "//third_party/perfetto/protos:trace_android_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +01001116 "//third_party/perfetto/protos:trace_chrome_cc_proto",
1117 "//third_party/perfetto/protos:trace_chrome_zero_cc_proto",
1118 "//third_party/perfetto/protos:trace_filesystem_cc_proto",
1119 "//third_party/perfetto/protos:trace_filesystem_zero_cc_proto",
1120 "//third_party/perfetto/protos:trace_ftrace_cc_proto",
1121 "//third_party/perfetto/protos:trace_ftrace_zero_cc_proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001122 "//third_party/perfetto/protos:trace_gpu_cc_proto",
1123 "//third_party/perfetto/protos:trace_gpu_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +01001124 "//third_party/perfetto/protos:trace_interned_data_cc_proto",
1125 "//third_party/perfetto/protos:trace_interned_data_zero_cc_proto",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001126 "//third_party/perfetto/protos:trace_minimal_cc_proto",
Primiano Tucci75ae50e2019-08-28 13:09:55 +02001127 "//third_party/perfetto/protos:trace_minimal_zero_cc_proto",
1128 "//third_party/perfetto/protos:trace_non_minimal_cc_proto",
1129 "//third_party/perfetto/protos:trace_non_minimal_zero_cc_proto",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01001130 "//third_party/perfetto/protos:trace_perfetto_cc_proto",
1131 "//third_party/perfetto/protos:trace_perfetto_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +01001132 "//third_party/perfetto/protos:trace_power_cc_proto",
1133 "//third_party/perfetto/protos:trace_power_zero_cc_proto",
Lalit Magantie59293b2019-05-22 15:07:39 +01001134 "//third_party/perfetto/protos:trace_processor_metrics_impl_zero_cc_proto",
Lalit Maganti98465e12019-04-04 14:08:40 +01001135 "//third_party/perfetto/protos:trace_profiling_cc_proto",
1136 "//third_party/perfetto/protos:trace_profiling_zero_cc_proto",
1137 "//third_party/perfetto/protos:trace_ps_cc_proto",
1138 "//third_party/perfetto/protos:trace_ps_zero_cc_proto",
1139 "//third_party/perfetto/protos:trace_sys_stats_cc_proto",
1140 "//third_party/perfetto/protos:trace_sys_stats_zero_cc_proto",
1141 "//third_party/perfetto/protos:trace_track_event_cc_proto",
1142 "//third_party/perfetto/protos:trace_track_event_zero_cc_proto",
Hector Dearmanc47d62b2019-06-20 09:40:26 +01001143 "//third_party/protobuf:libprotoc_legacy",
1144 "//third_party/protobuf:protobuf_legacy",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001145 "//third_party/sqlite",
1146 "//third_party/sqlite:sqlite_ext_percentile",
Lalit Magantidf7d31c2019-06-18 13:18:57 +01001147 "//third_party/zlib:zlibsystem",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001148 ],
1149)
1150
Lalit Maganti279ecde2019-04-01 16:57:12 +01001151gensignature(
Lalit Magantief545da2019-05-02 14:05:40 +01001152 name = "trace_processor_sig",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001153 srcs = [
1154 ":trace_processor_shell",
Lalit Maganti279ecde2019-04-01 16:57:12 +01001155 ":trace_to_text",
1156 ],
Lalit Magantief545da2019-05-02 14:05:40 +01001157 tags = [
1158 "__TRACE_PROCESSOR_SIG_TAG1",
1159 "__TRACE_PROCESSOR_SIG_TAG2",
1160 ],
Lalit Maganti279ecde2019-04-01 16:57:12 +01001161)
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001162
1163py_binary(
Lalit Maganticaac9922019-05-01 10:40:53 +01001164 name = "gen_merged_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001165 srcs = [
Lalit Magantiab619fa2019-05-02 12:56:37 +01001166 "tools/gen_merged_sql_metrics.py",
1167 ],
1168 main = "tools/gen_merged_sql_metrics.py",
Florian Mayera5c1bd52019-08-02 11:01:34 +01001169 python_version = "PY2",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001170)