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

Unified Diff: Source/devtools/front_end/timeline/TracingModel.js

Issue 320523004: Timeline: fill frames according to CPU time spent per event category (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 6 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/timeline/TracingModel.js
diff --git a/Source/devtools/front_end/timeline/TracingModel.js b/Source/devtools/front_end/timeline/TracingModel.js
index 9dd7a0ec899249d8788659fee97459b25fc39efb..9265df8f85ed53dc19a50f0c38eebfd2e0098db3 100644
--- a/Source/devtools/front_end/timeline/TracingModel.js
+++ b/Source/devtools/front_end/timeline/TracingModel.js
@@ -120,19 +120,23 @@ WebInspector.TracingModel.prototype = {
},
/**
- * @param {string} sessionId
+ * @return {?string}
*/
- setSessionIdForTest: function(sessionId)
+ sessionId: function()
{
- this._sessionId = sessionId;
+ return this._sessionId;
},
/**
- * @return {?string}
+ * @param {string} sessionId
+ * @param {!Array.<!WebInspector.TracingModel.EventPayload>} events
*/
- sessionId: function()
+ setEventsForTest: function(sessionId, events)
{
- return this._sessionId;
+ this.reset();
+ this._sessionId = sessionId;
+ this._eventsCollected(events);
+ this._tracingComplete();
},
/**
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TracingTimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698