OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 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 | 7 |
8 <link rel="import" href="/perf_insights/mre/function_handle.html"> | 8 <link rel="import" href="/perf_insights/mre/function_handle.html"> |
9 <link rel="import" href="/tracing/base/range.html"> | 9 <link rel="import" href="/tracing/base/math/range.html"> |
10 | 10 |
11 <script> | 11 <script> |
12 'use strict'; | 12 'use strict'; |
13 | 13 |
14 tr.exportTo('pie', function() { | 14 tr.exportTo('pie', function() { |
15 // Conservative estimate: if we hadn't been doing anything for 1ms, we | 15 // Conservative estimate: if we hadn't been doing anything for 1ms, we |
16 // probably needed to wake up the CPU for this. | 16 // probably needed to wake up the CPU for this. |
17 // TODO(skyostil): Augment this with CPU power management states. | 17 // TODO(skyostil): Augment this with CPU power management states. |
18 var IDLE_THRESHOLD_MILLISECONDS = 1; | 18 var IDLE_THRESHOLD_MILLISECONDS = 1; |
19 | 19 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 result.addPair('wakeUps', allWakeUps); | 122 result.addPair('wakeUps', allWakeUps); |
123 } | 123 } |
124 | 124 |
125 pi.FunctionRegistry.register(mapWakeUps); | 125 pi.FunctionRegistry.register(mapWakeUps); |
126 | 126 |
127 return { | 127 return { |
128 mapWakeUpsForTest: mapWakeUps | 128 mapWakeUpsForTest: mapWakeUps |
129 }; | 129 }; |
130 }); | 130 }); |
131 </script> | 131 </script> |
OLD | NEW |