| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2010 the V8 project authors. All rights reserved. | 3 # Copyright 2010 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 plots = [ | 233 plots = [ |
| 234 [ | 234 [ |
| 235 Set('style fill solid 0.5 noborder'), | 235 Set('style fill solid 0.5 noborder'), |
| 236 Set('style histogram rowstacked'), | 236 Set('style histogram rowstacked'), |
| 237 Set('style data histograms'), | 237 Set('style data histograms'), |
| 238 Plot(Item('Scavenge', scavenge_scope, lc = 'green'), | 238 Plot(Item('Scavenge', scavenge_scope, lc = 'green'), |
| 239 Item('Marking', 'mark', lc = 'purple'), | 239 Item('Marking', 'mark', lc = 'purple'), |
| 240 Item('Sweep', 'sweep', lc = 'blue'), | 240 Item('Sweep', 'sweep', lc = 'blue'), |
| 241 Item('Compaction', 'compact', lc = 'red'), | 241 Item('Compaction', 'compact', lc = 'red'), |
| 242 Item('External', 'external', lc = '#489D43'), | 242 Item('External', 'external', lc = '#489D43'), |
| 243 Item('Other', other_scope, lc = 'grey')), | 243 Item('Other', other_scope, lc = 'grey'), |
| 244 Item('IGC Steps', 'stepstook', lc = '#FF6347')) | 244 Item('IGC Steps', 'stepstook', lc = '#FF6347')) |
| 245 ], | 245 ], |
| 246 [ | 246 [ |
| 247 Set('style fill solid 0.5 noborder'), | 247 Set('style fill solid 0.5 noborder'), |
| 248 Set('style histogram rowstacked'), | 248 Set('style histogram rowstacked'), |
| 249 Set('style data histograms'), | 249 Set('style data histograms'), |
| 250 Plot(Item('Marking', 'mark', lc = 'purple'), | 250 Plot(Item('Scavenge', scavenge_scope, lc = 'green'), |
| 251 Item('Marking', 'mark', lc = 'purple'), |
| 251 Item('Sweep', 'sweep', lc = 'blue'), | 252 Item('Sweep', 'sweep', lc = 'blue'), |
| 252 Item('Compaction', 'compact', lc = 'red'), | 253 Item('Compaction', 'compact', lc = 'red'), |
| 254 Item('External', 'external', lc = '#489D43'), |
| 253 Item('Other', other_scope, lc = '#ADD8E6'), | 255 Item('Other', other_scope, lc = '#ADD8E6'), |
| 254 Item('External', 'external', lc = '#D3D3D3')) | 256 Item('External', 'external', lc = '#D3D3D3')) |
| 255 ], | 257 ], |
| 256 | 258 |
| 257 [ | 259 [ |
| 258 Plot(Item('Mutator', real_mutator, lc = 'black', style = 'lines')) | 260 Plot(Item('Mutator', real_mutator, lc = 'black', style = 'lines')) |
| 259 ], | 261 ], |
| 260 [ | 262 [ |
| 261 Set('style histogram rowstacked'), | 263 Set('style histogram rowstacked'), |
| 262 Set('style data histograms'), | 264 Set('style data histograms'), |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 out.write('<img src="%s">' % chart) | 386 out.write('<img src="%s">' % chart) |
| 385 out.write('</body></html>') | 387 out.write('</body></html>') |
| 386 | 388 |
| 387 print "%s generated." % (filename + '.html') | 389 print "%s generated." % (filename + '.html') |
| 388 | 390 |
| 389 if len(sys.argv) != 2: | 391 if len(sys.argv) != 2: |
| 390 print "Usage: %s <GC-trace-filename>" % sys.argv[0] | 392 print "Usage: %s <GC-trace-filename>" % sys.argv[0] |
| 391 sys.exit(1) | 393 sys.exit(1) |
| 392 | 394 |
| 393 process_trace(sys.argv[1]) | 395 process_trace(sys.argv[1]) |
| OLD | NEW |