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

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

Issue 470553002: DevTools: move TracingModel.js into the sdk module. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 e6df39f0cffdbb67d6bea20c6f6897f57ec6fb0b..f8630d6015a2b6c00173465f1f9a00c9d0c070d8 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -267,7 +267,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
var numFrames = e.stackTrace.length;
for (var j = 0; j < numFrames && j < stackTraceOpenEvents.length; ++j) {
var frame = e.stackTrace[numFrames - 1 - j];
- if (!equalFrames(frame, stackTraceOpenEvents[j].args.data))
+ if (!equalFrames(frame, stackTraceOpenEvents[j].dataArg))
break;
stackTraceOpenEvents[j].endTime = Math.max(stackTraceOpenEvents[j].endTime, eventEndTime(e));
stackTraceOpenEvents[j].duration = stackTraceOpenEvents[j].endTime - stackTraceOpenEvents[j].startTime;
@@ -364,7 +364,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
if (!event)
return this._entryIndexToFrame[entryIndex] ? "white" : "#555";
if (event.name === WebInspector.TracingTimelineModel.RecordType.JSFrame)
- return WebInspector.TimelineFlameChartDataProvider.jsFrameColorGenerator().colorForID(event.args.data["functionName"]);
+ return WebInspector.TimelineFlameChartDataProvider.jsFrameColorGenerator().colorForID(event.dataArg["functionName"]);
var style = WebInspector.TracingTimelineUIUtils.styleForTraceEvent(event.name);
return style.category.fillColorStop1;
},

Powered by Google App Engine
This is Rietveld 408576698