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

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

Issue 401743004: DevTools: Rename TracingBasedTimelineFlameChartDataProvider -> TimelineFlameChartDataProvider (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineFlameChart.js
diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js
index 6b2a31a52c32be9e203bd778cab35f071dbda1bc..e4f4b779d32ae0e2cfe55de4516438e6411c918b 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -35,7 +35,7 @@
* @param {!WebInspector.TimelineFrameModelBase} frameModel
* @param {!WebInspector.Target} target
*/
-WebInspector.TracingBasedTimelineFlameChartDataProvider = function(model, frameModel, target)
+WebInspector.TimelineFlameChartDataProvider = function(model, frameModel, target)
{
WebInspector.FlameChartDataProvider.call(this);
this._model = model;
@@ -49,9 +49,9 @@ WebInspector.TracingBasedTimelineFlameChartDataProvider = function(model, frameM
this.addFilter(new WebInspector.TracingTimelineModel.ExclusiveEventNameFilter([WebInspector.TracingTimelineModel.RecordType.Program]));
}
-WebInspector.TracingBasedTimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.01;
+WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.01;
-WebInspector.TracingBasedTimelineFlameChartDataProvider.prototype = {
+WebInspector.TimelineFlameChartDataProvider.prototype = {
/**
* @return {number}
*/
@@ -296,7 +296,7 @@ WebInspector.TracingBasedTimelineFlameChartDataProvider.prototype = {
if (!event)
return "#555";
if (event.name === WebInspector.TracingTimelineModel.RecordType.JSFrame)
- return WebInspector.TracingBasedTimelineFlameChartDataProvider.jsFrameColorGenerator().colorForID(event.args.data["functionName"]);
+ return WebInspector.TimelineFlameChartDataProvider.jsFrameColorGenerator().colorForID(event.args.data["functionName"]);
var style = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(event.name);
return style.category.fillColorStop1;
},
@@ -374,7 +374,7 @@ WebInspector.TracingBasedTimelineFlameChartDataProvider.prototype = {
return null;
return {
startTime: event.startTime,
- endTime: event.endTime || event.startTime + WebInspector.TracingBasedTimelineFlameChartDataProvider.InstantEventVisibleDurationMs
+ endTime: event.endTime || event.startTime + WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs
}
},
@@ -418,7 +418,7 @@ WebInspector.TracingBasedTimelineFlameChartDataProvider.prototype = {
var index = this._entryEvents.length;
this._entryEvents.push(event);
this._timelineData.entryLevels[index] = level;
- this._timelineData.entryTotalTimes[index] = event.duration || WebInspector.TracingBasedTimelineFlameChartDataProvider.InstantEventVisibleDurationMs;
+ this._timelineData.entryTotalTimes[index] = event.duration || WebInspector.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs;
this._timelineData.entryStartTimes[index] = event.startTime;
},
@@ -460,18 +460,18 @@ WebInspector.TracingBasedTimelineFlameChartDataProvider.prototype = {
/**
* @return {!WebInspector.FlameChart.ColorGenerator}
*/
-WebInspector.TracingBasedTimelineFlameChartDataProvider.jsFrameColorGenerator = function()
+WebInspector.TimelineFlameChartDataProvider.jsFrameColorGenerator = function()
{
- if (!WebInspector.TracingBasedTimelineFlameChartDataProvider._jsFrameColorGenerator) {
+ if (!WebInspector.TimelineFlameChartDataProvider._jsFrameColorGenerator) {
var hueSpace = { min: 30, max: 55, count: 5 };
var satSpace = { min: 70, max: 100, count: 6 };
var colorGenerator = new WebInspector.FlameChart.ColorGenerator(hueSpace, satSpace, 50);
colorGenerator.setColorForID("(idle)", "hsl(0, 0%, 60%)");
colorGenerator.setColorForID("(program)", "hsl(0, 0%, 60%)");
colorGenerator.setColorForID("(garbage collector)", "hsl(0, 0%, 60%)");
- WebInspector.TracingBasedTimelineFlameChartDataProvider._jsFrameColorGenerator = colorGenerator;
+ WebInspector.TimelineFlameChartDataProvider._jsFrameColorGenerator = colorGenerator;
}
- return WebInspector.TracingBasedTimelineFlameChartDataProvider._jsFrameColorGenerator;
+ return WebInspector.TimelineFlameChartDataProvider._jsFrameColorGenerator;
}
/**
@@ -490,7 +490,7 @@ WebInspector.TimelineFlameChart = function(delegate, tracingModel, frameModel)
this.registerRequiredCSS("flameChart.css");
this._delegate = delegate;
this._model = tracingModel;
- this._dataProvider = new WebInspector.TracingBasedTimelineFlameChartDataProvider(tracingModel, frameModel, tracingModel.target())
+ this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(tracingModel, frameModel, tracingModel.target())
this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true);
this._mainView.show(this.element);
this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStarted, this._onRecordingStarted, this);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698