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

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

Issue 46663010: DevTools: Show GPU utilization bar on timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: Source/devtools/front_end/TimelineManager.js
diff --git a/Source/devtools/front_end/TimelineManager.js b/Source/devtools/front_end/TimelineManager.js
index 80c3f12f49efdeed2df038ea9d1d0e97bd60788d..6e5ebfc88c8303eee7f7f988a76c4effecc7dc0e 100644
--- a/Source/devtools/front_end/TimelineManager.js
+++ b/Source/devtools/front_end/TimelineManager.js
@@ -58,13 +58,14 @@ WebInspector.TimelineManager.prototype = {
/**
* @param {number=} maxCallStackDepth
* @param {boolean=} includeDomCounters
+ * @param {boolean=} includeGpuEvents
* @param {function(?Protocol.Error)=} callback
*/
- start: function(maxCallStackDepth, includeDomCounters, callback)
+ start: function(maxCallStackDepth, includeDomCounters, includeGpuEvents, callback)
{
this._enablementCount++;
if (this._enablementCount === 1)
- TimelineAgent.start(maxCallStackDepth, /* bufferEvents */false, includeDomCounters, callback);
+ TimelineAgent.start(maxCallStackDepth, /* bufferEvents */false, includeDomCounters, includeGpuEvents, callback);
else if (callback)
callback(null);
},

Powered by Google App Engine
This is Rietveld 408576698