forked from google/trace-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
325 lines (320 loc) · 15.5 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
tracing_css_files = [
"trace_viewer/base/ui/common.css",
"trace_viewer/base/ui/drag_handle.css",
"trace_viewer/base/ui/info_bar.css",
"trace_viewer/base/ui/line_chart.css",
"trace_viewer/base/ui/list_view.css",
"trace_viewer/base/ui/mouse_mode_selector.css",
"trace_viewer/base/ui/pie_chart.css",
"trace_viewer/base/ui/sortable_table.css",
"trace_viewer/base/ui/sunburst_chart.css",
"trace_viewer/base/ui/tool_button.css",
"trace_viewer/core/analysis/analysis_link.css",
"trace_viewer/core/analysis/analysis_results.css",
"trace_viewer/core/analysis/generic_object_view.css",
"trace_viewer/core/side_panel/side_panel_container.css",
"trace_viewer/core/timeline_track_view.css",
"trace_viewer/core/timeline_view.css",
"trace_viewer/core/tracks/counter_track.css",
"trace_viewer/core/tracks/drawing_container.css",
"trace_viewer/core/tracks/heading_track.css",
"trace_viewer/core/tracks/memory_dump_track.css",
"trace_viewer/core/tracks/object_instance_track.css",
"trace_viewer/core/tracks/process_track_base.css",
"trace_viewer/core/tracks/rect_track.css",
"trace_viewer/core/tracks/ruler_track.css",
"trace_viewer/core/tracks/spacing_track.css",
"trace_viewer/core/tracks/thread_track.css",
"trace_viewer/core/tracks/track.css",
"trace_viewer/extras/about_tracing/common.css",
"trace_viewer/extras/cc/display_item_view.css",
"trace_viewer/extras/cc/layer_picker.css",
"trace_viewer/extras/cc/layer_tree_host_impl_view.css",
"trace_viewer/extras/cc/layer_view.css",
"trace_viewer/extras/cc/picture_ops_chart_summary_view.css",
"trace_viewer/extras/cc/picture_ops_chart_view.css",
"trace_viewer/extras/cc/picture_ops_list_view.css",
"trace_viewer/extras/cc/picture_view.css",
"trace_viewer/extras/gpu/state_view.css",
"trace_viewer/extras/system_stats/system_stats_instance_track.css",
"trace_viewer/extras/system_stats/system_stats_snapshot_view.css",
"trace_viewer/extras/tcmalloc/heap_instance_track.css",
"trace_viewer/extras/tcmalloc/tcmalloc_instance_view.css",
"trace_viewer/extras/tcmalloc/tcmalloc_snapshot_view.css",
]
tracing_js_html_files = [
"trace_viewer/base/base.html",
"trace_viewer/base/base64.html",
"trace_viewer/base/bbox2.html",
"trace_viewer/base/category_util.html",
"trace_viewer/base/color.html",
"trace_viewer/base/event_target.html",
"trace_viewer/base/events.html",
"trace_viewer/base/extension_registry.html",
"trace_viewer/base/extension_registry_base.html",
"trace_viewer/base/extension_registry_basic.html",
"trace_viewer/base/extension_registry_type_based.html",
"trace_viewer/base/gl_matrix.html",
"trace_viewer/base/guid.html",
"trace_viewer/base/interval_tree.html",
"trace_viewer/base/iteration_helpers.html",
"trace_viewer/base/key_event_manager.html",
"trace_viewer/base/polymer_utils.html",
"trace_viewer/base/properties.html",
"trace_viewer/base/quad.html",
"trace_viewer/base/raf.html",
"trace_viewer/base/range.html",
"trace_viewer/base/rect.html",
"trace_viewer/base/settings.html",
"trace_viewer/base/sorted_array_utils.html",
"trace_viewer/base/statistics.html",
"trace_viewer/base/task.html",
"trace_viewer/base/ui.html",
"trace_viewer/base/ui/animation.html",
"trace_viewer/base/ui/animation_controller.html",
"trace_viewer/base/ui/camera.html",
"trace_viewer/base/ui/chart_base.html",
"trace_viewer/base/ui/color_scheme.html",
"trace_viewer/base/ui/color_utils.html",
"trace_viewer/base/ui/container_that_decorates_its_children.html",
"trace_viewer/base/ui/d3.html",
"trace_viewer/base/ui/dom_helpers.html",
"trace_viewer/base/ui/drag_handle.html",
"trace_viewer/base/ui/info_bar.html",
"trace_viewer/base/ui/line_chart.html",
"trace_viewer/base/ui/list_view.html",
"trace_viewer/base/ui/mouse_mode_selector.html",
"trace_viewer/base/ui/mouse_tracker.html",
"trace_viewer/base/ui/overlay.html",
"trace_viewer/base/ui/pie_chart.html",
"trace_viewer/base/ui/quad_stack_view.html",
"trace_viewer/base/ui/sortable_table.html",
"trace_viewer/base/ui/sunburst_chart.html",
"trace_viewer/base/utils.html",
"trace_viewer/core/analysis/analysis_link.html",
"trace_viewer/core/analysis/analysis_results.html",
"trace_viewer/core/analysis/analysis_sub_view.html",
"trace_viewer/core/analysis/analysis_view.html",
"trace_viewer/core/analysis/counter_sample_sub_view.html",
"trace_viewer/core/analysis/generic_object_view.html",
"trace_viewer/core/analysis/multi_flow_event_sub_view.html",
"trace_viewer/core/analysis/multi_global_memory_dump_sub_view.html",
"trace_viewer/core/analysis/multi_instant_event_sub_view.html",
"trace_viewer/core/analysis/multi_object_sub_view.html",
"trace_viewer/core/analysis/multi_sample_sub_view.html",
"trace_viewer/core/analysis/multi_slice_sub_view.html",
"trace_viewer/core/analysis/object_instance_view.html",
"trace_viewer/core/analysis/object_snapshot_view.html",
"trace_viewer/core/analysis/single_cpu_slice_sub_view.html",
"trace_viewer/core/analysis/single_flow_event_sub_view.html",
"trace_viewer/core/analysis/single_global_memory_dump_sub_view.html",
"trace_viewer/core/analysis/single_instant_event_sub_view.html",
"trace_viewer/core/analysis/single_object_instance_sub_view.html",
"trace_viewer/core/analysis/single_object_snapshot_sub_view.html",
"trace_viewer/core/analysis/single_sample_sub_view.html",
"trace_viewer/core/analysis/single_slice_sub_view.html",
"trace_viewer/core/analysis/single_thread_time_slice_sub_view.html",
"trace_viewer/core/analysis/tab_view.html",
"trace_viewer/core/analysis/util.html",
"trace_viewer/core/auditor.html",
"trace_viewer/core/color_scheme.html",
"trace_viewer/core/constants.html",
"trace_viewer/core/draw_helpers.html",
"trace_viewer/core/elided_cache.html",
"trace_viewer/core/fast_rect_renderer.html",
"trace_viewer/core/filter.html",
"trace_viewer/core/find_control.html",
"trace_viewer/core/find_controller.html",
"trace_viewer/core/importer/empty_importer.html",
"trace_viewer/core/importer/importer.html",
"trace_viewer/core/importer/simple_line_reader.html",
"trace_viewer/core/selection.html",
"trace_viewer/core/side_panel/side_panel.html",
"trace_viewer/core/side_panel/side_panel_container.html",
"trace_viewer/core/timeline_display_transform.html",
"trace_viewer/core/timeline_display_transform_animations.html",
"trace_viewer/core/timeline_interest_range.html",
"trace_viewer/core/timeline_track_view.html",
"trace_viewer/core/timeline_view.html",
"trace_viewer/core/timeline_viewport.html",
"trace_viewer/core/timing_tool.html",
"trace_viewer/core/trace_model/alert.html",
"trace_viewer/core/trace_model/async_slice.html",
"trace_viewer/core/trace_model/async_slice_group.html",
"trace_viewer/core/trace_model/counter.html",
"trace_viewer/core/trace_model/counter_sample.html",
"trace_viewer/core/trace_model/counter_series.html",
"trace_viewer/core/trace_model/cpu.html",
"trace_viewer/core/trace_model/cpu_slice.html",
"trace_viewer/core/trace_model/event.html",
"trace_viewer/core/trace_model/event_container.html",
"trace_viewer/core/trace_model/flow_event.html",
"trace_viewer/core/trace_model/global_memory_dump.html",
"trace_viewer/core/trace_model/instant_event.html",
"trace_viewer/core/trace_model/interaction_record.html",
"trace_viewer/core/trace_model/kernel.html",
"trace_viewer/core/trace_model/object_collection.html",
"trace_viewer/core/trace_model/object_instance.html",
"trace_viewer/core/trace_model/object_snapshot.html",
"trace_viewer/core/trace_model/process.html",
"trace_viewer/core/trace_model/process_base.html",
"trace_viewer/core/trace_model/process_memory_dump.html",
"trace_viewer/core/trace_model/sample.html",
"trace_viewer/core/trace_model/slice.html",
"trace_viewer/core/trace_model/slice_group.html",
"trace_viewer/core/trace_model/stack_frame.html",
"trace_viewer/core/trace_model/thread.html",
"trace_viewer/core/trace_model/thread_slice.html",
"trace_viewer/core/trace_model/thread_time_slice.html",
"trace_viewer/core/trace_model/time_to_object_instance_map.html",
"trace_viewer/core/trace_model/timed_event.html",
"trace_viewer/core/trace_model/trace_model.html",
"trace_viewer/core/trace_model/trace_model_settings.html",
"trace_viewer/core/tracks/async_slice_group_track.html",
"trace_viewer/core/tracks/container_track.html",
"trace_viewer/core/tracks/counter_track.html",
"trace_viewer/core/tracks/cpu_track.html",
"trace_viewer/core/tracks/drawing_container.html",
"trace_viewer/core/tracks/heading_track.html",
"trace_viewer/core/tracks/highlighter.html",
"trace_viewer/core/tracks/kernel_track.html",
"trace_viewer/core/tracks/memory_dump_track.html",
"trace_viewer/core/tracks/multi_row_track.html",
"trace_viewer/core/tracks/object_instance_group_track.html",
"trace_viewer/core/tracks/object_instance_track.html",
"trace_viewer/core/tracks/process_track.html",
"trace_viewer/core/tracks/process_track_base.html",
"trace_viewer/core/tracks/rect_track.html",
"trace_viewer/core/tracks/ruler_track.html",
"trace_viewer/core/tracks/sample_track.html",
"trace_viewer/core/tracks/slice_group_track.html",
"trace_viewer/core/tracks/slice_track.html",
"trace_viewer/core/tracks/spacing_track.html",
"trace_viewer/core/tracks/stacked_bars_track.html",
"trace_viewer/core/tracks/thread_track.html",
"trace_viewer/core/tracks/trace_model_track.html",
"trace_viewer/core/tracks/track.html",
"trace_viewer/extras/about_tracing/about_tracing.html",
"trace_viewer/extras/about_tracing/inspector_connection.html",
"trace_viewer/extras/about_tracing/inspector_tracing_controller_client.html",
"trace_viewer/extras/about_tracing/profiling_view.html",
"trace_viewer/extras/about_tracing/record_and_capture_controller.html",
"trace_viewer/extras/about_tracing/record_selection_dialog.html",
"trace_viewer/extras/about_tracing/tracing_controller_client.html",
"trace_viewer/extras/about_tracing/xhr_based_tracing_controller_client.html",
"trace_viewer/extras/analysis/sampling_summary.html",
"trace_viewer/extras/cc/cc.html",
"trace_viewer/extras/cc/chrome_browser.html",
"trace_viewer/extras/cc/constants.html",
"trace_viewer/extras/cc/debug_colors.html",
"trace_viewer/extras/cc/display_item_debugger.html",
"trace_viewer/extras/cc/display_item_list.html",
"trace_viewer/extras/cc/display_item_view.html",
"trace_viewer/extras/cc/layer_impl.html",
"trace_viewer/extras/cc/layer_picker.html",
"trace_viewer/extras/cc/layer_tree_host_impl.html",
"trace_viewer/extras/cc/layer_tree_host_impl_view.html",
"trace_viewer/extras/cc/layer_tree_impl.html",
"trace_viewer/extras/cc/layer_tree_quad_stack_view.html",
"trace_viewer/extras/cc/layer_view.html",
"trace_viewer/extras/cc/picture.html",
"trace_viewer/extras/cc/picture_as_image_data.html",
"trace_viewer/extras/cc/picture_debugger.html",
"trace_viewer/extras/cc/picture_ops_chart_summary_view.html",
"trace_viewer/extras/cc/picture_ops_chart_view.html",
"trace_viewer/extras/cc/picture_ops_list_view.html",
"trace_viewer/extras/cc/picture_view.html",
"trace_viewer/extras/cc/raster_task.html",
"trace_viewer/extras/cc/raster_task_selection.html",
"trace_viewer/extras/cc/raster_task_view.html",
"trace_viewer/extras/cc/region.html",
"trace_viewer/extras/cc/render_pass.html",
"trace_viewer/extras/cc/selection.html",
"trace_viewer/extras/cc/tile.html",
"trace_viewer/extras/cc/tile_coverage_rect.html",
"trace_viewer/extras/cc/tile_view.html",
"trace_viewer/extras/cc/util.html",
"trace_viewer/extras/chrome_config.html",
"trace_viewer/extras/full_config.html",
"trace_viewer/extras/gpu/gpu.html",
"trace_viewer/extras/gpu/state.html",
"trace_viewer/extras/gpu/state_view.html",
"trace_viewer/extras/highlighter/vsync_highlighter.html",
"trace_viewer/extras/importer/etw/etw_importer.html",
"trace_viewer/extras/importer/etw/eventtrace_parser.html",
"trace_viewer/extras/importer/etw/parser.html",
"trace_viewer/extras/importer/etw/process_parser.html",
"trace_viewer/extras/importer/etw/thread_parser.html",
"trace_viewer/extras/importer/gzip_importer.html",
"trace_viewer/extras/importer/jszip.html",
"trace_viewer/extras/importer/linux_perf/android_parser.html",
"trace_viewer/extras/importer/linux_perf/bus_parser.html",
"trace_viewer/extras/importer/linux_perf/clock_parser.html",
"trace_viewer/extras/importer/linux_perf/cpufreq_parser.html",
"trace_viewer/extras/importer/linux_perf/disk_parser.html",
"trace_viewer/extras/importer/linux_perf/drm_parser.html",
"trace_viewer/extras/importer/linux_perf/exynos_parser.html",
"trace_viewer/extras/importer/linux_perf/gesture_parser.html",
"trace_viewer/extras/importer/linux_perf/i915_parser.html",
"trace_viewer/extras/importer/linux_perf/irq_parser.html",
"trace_viewer/extras/importer/linux_perf/kfunc_parser.html",
"trace_viewer/extras/importer/linux_perf/linux_perf_importer.html",
"trace_viewer/extras/importer/linux_perf/mali_parser.html",
"trace_viewer/extras/importer/linux_perf/memreclaim_parser.html",
"trace_viewer/extras/importer/linux_perf/parser.html",
"trace_viewer/extras/importer/linux_perf/power_parser.html",
"trace_viewer/extras/importer/linux_perf/sched_parser.html",
"trace_viewer/extras/importer/linux_perf/sync_parser.html",
"trace_viewer/extras/importer/linux_perf/workqueue_parser.html",
"trace_viewer/extras/importer/trace2html_importer.html",
"trace_viewer/extras/importer/trace_event_importer.html",
"trace_viewer/extras/importer/v8/codemap.html",
"trace_viewer/extras/importer/v8/log_reader.html",
"trace_viewer/extras/importer/v8/splaytree.html",
"trace_viewer/extras/importer/v8/v8_log_importer.html",
"trace_viewer/extras/importer/zip_importer.html",
"trace_viewer/extras/lean_config.html",
"trace_viewer/extras/net/net.html",
"trace_viewer/extras/net/net_async_slice.html",
"trace_viewer/extras/side_panel/input_latency.html",
"trace_viewer/extras/side_panel/time_summary.html",
"trace_viewer/extras/system_stats/system_stats.html",
"trace_viewer/extras/system_stats/system_stats_instance_track.html",
"trace_viewer/extras/system_stats/system_stats_snapshot.html",
"trace_viewer/extras/system_stats/system_stats_snapshot_view.html",
"trace_viewer/extras/systrace_config.html",
"trace_viewer/extras/tcmalloc/heap.html",
"trace_viewer/extras/tcmalloc/heap_instance_track.html",
"trace_viewer/extras/tcmalloc/tcmalloc.html",
"trace_viewer/extras/tcmalloc/tcmalloc_instance_view.html",
"trace_viewer/extras/tcmalloc/tcmalloc_snapshot_view.html",
"trace_viewer/trace_viewer.html",
]
tracing_img_files = [
"trace_viewer/base/images/chrome-left.png",
"trace_viewer/base/images/chrome-mid.png",
"trace_viewer/base/images/chrome-right.png",
"trace_viewer/base/images/ui-states.png",
"trace_viewer/extras/cc/images/input-event.png",
"trace_viewer/extras/gpu/images/checkerboard.png",
"trace_viewer/extras/tcmalloc/images/collapse.png",
"trace_viewer/extras/tcmalloc/images/expand.png",
]
# TODO: ideally this would go into the target_gen_dir, but this requires some
# changes to the scripts that process them.
output_resource_dir = "$root_gen_dir/content/browser/tracing"
action("generate_about_tracing") {
script = "trace_viewer/build/generate_about_tracing_contents"
inputs = tracing_css_files + tracing_js_html_files +
tracing_img_files
outputs = [
"$output_resource_dir/about_tracing.js",
"$output_resource_dir/about_tracing.html",
]
args = [
"--outdir", rebase_path(output_resource_dir, root_build_dir),
]
}