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

Unified Diff: tools/plot-timer-events.js

Issue 11973028: Fix the xrange calculation of the V8 timeline plot (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698