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

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

Issue 183893010: DevTools: extract TimelineModel.Record from TimelinePresentationModel.Record. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 10 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
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-timer.html ('k') | Source/devtools/front_end/MemoryStatistics.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CountersGraph.js
diff --git a/Source/devtools/front_end/CountersGraph.js b/Source/devtools/front_end/CountersGraph.js
index a13a157170792b15d321ad3baa332cf3f3ddb415..8e784621b4e565e10235b775e6d2823855850ff3 100644
--- a/Source/devtools/front_end/CountersGraph.js
+++ b/Source/devtools/front_end/CountersGraph.js
@@ -33,11 +33,11 @@
* @extends {WebInspector.MemoryStatistics}
* @implements {WebInspector.TimelineModeView}
* @param {!WebInspector.TimelineModeViewDelegate} delegate
- * @param {!WebInspector.TimelinePresentationModel} presentationModel
+ * @param {!WebInspector.TimelineModel} model
*/
-WebInspector.CountersGraph = function(delegate, presentationModel)
+WebInspector.CountersGraph = function(delegate, model)
{
- WebInspector.MemoryStatistics.call(this, delegate, presentationModel);
+ WebInspector.MemoryStatistics.call(this, delegate, model);
}
/**
@@ -117,12 +117,12 @@ WebInspector.CountersGraph.prototype = {
},
/**
- * @param {!TimelineAgent.TimelineEvent} record
- * @param {!Array.<!WebInspector.TimelinePresentationModel.Record>} presentationRecords
+ * @param {!WebInspector.TimelineModel.Record} record
*/
- addRecord: function(record, presentationRecords)
+ addRecord: function(record)
{
/**
+ * @param {!WebInspector.TimelineModel.Record} record
* @this {!WebInspector.CountersGraph}
*/
function addStatistics(record)
@@ -134,7 +134,7 @@ WebInspector.CountersGraph.prototype = {
for (var i = 0; i < this._counters.length; ++i)
this._counters[i].appendSample(time, counters);
}
- WebInspector.TimelinePresentationModel.forAllRecords([record], null, addStatistics.bind(this));
+ WebInspector.TimelineModel.forAllRecords([record], null, addStatistics.bind(this));
this.scheduleRefresh();
},
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-timer.html ('k') | Source/devtools/front_end/MemoryStatistics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698