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

Side by Side Diff: Source/devtools/front_end/CountersGraph.js

Issue 180273023: DevTools: encapsulate presentation model in timeline view. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 86
87 WebInspector.CountersGraph.prototype = { 87 WebInspector.CountersGraph.prototype = {
88 _createCurrentValuesBar: function() 88 _createCurrentValuesBar: function()
89 { 89 {
90 this._currentValuesBar = this._graphsContainer.createChild("div"); 90 this._currentValuesBar = this._graphsContainer.createChild("div");
91 this._currentValuesBar.id = "counter-values-bar"; 91 this._currentValuesBar.id = "counter-values-bar";
92 this._graphsContainer.classList.add("dom-counters"); 92 this._graphsContainer.classList.add("dom-counters");
93 }, 93 },
94 94
95 _createAllCounters: function() 95 createAllCounters: function()
96 { 96 {
97 this._counters = []; 97 this._counters = [];
98 this._counterUI = []; 98 this._counterUI = [];
99 this._createCounter(WebInspector.UIString("Documents"), WebInspector.UIS tring("Documents: %d"), "#d00", "documents"); 99 this._createCounter(WebInspector.UIString("Documents"), WebInspector.UIS tring("Documents: %d"), "#d00", "documents");
100 this._createCounter(WebInspector.UIString("Nodes"), WebInspector.UIStrin g("Nodes: %d"), "#0a0", "nodes"); 100 this._createCounter(WebInspector.UIString("Nodes"), WebInspector.UIStrin g("Nodes: %d"), "#0a0", "nodes");
101 this._createCounter(WebInspector.UIString("Listeners"), WebInspector.UIS tring("Listeners: %d"), "#00d", "jsEventListeners"); 101 this._createCounter(WebInspector.UIString("Listeners"), WebInspector.UIS tring("Listeners: %d"), "#00d", "jsEventListeners");
102 if (WebInspector.experimentsSettings.gpuTimeline.isEnabled()) 102 if (WebInspector.experimentsSettings.gpuTimeline.isEnabled())
103 this._createCounter(WebInspector.UIString("GPU Memory"), WebInspecto r.UIString("GPU Memory [KB]: %d"), "#c0c", "gpuMemoryUsedKB"); 103 this._createCounter(WebInspector.UIString("GPU Memory"), WebInspecto r.UIString("GPU Memory [KB]: %d"), "#c0c", "gpuMemoryUsedKB");
104 }, 104 },
105 105
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 ctx.lineWidth = 1; 204 ctx.lineWidth = 1;
205 ctx.strokeStyle = counterUI.graphColor; 205 ctx.strokeStyle = counterUI.graphColor;
206 ctx.stroke(); 206 ctx.stroke();
207 ctx.closePath(); 207 ctx.closePath();
208 ctx.restore(); 208 ctx.restore();
209 }, 209 },
210 210
211 __proto__: WebInspector.MemoryStatistics.prototype 211 __proto__: WebInspector.MemoryStatistics.prototype
212 } 212 }
213 213
OLDNEW
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-filtering.html ('k') | Source/devtools/front_end/MemoryStatistics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698