| Index: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
|
| index 7adcc93e91bbf142b65395c0366cd990e6b6c51a..4a7707dade90881570e1f051f917f20f6dbc55e0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
|
| @@ -366,6 +366,23 @@ WebInspector.CPUFlameChartDataProvider = function(cpuProfile, target)
|
| this._cpuProfile = cpuProfile;
|
| };
|
|
|
| +/**
|
| + * @constructor
|
| + * @param {number} depth
|
| + * @param {number} duration
|
| + * @param {number} startTime
|
| + * @param {number} selfTime
|
| + * @param {!WebInspector.CPUProfileNode} node
|
| + */
|
| +WebInspector.CPUFlameChartDataProvider.ChartEntry = function(depth, duration, startTime, selfTime, node)
|
| +{
|
| + this.depth = depth;
|
| + this.duration = duration;
|
| + this.startTime = startTime;
|
| + this.selfTime = selfTime;
|
| + this.node = node;
|
| +};
|
| +
|
| WebInspector.CPUFlameChartDataProvider.prototype = {
|
| /**
|
| * @override
|
| @@ -373,24 +390,7 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
|
| */
|
| _calculateTimelineData: function()
|
| {
|
| - /**
|
| - * @constructor
|
| - * @param {number} depth
|
| - * @param {number} duration
|
| - * @param {number} startTime
|
| - * @param {number} selfTime
|
| - * @param {!WebInspector.CPUProfileNode} node
|
| - */
|
| - function ChartEntry(depth, duration, startTime, selfTime, node)
|
| - {
|
| - this.depth = depth;
|
| - this.duration = duration;
|
| - this.startTime = startTime;
|
| - this.selfTime = selfTime;
|
| - this.node = node;
|
| - }
|
| -
|
| - /** @type {!Array.<?ChartEntry>} */
|
| + /** @type {!Array.<?WebInspector.CPUFlameChartDataProvider.ChartEntry>} */
|
| var entries = [];
|
| /** @type {!Array.<number>} */
|
| var stack = [];
|
| @@ -413,7 +413,7 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
|
| function onCloseFrame(depth, node, startTime, totalTime, selfTime)
|
| {
|
| var index = stack.pop();
|
| - entries[index] = new ChartEntry(depth, totalTime, startTime, selfTime, node);
|
| + entries[index] = new WebInspector.CPUFlameChartDataProvider.ChartEntry(depth, totalTime, startTime, selfTime, node);
|
| maxDepth = Math.max(maxDepth, depth);
|
| }
|
| this._cpuProfile.forEachFrame(onOpenFrame, onCloseFrame);
|
|
|