OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 }; | 415 }; |
416 | 416 |
417 | 417 |
418 this.assembleOutput = function(output) { | 418 this.assembleOutput = function(output) { |
419 output("set yrange [0:" + (num_timer_event + 1) + "]"); | 419 output("set yrange [0:" + (num_timer_event + 1) + "]"); |
420 output("set xlabel \"execution time in ms\""); | 420 output("set xlabel \"execution time in ms\""); |
421 output("set xrange [" + range_start + ":" + range_end + "]"); | 421 output("set xrange [" + range_start + ":" + range_end + "]"); |
422 output("set style fill pattern 2 bo 1"); | 422 output("set style fill pattern 2 bo 1"); |
423 output("set style rect fs solid 1 noborder"); | 423 output("set style rect fs solid 1 noborder"); |
424 output("set style line 1 lt 1 lw 1 lc rgb \"#000000\""); | 424 output("set style line 1 lt 1 lw 1 lc rgb \"#000000\""); |
| 425 output("set border 15 lw 0.2"); // Draw thin border box. |
425 output("set xtics out nomirror"); | 426 output("set xtics out nomirror"); |
426 output("unset key"); | 427 output("unset key"); |
427 | 428 |
428 function DrawBar(row, color, start, end, width) { | 429 function DrawBar(row, color, start, end, width) { |
429 obj_index++; | 430 obj_index++; |
430 command = "set object " + obj_index + " rect"; | 431 command = "set object " + obj_index + " rect"; |
431 command += " from " + start + ", " + (row - width); | 432 command += " from " + start + ", " + (row - width); |
432 command += " to " + end + ", " + (row + width); | 433 command += " to " + end + ", " + (row + width); |
433 command += " fc rgb \"" + color + "\""; | 434 command += " fc rgb \"" + color + "\""; |
434 output(command); | 435 output(command); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 output("plot '-' using 1:2 axes x1y2 with impulses ls 1"); | 536 output("plot '-' using 1:2 axes x1y2 with impulses ls 1"); |
536 for (var i = 0; i < execution_pauses.length; i++) { | 537 for (var i = 0; i < execution_pauses.length; i++) { |
537 var pause = execution_pauses[i]; | 538 var pause = execution_pauses[i]; |
538 output(pause.end + " " + pause.duration()); | 539 output(pause.end + " " + pause.duration()); |
539 obj_index++; | 540 obj_index++; |
540 } | 541 } |
541 output("e"); | 542 output("e"); |
542 return obj_index; | 543 return obj_index; |
543 }; | 544 }; |
544 } | 545 } |
OLD | NEW |