Chromium Code Reviews| Index: chrome/browser/resources/tracing.js |
| diff --git a/chrome/browser/resources/tracing.js b/chrome/browser/resources/tracing.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0b920796239ae089767554b2ccc34a9fb8df1e07 |
| --- /dev/null |
| +++ b/chrome/browser/resources/tracing.js |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2011 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. |
| + |
| +<include src="gpu_internals/browser_bridge.js"> |
| +<include src="tracing/overlay.js"> |
| +<include src="tracing/tracing_controller.js"> |
| +<include src="tracing/timeline_model.js"> |
| +<include src="tracing/sorted_array_utils.js"> |
| +<include src="tracing/timeline.js"> |
| +<include src="tracing/timeline_track.js"> |
| +<include src="tracing/fast_rect_renderer.js"> |
| +<include src="tracing/profiling_view.js"> |
| +<include src="tracing/timeline_view.js"> |
| + |
| +var browserBridge; |
| +var tracingController; |
| +var profilingView; // Made global for debugging purposes only. |
|
James Hawkins
2011/08/05 18:03:01
Two spaces before comment.
dominich
2011/08/08 17:36:12
Done.
|
| + |
| +/** |
| + * Main entry point called once the page has loaded. |
| + */ |
| +function onLoad() { |
| + browserBridge = new gpu.BrowserBridge(); |
| + tracingController = new tracing.TracingController(); |
| + |
| + profilingView = $('profiling-view'); |
| + cr.ui.decorate(profilingView, tracing.ProfilingView); |
| +} |
| + |
| +document.addEventListener('DOMContentLoaded', onLoad); |