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

Side by Side Diff: trace_processor/experimental/mappers/v8_map_function.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
« no previous file with comments | « trace_processor/experimental/mappers/trace_stats.html ('k') | tracing/trace_viewer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mappers/slice_cost.html"> 8 <link rel="import" href="/perf_insights/mappers/slice_cost.html">
9 <link rel="import" href="/perf_insights/mappers/thread_grouping.html"> 9 <link rel="import" href="/perf_insights/mappers/thread_grouping.html">
10 <link rel="import" href="/perf_insights/mre/function_handle.html"> 10 <link rel="import" href="/perf_insights/mre/function_handle.html">
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 var ufc = model.getUserFriendlyCategoryFromEvent(event); 144 var ufc = model.getUserFriendlyCategoryFromEvent(event);
145 var data = _getParentData(event); 145 var data = _getParentData(event);
146 data.framework = _guessFrameworkFromJsFile(data.js); 146 data.framework = _guessFrameworkFromJsFile(data.js);
147 var scriptURLClean = _cleanupFrameworkName(data.js); 147 var scriptURLClean = _cleanupFrameworkName(data.js);
148 148
149 var slice = event; 149 var slice = event;
150 if (slice.title === 'V8.Execute') { 150 if (slice.title === 'V8.Execute') {
151 // V8.Execute events may generate several sliceCostInfo, based on the 151 // V8.Execute events may generate several sliceCostInfo, based on the
152 // origin of the JS being executed. 152 // origin of the JS being executed.
153 var range = new tr.b.Range(); 153 var range = new tr.b.math.Range();
154 slice.addBoundsToRange(range); 154 slice.addBoundsToRange(range);
155 var filtered = range.filterArray( 155 var filtered = range.filterArray(
156 slice.parentContainer.samples, 156 slice.parentContainer.samples,
157 function(sample) {return sample.start;}); 157 function(sample) {return sample.start;});
158 filtered.forEach(function(sample) { 158 filtered.forEach(function(sample) {
159 // Let's use the state of the leaf frame. TODO(chiniforooshan): 159 // Let's use the state of the leaf frame. TODO(chiniforooshan):
160 // understand what it means if frames of a sample stack are in 160 // understand what it means if frames of a sample stack are in
161 // different states (BUG #1542). 161 // different states (BUG #1542).
162 var sliceData = { 162 var sliceData = {
163 threadGroup: threadGrouping.getGroupNameForEvent(slice), 163 threadGroup: threadGrouping.getGroupNameForEvent(slice),
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 pi.FunctionRegistry.register(v8ReportMapFunction); 248 pi.FunctionRegistry.register(v8ReportMapFunction);
249 249
250 // Exporting for tests. 250 // Exporting for tests.
251 return { 251 return {
252 v8ReportMapFunction: v8ReportMapFunction 252 v8ReportMapFunction: v8ReportMapFunction
253 }; 253 };
254 }); 254 });
255 255
256 </script> 256 </script>
OLDNEW
« no previous file with comments | « trace_processor/experimental/mappers/trace_stats.html ('k') | tracing/trace_viewer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698