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

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

Issue 713913002: DevTools: merge TracingTimelineUIUtils into TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deleted instance refs Created 6 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/devtools.gypi ('k') | Source/devtools/front_end/timeline/TimelineEventOverview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/MemoryCountersGraph.js
diff --git a/Source/devtools/front_end/timeline/MemoryCountersGraph.js b/Source/devtools/front_end/timeline/MemoryCountersGraph.js
index 8b14932ced7126c32c2e737261639dab3175e97a..ebc43a86b5504eb4807c8f90f15af8b3c36ec42f 100644
--- a/Source/devtools/front_end/timeline/MemoryCountersGraph.js
+++ b/Source/devtools/front_end/timeline/MemoryCountersGraph.js
@@ -34,12 +34,10 @@
* @implements {WebInspector.TimelineModeView}
* @param {!WebInspector.TimelineModeViewDelegate} delegate
* @param {!WebInspector.TimelineModel} model
- * @param {!WebInspector.TimelineUIUtils} uiUtils
*/
-WebInspector.MemoryCountersGraph = function(delegate, model, uiUtils)
+WebInspector.MemoryCountersGraph = function(delegate, model)
{
WebInspector.CountersGraph.call(this, WebInspector.UIString("MEMORY"), delegate, model);
- this._uiUtils = uiUtils;
this._countersByName = {};
this._countersByName["jsHeapSizeUsed"] = this.createCounter(WebInspector.UIString("Used JS Heap"), WebInspector.UIString("JS Heap Size: %d"), "hsl(220, 90%, 43%)");
this._countersByName["documents"] = this.createCounter(WebInspector.UIString("Documents"), WebInspector.UIString("Documents: %d"), "hsl(0, 90%, 43%)");
@@ -75,7 +73,7 @@ WebInspector.MemoryCountersGraph.prototype = {
*/
function addStatistics(record)
{
- var counters = this._uiUtils.countersForRecord(record);
+ var counters = WebInspector.TimelineUIUtils.isCoalescable.countersForRecord(record);
if (!counters)
return;
for (var name in counters) {
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/timeline/TimelineEventOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698