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

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

Issue 732013002: DevTools: Remove unused frontend code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more stale code Created 6 years, 1 month 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/sources/ScriptFormatter.js ('k') | Source/devtools/front_end/ui/Checkbox.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
*/
« no previous file with comments | « Source/devtools/front_end/sources/ScriptFormatter.js ('k') | Source/devtools/front_end/ui/Checkbox.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698