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/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 Loading... |
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 Loading... |
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> |
OLD | NEW |