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

Unified Diff: Source/devtools/front_end/TracingAgent.js

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tune PID to hue magic const Created 7 years, 1 month 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
« no previous file with comments | « Source/devtools/front_end/TimelinePresentationModel.js ('k') | Source/devtools/front_end/timelinePanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/TracingAgent.js
diff --git a/Source/devtools/front_end/TracingAgent.js b/Source/devtools/front_end/TracingAgent.js
index 0263fbd3fe33263371042033c31dc3fefb679178..9a7f1d615afbc48a97335ccf5e3a9d7153c499e0 100644
--- a/Source/devtools/front_end/TracingAgent.js
+++ b/Source/devtools/front_end/TracingAgent.js
@@ -40,11 +40,12 @@ WebInspector.TracingAgent = function()
WebInspector.TracingAgent.prototype = {
/**
* @param {string} categoryPatterns
+ * @param {string} options
* @param {function(?string)=} callback
*/
- start: function(categoryPatterns, callback)
+ start: function(categoryPatterns, options, callback)
{
- TracingAgent.start(categoryPatterns, callback);
+ TracingAgent.start(categoryPatterns, options, callback);
this._active = true;
this._events = [];
},
@@ -62,6 +63,9 @@ WebInspector.TracingAgent.prototype = {
TracingAgent.end();
},
+ /**
+ * @return {!Array.<{cat: string, args: Object, ph: string, ts: number}>}
+ */
events: function()
{
return this._events;
@@ -103,3 +107,8 @@ WebInspector.TracingDispatcher.prototype = {
this._tracingAgent._tracingComplete();
}
}
+
+/**
+ * @type {WebInspector.TracingAgent}
+ */
+WebInspector.tracingAgent;
« no previous file with comments | « Source/devtools/front_end/TimelinePresentationModel.js ('k') | Source/devtools/front_end/timelinePanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698