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

Side by Side Diff: tracing/tracing/model/helpers/chrome_process_helper.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 (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 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/base.html"> 7 <link rel="import" href="/tracing/base/base.html">
8 8
9 <script> 9 <script>
10 'use strict'; 10 'use strict';
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 findTelemetryInternalRanges_: function() { 60 findTelemetryInternalRanges_: function() {
61 this.telemetryInternalRanges_ = []; 61 this.telemetryInternalRanges_ = [];
62 var start = 0; 62 var start = 0;
63 for (var thread of Object.values(this.process.threads)) { 63 for (var thread of Object.values(this.process.threads)) {
64 for (var slice of thread.asyncSliceGroup.getDescendantEvents()) { 64 for (var slice of thread.asyncSliceGroup.getDescendantEvents()) {
65 if (/^telemetry\.internal\.[^.]*\.start$/.test(slice.title)) { 65 if (/^telemetry\.internal\.[^.]*\.start$/.test(slice.title)) {
66 start = slice.start; 66 start = slice.start;
67 } else if (/^telemetry\.internal\.[^.]*\.end$/.test(slice.title) && 67 } else if (/^telemetry\.internal\.[^.]*\.end$/.test(slice.title) &&
68 start !== undefined) { 68 start !== undefined) {
69 this.telemetryInternalRanges_.push(tr.b.Range.fromExplicitRange( 69 this.telemetryInternalRanges_.push(
70 start, slice.end)); 70 tr.b.math.Range.fromExplicitRange(start, slice.end));
71 start = undefined; 71 start = undefined;
72 } 72 }
73 } 73 }
74 } 74 }
75 }, 75 },
76 76
77 getFrameEventsInRange: function(frametimeType, range) { 77 getFrameEventsInRange: function(frametimeType, range) {
78 var titleToGet = (frametimeType === MAIN_FRAMETIME_TYPE ? 78 var titleToGet = (frametimeType === MAIN_FRAMETIME_TYPE ?
79 MAIN_RENDERING_STATS : IMPL_RENDERING_STATS); 79 MAIN_RENDERING_STATS : IMPL_RENDERING_STATS);
80 80
(...skipping 26 matching lines...) Expand all
107 MAIN_FRAMETIME_TYPE, 107 MAIN_FRAMETIME_TYPE,
108 IMPL_FRAMETIME_TYPE, 108 IMPL_FRAMETIME_TYPE,
109 MAIN_RENDERING_STATS, 109 MAIN_RENDERING_STATS,
110 IMPL_RENDERING_STATS, 110 IMPL_RENDERING_STATS,
111 111
112 getSlicesIntersectingRange, 112 getSlicesIntersectingRange,
113 getFrametimeDataFromEvents, 113 getFrametimeDataFromEvents,
114 }; 114 };
115 }); 115 });
116 </script> 116 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/helpers/chrome_model_helper.html ('k') | tracing/tracing/model/helpers/chrome_renderer_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698