| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <link rel="import" href="/tracing/base/color_scheme.html"> | 7 <link rel="import" href="/tracing/base/color_scheme.html"> |
| 8 <link rel="import" href="/tracing/base/statistics.html"> | 8 <link rel="import" href="/tracing/base/math/statistics.html"> |
| 9 <link rel="import" href="/tracing/model/event.html"> | 9 <link rel="import" href="/tracing/model/event.html"> |
| 10 <link rel="import" href="/tracing/model/event_set.html"> | 10 <link rel="import" href="/tracing/model/event_set.html"> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 'use strict'; | 13 'use strict'; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * @fileoverview Class describing rendered frames. | 16 * @fileoverview Class describing rendered frames. |
| 17 * | 17 * |
| 18 * Because a frame is produced by multiple threads, it does not inherit from | 18 * Because a frame is produced by multiple threads, it does not inherit from |
| 19 * TimedEvent, and has no duration. | 19 * TimedEvent, and has no duration. |
| 20 */ | 20 */ |
| 21 tr.exportTo('tr.model', function() { | 21 tr.exportTo('tr.model', function() { |
| 22 var ColorScheme = tr.b.ColorScheme; | 22 var ColorScheme = tr.b.ColorScheme; |
| 23 var Statistics = tr.b.Statistics; | 23 var Statistics = tr.b.math.Statistics; |
| 24 | 24 |
| 25 var FRAME_PERF_CLASS = { | 25 var FRAME_PERF_CLASS = { |
| 26 GOOD: 'good', | 26 GOOD: 'good', |
| 27 BAD: 'bad', | 27 BAD: 'bad', |
| 28 TERRIBLE: 'terrible', | 28 TERRIBLE: 'terrible', |
| 29 NEUTRAL: 'generic_work' | 29 NEUTRAL: 'generic_work' |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * @constructor | 33 * @constructor |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 name: 'frame', | 87 name: 'frame', |
| 88 pluralName: 'frames' | 88 pluralName: 'frames' |
| 89 }); | 89 }); |
| 90 | 90 |
| 91 return { | 91 return { |
| 92 Frame, | 92 Frame, |
| 93 FRAME_PERF_CLASS, | 93 FRAME_PERF_CLASS, |
| 94 }; | 94 }; |
| 95 }); | 95 }); |
| 96 </script> | 96 </script> |
| OLD | NEW |