Skip to content

Commit 285deef

Browse files
Align tools/gc-nvp-trace-processor.py with --trace-gc-nvp output.
[email protected] BUG= TEST= Review URL: http://codereview.chromium.org/8915005 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@10259 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent 5e72b24 commit 285deef

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/gc-nvp-trace-processor.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def other_scope(r):
219219
if r['gc'] == 's':
220220
# there is no 'other' scope for scavenging collections.
221221
return 0
222-
return r['pause'] - r['mark'] - r['sweep'] - r['compact'] - r['external']
222+
return r['pause'] - r['mark'] - r['sweep'] - r['external']
223223

224224
def scavenge_scope(r):
225225
if r['gc'] == 's':
@@ -238,7 +238,6 @@ def real_mutator(r):
238238
Plot(Item('Scavenge', scavenge_scope, lc = 'green'),
239239
Item('Marking', 'mark', lc = 'purple'),
240240
Item('Sweep', 'sweep', lc = 'blue'),
241-
Item('Compaction', 'compact', lc = 'red'),
242241
Item('External', 'external', lc = '#489D43'),
243242
Item('Other', other_scope, lc = 'grey'),
244243
Item('IGC Steps', 'stepstook', lc = '#FF6347'))
@@ -250,7 +249,6 @@ def real_mutator(r):
250249
Plot(Item('Scavenge', scavenge_scope, lc = 'green'),
251250
Item('Marking', 'mark', lc = 'purple'),
252251
Item('Sweep', 'sweep', lc = 'blue'),
253-
Item('Compaction', 'compact', lc = 'red'),
254252
Item('External', 'external', lc = '#489D43'),
255253
Item('Other', other_scope, lc = '#ADD8E6'),
256254
Item('External', 'external', lc = '#D3D3D3'))
@@ -309,7 +307,6 @@ def process_trace(filename):
309307
trace = parse_gc_trace(filename)
310308

311309
marksweeps = filter(lambda r: r['gc'] == 'ms', trace)
312-
markcompacts = filter(lambda r: r['gc'] == 'mc', trace)
313310
scavenges = filter(lambda r: r['gc'] == 's', trace)
314311
globalgcs = filter(lambda r: r['gc'] != 's', trace)
315312

@@ -368,18 +365,15 @@ def throughput(name, trace):
368365
stats(out, 'Total in GC', trace, 'pause')
369366
stats(out, 'Scavenge', scavenges, 'pause')
370367
stats(out, 'MarkSweep', marksweeps, 'pause')
371-
stats(out, 'MarkCompact', markcompacts, 'pause')
372368
stats(out, 'Mark', filter(lambda r: r['mark'] != 0, trace), 'mark')
373369
stats(out, 'Sweep', filter(lambda r: r['sweep'] != 0, trace), 'sweep')
374-
stats(out, 'Compact', filter(lambda r: r['compact'] != 0, trace), 'compact')
375370
stats(out,
376371
'External',
377372
filter(lambda r: r['external'] != 0, trace),
378373
'external')
379374
out.write('</table>')
380375
throughput('TOTAL', trace)
381376
throughput('MS', marksweeps)
382-
throughput('MC', markcompacts)
383377
throughput('OLDSPACE', globalgcs)
384378
out.write('<br/>')
385379
for chart in charts:

0 commit comments

Comments
 (0)