forked from google/trace-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
291 lines (286 loc) · 13.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
# 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/about_tracing/common.css",
"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/cc/layer_picker.css",
"trace_viewer/cc/layer_tree_host_impl_view.css",
"trace_viewer/cc/layer_view.css",
"trace_viewer/cc/picture_ops_chart_summary_view.css",
"trace_viewer/cc/picture_ops_chart_view.css",
"trace_viewer/cc/picture_ops_list_view.css",
"trace_viewer/cc/picture_view.css",
"trace_viewer/gpu/state_view.css",
"trace_viewer/system_stats/system_stats_instance_track.css",
"trace_viewer/system_stats/system_stats_snapshot_view.css",
"trace_viewer/tcmalloc/heap_instance_track.css",
"trace_viewer/tcmalloc/tcmalloc_instance_view.css",
"trace_viewer/tcmalloc/tcmalloc_snapshot_view.css",
"trace_viewer/tracing/analysis/analysis_link.css",
"trace_viewer/tracing/analysis/analysis_results.css",
"trace_viewer/tracing/analysis/default_object_view.css",
"trace_viewer/tracing/analysis/generic_object_view.css",
"trace_viewer/tracing/side_panel/timeline_view.css",
"trace_viewer/tracing/timeline_track_view.css",
"trace_viewer/tracing/timeline_view.css",
"trace_viewer/tracing/tracks/counter_track.css",
"trace_viewer/tracing/tracks/drawing_container.css",
"trace_viewer/tracing/tracks/heading_track.css",
"trace_viewer/tracing/tracks/object_instance_track.css",
"trace_viewer/tracing/tracks/process_track_base.css",
"trace_viewer/tracing/tracks/rect_track.css",
"trace_viewer/tracing/tracks/ruler_track.css",
"trace_viewer/tracing/tracks/spacing_track.css",
"trace_viewer/tracing/tracks/thread_track.css",
"trace_viewer/tracing/tracks/trace_model_track.css",
"trace_viewer/tracing/tracks/track.css",
]
tracing_js_html_files = [
"trace_viewer/about_tracing.html",
"trace_viewer/about_tracing/features.html",
"trace_viewer/about_tracing/inspector_connection.html",
"trace_viewer/about_tracing/inspector_tracing_controller_client.html",
"trace_viewer/about_tracing/profiling_view.html",
"trace_viewer/about_tracing/record_and_capture_controller.html",
"trace_viewer/about_tracing/record_selection_dialog.html",
"trace_viewer/about_tracing/tracing_controller_client.html",
"trace_viewer/about_tracing/xhr_based_tracing_controller_client.html",
"trace_viewer/base.html",
"trace_viewer/base/base64.html",
"trace_viewer/base/bbox2.html",
"trace_viewer/base/color.html",
"trace_viewer/base/event_target.html",
"trace_viewer/base/events.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/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/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/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/cc.html",
"trace_viewer/cc/chrome_browser.html",
"trace_viewer/cc/constants.html",
"trace_viewer/cc/debug_colors.html",
"trace_viewer/cc/layer_impl.html",
"trace_viewer/cc/layer_picker.html",
"trace_viewer/cc/layer_tree_host_impl.html",
"trace_viewer/cc/layer_tree_host_impl_view.html",
"trace_viewer/cc/layer_tree_impl.html",
"trace_viewer/cc/layer_tree_quad_stack_view.html",
"trace_viewer/cc/layer_view.html",
"trace_viewer/cc/picture.html",
"trace_viewer/cc/picture_as_image_data.html",
"trace_viewer/cc/picture_debugger.html",
"trace_viewer/cc/picture_ops_chart_summary_view.html",
"trace_viewer/cc/picture_ops_chart_view.html",
"trace_viewer/cc/picture_ops_list_view.html",
"trace_viewer/cc/picture_view.html",
"trace_viewer/cc/raster_task.html",
"trace_viewer/cc/raster_task_selection.html",
"trace_viewer/cc/raster_task_sub_view.html",
"trace_viewer/cc/raster_task_sub_view_for_tasks_from_different_lthi.html",
"trace_viewer/cc/raster_task_sub_view_for_tasks_from_same_lthi.html",
"trace_viewer/cc/region.html",
"trace_viewer/cc/render_pass.html",
"trace_viewer/cc/selection.html",
"trace_viewer/cc/tile.html",
"trace_viewer/cc/tile_coverage_rect.html",
"trace_viewer/cc/tile_view.html",
"trace_viewer/cc/util.html",
"trace_viewer/gpu.html",
"trace_viewer/gpu/state.html",
"trace_viewer/gpu/state_view.html",
"trace_viewer/system_stats.html",
"trace_viewer/system_stats/system_stats_instance_track.html",
"trace_viewer/system_stats/system_stats_snapshot.html",
"trace_viewer/system_stats/system_stats_snapshot_view.html",
"trace_viewer/tcmalloc.html",
"trace_viewer/tcmalloc/heap.html",
"trace_viewer/tcmalloc/heap_instance_track.html",
"trace_viewer/tcmalloc/tcmalloc_instance_view.html",
"trace_viewer/tcmalloc/tcmalloc_snapshot_view.html",
"trace_viewer/tracing/analysis/analysis_link.html",
"trace_viewer/tracing/analysis/analysis_results.html",
"trace_viewer/tracing/analysis/analysis_sub_view.html",
"trace_viewer/tracing/analysis/analysis_view.html",
"trace_viewer/tracing/analysis/analyze_counters.html",
"trace_viewer/tracing/analysis/analyze_objects.html",
"trace_viewer/tracing/analysis/analyze_samples.html",
"trace_viewer/tracing/analysis/analyze_slices.html",
"trace_viewer/tracing/analysis/cpu_slice_view.html",
"trace_viewer/tracing/analysis/default_object_view.html",
"trace_viewer/tracing/analysis/generic_object_view.html",
"trace_viewer/tracing/analysis/object_instance_view.html",
"trace_viewer/tracing/analysis/object_snapshot_view.html",
"trace_viewer/tracing/analysis/slice_view.html",
"trace_viewer/tracing/analysis/tab_view.html",
"trace_viewer/tracing/analysis/thread_time_slice_view.html",
"trace_viewer/tracing/analysis/util.html",
"trace_viewer/tracing/color_scheme.html",
"trace_viewer/tracing/constants.html",
"trace_viewer/tracing/draw_helpers.html",
"trace_viewer/tracing/elided_cache.html",
"trace_viewer/tracing/fast_rect_renderer.html",
"trace_viewer/tracing/filter.html",
"trace_viewer/tracing/find_control.html",
"trace_viewer/tracing/find_controller.html",
"trace_viewer/tracing/importer.html",
"trace_viewer/tracing/importer/etw/eventtrace_parser.html",
"trace_viewer/tracing/importer/etw/parser.html",
"trace_viewer/tracing/importer/etw/process_parser.html",
"trace_viewer/tracing/importer/etw/thread_parser.html",
"trace_viewer/tracing/importer/etw_importer.html",
"trace_viewer/tracing/importer/gzip_importer.html",
"trace_viewer/tracing/importer/importer.html",
"trace_viewer/tracing/importer/jszip.html",
"trace_viewer/tracing/importer/linux_perf/android_parser.html",
"trace_viewer/tracing/importer/linux_perf/bus_parser.html",
"trace_viewer/tracing/importer/linux_perf/clock_parser.html",
"trace_viewer/tracing/importer/linux_perf/cpufreq_parser.html",
"trace_viewer/tracing/importer/linux_perf/disk_parser.html",
"trace_viewer/tracing/importer/linux_perf/drm_parser.html",
"trace_viewer/tracing/importer/linux_perf/exynos_parser.html",
"trace_viewer/tracing/importer/linux_perf/gesture_parser.html",
"trace_viewer/tracing/importer/linux_perf/i915_parser.html",
"trace_viewer/tracing/importer/linux_perf/kfunc_parser.html",
"trace_viewer/tracing/importer/linux_perf/mali_parser.html",
"trace_viewer/tracing/importer/linux_perf/parser.html",
"trace_viewer/tracing/importer/linux_perf/power_parser.html",
"trace_viewer/tracing/importer/linux_perf/sched_parser.html",
"trace_viewer/tracing/importer/linux_perf/sync_parser.html",
"trace_viewer/tracing/importer/linux_perf/workqueue_parser.html",
"trace_viewer/tracing/importer/linux_perf_importer.html",
"trace_viewer/tracing/importer/simple_line_reader.html",
"trace_viewer/tracing/importer/task.html",
"trace_viewer/tracing/importer/trace2html_importer.html",
"trace_viewer/tracing/importer/trace_event_importer.html",
"trace_viewer/tracing/importer/v8/codemap.html",
"trace_viewer/tracing/importer/v8/log_reader.html",
"trace_viewer/tracing/importer/v8/splaytree.html",
"trace_viewer/tracing/importer/v8_log_importer.html",
"trace_viewer/tracing/importer/zip_importer.html",
"trace_viewer/tracing/selection.html",
"trace_viewer/tracing/side_panel/input_latency.html",
"trace_viewer/tracing/side_panel/sampling_summary.html",
"trace_viewer/tracing/side_panel/time_summary.html",
"trace_viewer/tracing/side_panel/timeline_view.html",
"trace_viewer/tracing/timeline_display_transform.html",
"trace_viewer/tracing/timeline_display_transform_animations.html",
"trace_viewer/tracing/timeline_interest_range.html",
"trace_viewer/tracing/timeline_track_view.html",
"trace_viewer/tracing/timeline_view.html",
"trace_viewer/tracing/timeline_viewport.html",
"trace_viewer/tracing/timing_tool.html",
"trace_viewer/tracing/trace_model.html",
"trace_viewer/tracing/trace_model/async_slice.html",
"trace_viewer/tracing/trace_model/async_slice_group.html",
"trace_viewer/tracing/trace_model/counter.html",
"trace_viewer/tracing/trace_model/counter_sample.html",
"trace_viewer/tracing/trace_model/counter_series.html",
"trace_viewer/tracing/trace_model/cpu.html",
"trace_viewer/tracing/trace_model/event.html",
"trace_viewer/tracing/trace_model/flow_event.html",
"trace_viewer/tracing/trace_model/instant_event.html",
"trace_viewer/tracing/trace_model/kernel.html",
"trace_viewer/tracing/trace_model/object_collection.html",
"trace_viewer/tracing/trace_model/object_instance.html",
"trace_viewer/tracing/trace_model/object_snapshot.html",
"trace_viewer/tracing/trace_model/process.html",
"trace_viewer/tracing/trace_model/process_base.html",
"trace_viewer/tracing/trace_model/sample.html",
"trace_viewer/tracing/trace_model/slice.html",
"trace_viewer/tracing/trace_model/slice_group.html",
"trace_viewer/tracing/trace_model/stack_frame.html",
"trace_viewer/tracing/trace_model/thread.html",
"trace_viewer/tracing/trace_model/time_to_object_instance_map.html",
"trace_viewer/tracing/trace_model/timed_event.html",
"trace_viewer/tracing/trace_model_settings.html",
"trace_viewer/tracing/tracks/async_slice_group_track.html",
"trace_viewer/tracing/tracks/container_track.html",
"trace_viewer/tracing/tracks/counter_track.html",
"trace_viewer/tracing/tracks/cpu_track.html",
"trace_viewer/tracing/tracks/drawing_container.html",
"trace_viewer/tracing/tracks/heading_track.html",
"trace_viewer/tracing/tracks/highlighter.html",
"trace_viewer/tracing/tracks/highlighter/highlighter.html",
"trace_viewer/tracing/tracks/highlighter/vsync_highlighter.html",
"trace_viewer/tracing/tracks/kernel_track.html",
"trace_viewer/tracing/tracks/multi_row_track.html",
"trace_viewer/tracing/tracks/object_instance_group_track.html",
"trace_viewer/tracing/tracks/object_instance_track.html",
"trace_viewer/tracing/tracks/process_track.html",
"trace_viewer/tracing/tracks/process_track_base.html",
"trace_viewer/tracing/tracks/rect_track.html",
"trace_viewer/tracing/tracks/ruler_track.html",
"trace_viewer/tracing/tracks/sample_track.html",
"trace_viewer/tracing/tracks/slice_group_track.html",
"trace_viewer/tracing/tracks/slice_track.html",
"trace_viewer/tracing/tracks/spacing_track.html",
"trace_viewer/tracing/tracks/stacked_bars_track.html",
"trace_viewer/tracing/tracks/thread_track.html",
"trace_viewer/tracing/tracks/trace_model_track.html",
"trace_viewer/tracing/tracks/track.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/images/checkerboard.png",
"trace_viewer/images/collapse.png",
"trace_viewer/images/expand.png",
"trace_viewer/images/input-event.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"
source_prereqs = 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),
]
}