Index: tools/plot-timer-events.js |
diff --git a/tools/plot-timer-events.js b/tools/plot-timer-events.js |
index 0a5e5221ae210523f8de835265aad981b1bd1786..c7463a10ef68ee3471c4d7d98c53146511115077 100644 |
--- a/tools/plot-timer-events.js |
+++ b/tools/plot-timer-events.js |
@@ -276,13 +276,15 @@ function FindPlotRange() { |
if (start_found && end_found) return; |
- var execution_ranges = kExecutionEvent.ranges; |
- for (var i = 0; i < execution_ranges.length; i++) { |
- if (execution_ranges[i].start < xrange_start && !start_found) { |
- xrange_start = execution_ranges[i].start; |
- } |
- if (execution_ranges[i].end > xrange_end && !end_found) { |
- xrange_end = execution_ranges[i].end; |
+ for (name in TimerEvents) { |
+ var ranges = TimerEvents[name].ranges; |
+ for (var i = 0; i < ranges.length; i++) { |
+ if (ranges[i].start < xrange_start && !start_found) { |
+ xrange_start = ranges[i].start; |
+ } |
+ if (ranges[i].end > xrange_end && !end_found) { |
+ xrange_end = ranges[i].end; |
+ } |
} |
} |