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

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

Issue 212593009: FlameChart: move CPUProfiler related part of the FlameChart into a separate file. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed file was added. test was fixed. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/CPUProfileFlameChart.js ('k') | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index 0f4adb7bc3bd4e4756e1d10b3f024999962d7e4b..297e5a2cac2fb0f569158475ae3216ddb7f9a090 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -387,7 +387,7 @@ WebInspector.CPUProfileView.prototype = {
if (this._flameChart)
return;
this._dataProvider = new WebInspector.CPUFlameChartDataProvider(this);
- this._flameChart = new WebInspector.FlameChart(this._dataProvider);
+ this._flameChart = new WebInspector.CPUProfileFlameChart(this._dataProvider);
this._flameChart.addEventListener(WebInspector.FlameChart.Events.EntrySelected, this._onEntrySelected.bind(this));
},
@@ -1031,12 +1031,12 @@ WebInspector.CPUProfileHeader.prototype = {
}
/**
- * @return {!WebInspector.FlameChart.ColorGenerator}
+ * @return {!WebInspector.CPUProfileFlameChart.ColorGenerator}
*/
WebInspector.CPUProfileView.colorGenerator = function()
{
if (!WebInspector.CPUProfileView._colorGenerator) {
- var colorGenerator = new WebInspector.FlameChart.ColorGenerator();
+ var colorGenerator = new WebInspector.CPUProfileFlameChart.ColorGenerator();
colorGenerator.colorForID("(idle)::0", 50);
colorGenerator.colorForID("(program)::0", 50);
colorGenerator.colorForID("(garbage collector)::0", 50);
« no previous file with comments | « Source/devtools/front_end/CPUProfileFlameChart.js ('k') | Source/devtools/front_end/FlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698