| Index: Source/devtools/front_end/timeline/TimelineFrameModel.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelineFrameModel.js b/Source/devtools/front_end/timeline/TimelineFrameModel.js
|
| index d546fc3b51d461e26cdd1f72090df46f5a46bf95..bda7a28acbea734fdf261cf2ed221744322ae127 100644
|
| --- a/Source/devtools/front_end/timeline/TimelineFrameModel.js
|
| +++ b/Source/devtools/front_end/timeline/TimelineFrameModel.js
|
| @@ -380,45 +380,6 @@ WebInspector.DeferredTracingLayerTree.prototype = {
|
|
|
| /**
|
| * @constructor
|
| - * @param {!Array.<!WebInspector.TimelineFrame>} frames
|
| - */
|
| -WebInspector.FrameStatistics = function(frames)
|
| -{
|
| - this.frameCount = frames.length;
|
| - this.minDuration = Infinity;
|
| - this.maxDuration = 0;
|
| - this.timeByCategory = {};
|
| - this.startOffset = frames[0].startTimeOffset;
|
| - var lastFrame = frames[this.frameCount - 1];
|
| - this.endOffset = lastFrame.startTimeOffset + lastFrame.duration;
|
| -
|
| - var totalDuration = 0;
|
| - var sumOfSquares = 0;
|
| - for (var i = 0; i < this.frameCount; ++i) {
|
| - var duration = frames[i].duration;
|
| - totalDuration += duration;
|
| - sumOfSquares += duration * duration;
|
| - this.minDuration = Math.min(this.minDuration, duration);
|
| - this.maxDuration = Math.max(this.maxDuration, duration);
|
| - WebInspector.FrameStatistics._aggregateTimeByCategory(this.timeByCategory, frames[i].timeByCategory);
|
| - }
|
| - this.average = totalDuration / this.frameCount;
|
| - var variance = sumOfSquares / this.frameCount - this.average * this.average;
|
| - this.stddev = Math.sqrt(variance);
|
| -}
|
| -
|
| -/**
|
| - * @param {!Object} total
|
| - * @param {!Object} addend
|
| - */
|
| -WebInspector.FrameStatistics._aggregateTimeByCategory = function(total, addend)
|
| -{
|
| - for (var category in addend)
|
| - total[category] = (total[category] || 0) + addend[category];
|
| -}
|
| -
|
| -/**
|
| - * @constructor
|
| * @param {number} startTime
|
| * @param {number} startTimeOffset
|
| */
|
|
|