Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4876)

Unified Diff: chrome/browser/resources/tracing.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..462f1a1032392055f881cb3b2c5de7dcbfc06ba6
--- /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"/>
James Hawkins 2011/08/04 17:26:35 s/\/>/>/
dominich 2011/08/04 22:56:12 Done.
+<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/04 17:26:35 Capitalize sentence, add period.
dominich 2011/08/04 22:56:12 Done.
+
+/**
+ * Main entry point. called once the page has loaded.
James Hawkins 2011/08/04 17:26:35 Capitalize sentence.
dominich 2011/08/04 22:56:12 Done.
+ */
+function onLoad() {
+ browserBridge = new gpu.BrowserBridge();
+ tracingController = new tracing.TracingController();
+
+ profilingView = $('profiling-view');
+ cr.ui.decorate(profilingView, tracing.ProfilingView);
+}
+
+document.addEventListener('DOMContentLoaded', onLoad);

Powered by Google App Engine
This is Rietveld 408576698