| Index: trace_processor/experimental/mappers/v8_map_function.html
|
| diff --git a/perf_insights/perf_insights/mappers/v8_map_function.html b/trace_processor/experimental/mappers/v8_map_function.html
|
| similarity index 98%
|
| rename from perf_insights/perf_insights/mappers/v8_map_function.html
|
| rename to trace_processor/experimental/mappers/v8_map_function.html
|
| index a8dc9f60422273d9f4ac4cd1cb1dc3cb916dadb0..2942e2faec2d25a1fae45662d896ce3b110b29a2 100644
|
| --- a/perf_insights/perf_insights/mappers/v8_map_function.html
|
| +++ b/trace_processor/experimental/mappers/v8_map_function.html
|
| @@ -34,12 +34,12 @@ tr.exportTo('pi.m', function() {
|
|
|
| var sliceCosts = [];
|
|
|
| - model.iterateAllEvents(function(event) {
|
| + for (var event of model.getDescendantEvents()) {
|
| if (!(event instanceof tr.model.ThreadSlice))
|
| - return;
|
| + continue;
|
|
|
| if (!event.title.startsWith('V8.') && !event.title.startsWith('V8Test.'))
|
| - return;
|
| + continue;
|
|
|
| function _get_parent_data(event) {
|
| var curSlice = event;
|
| @@ -221,7 +221,7 @@ tr.exportTo('pi.m', function() {
|
| value: sliceData
|
| };
|
| sliceCosts.push(newElement);
|
| - });
|
| + }
|
|
|
| result.addPair('wr', sliceCosts);
|
| }
|
| @@ -237,11 +237,11 @@ tr.exportTo('pi.m', function() {
|
| }, this);
|
| }, this);
|
|
|
| - model.iterateAllEvents(function storeEventToUnassociatedSet(event) {
|
| + for (var event of model.getDescendantEvents()) {
|
| if (stageTitleByGUID[event.guid] !== undefined)
|
| return;
|
| stageTitleByGUID[event.guid] = 'Unknown';
|
| - });
|
| + }
|
| return stageTitleByGUID;
|
| }
|
|
|
|
|