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

Side by Side Diff: trace_processor/experimental/mappers/scheduling/map_wake_ups.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698