Index: tracing/tracing/model/helpers/chrome_process_helper.html |
diff --git a/tracing/tracing/model/helpers/chrome_process_helper.html b/tracing/tracing/model/helpers/chrome_process_helper.html |
index c86714d8b5a0d2ff8cab469a12d996c4796ad90d..f80f019b77337efc9d7373f42ebd69e301f7207e 100644 |
--- a/tracing/tracing/model/helpers/chrome_process_helper.html |
+++ b/tracing/tracing/model/helpers/chrome_process_helper.html |
@@ -27,8 +27,9 @@ tr.exportTo('tr.model.helpers', function() { |
for (var i = 0; i < slices.length; i++) { |
var slice = slices[i]; |
if (rangeOfInterest.intersectsExplicitRangeInclusive( |
- slice.start, slice.end)) |
+ slice.start, slice.end)) { |
slicesInFilterRange.push(slice); |
+ } |
} |
return slicesInFilterRange; |
} |
@@ -79,10 +80,13 @@ tr.exportTo('tr.model.helpers', function() { |
MAIN_RENDERING_STATS : IMPL_RENDERING_STATS); |
var frameEvents = []; |
- for (var event of this.process.getDescendantEvents()) |
- if (event.title === titleToGet) |
- if (range.intersectsExplicitRangeInclusive(event.start, event.end)) |
+ for (var event of this.process.getDescendantEvents()) { |
+ if (event.title === titleToGet) { |
+ if (range.intersectsExplicitRangeInclusive(event.start, event.end)) { |
frameEvents.push(event); |
+ } |
+ } |
+ } |
frameEvents.sort(function(a, b) {return a.start - b.start;}); |
return frameEvents; |