OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 | 270 |
271 function FindPlotRange() { | 271 function FindPlotRange() { |
272 var start_found = (xrange_start_override || xrange_start_override == 0); | 272 var start_found = (xrange_start_override || xrange_start_override == 0); |
273 var end_found = (xrange_end_override || xrange_end_override == 0); | 273 var end_found = (xrange_end_override || xrange_end_override == 0); |
274 xrange_start = start_found ? xrange_start_override : Infinity; | 274 xrange_start = start_found ? xrange_start_override : Infinity; |
275 xrange_end = end_found ? xrange_end_override : -Infinity; | 275 xrange_end = end_found ? xrange_end_override : -Infinity; |
276 | 276 |
277 if (start_found && end_found) return; | 277 if (start_found && end_found) return; |
278 | 278 |
279 var execution_ranges = kExecutionEvent.ranges; | 279 for (name in TimerEvents) { |
280 for (var i = 0; i < execution_ranges.length; i++) { | 280 var ranges = TimerEvents[name].ranges; |
281 if (execution_ranges[i].start < xrange_start && !start_found) { | 281 for (var i = 0; i < ranges.length; i++) { |
282 xrange_start = execution_ranges[i].start; | 282 if (ranges[i].start < xrange_start && !start_found) { |
283 } | 283 xrange_start = ranges[i].start; |
284 if (execution_ranges[i].end > xrange_end && !end_found) { | 284 } |
285 xrange_end = execution_ranges[i].end; | 285 if (ranges[i].end > xrange_end && !end_found) { |
| 286 xrange_end = ranges[i].end; |
| 287 } |
286 } | 288 } |
287 } | 289 } |
288 | 290 |
289 for (codekind in CodeKinds) { | 291 for (codekind in CodeKinds) { |
290 var ticks = CodeKinds[codekind].in_execution; | 292 var ticks = CodeKinds[codekind].in_execution; |
291 for (var i = 0; i < ticks.length; i++) { | 293 for (var i = 0; i < ticks.length; i++) { |
292 if (ticks[i].tick < xrange_start && !start_found) { | 294 if (ticks[i].tick < xrange_start && !start_found) { |
293 xrange_start = ticks[i].tick; | 295 xrange_start = ticks[i].tick; |
294 } | 296 } |
295 if (ticks[i].tick > xrange_end && !end_found) { | 297 if (ticks[i].tick > xrange_end && !end_found) { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 for (var i = 0; i < execution_pauses.length; i++) { | 588 for (var i = 0; i < execution_pauses.length; i++) { |
587 var pause = execution_pauses[i]; | 589 var pause = execution_pauses[i]; |
588 print(pause.end + " " + pause.duration()); | 590 print(pause.end + " " + pause.duration()); |
589 } | 591 } |
590 print("e"); | 592 print("e"); |
591 } | 593 } |
592 | 594 |
593 | 595 |
594 CollectData(); | 596 CollectData(); |
595 GnuplotOutput(); | 597 GnuplotOutput(); |
OLD | NEW |