(name, trace)
| 321 | power *= 1024 |
| 322 | |
| 323 | def throughput(name, trace): |
| 324 | total_live_after = calc_total(trace, 'total_size_after') |
| 325 | total_live_before = calc_total(trace, 'total_size_before') |
| 326 | total_gc = calc_total(trace, 'pause') |
| 327 | if total_gc == 0: |
| 328 | return |
| 329 | out.write('GC %s Throughput (after): %s / %s ms = %s/ms<br/>' % |
| 330 | (name, |
| 331 | HumanReadable(total_live_after), |
| 332 | total_gc, |
| 333 | HumanReadable(total_live_after / total_gc))) |
| 334 | out.write('GC %s Throughput (before): %s / %s ms = %s/ms<br/>' % |
| 335 | (name, |
| 336 | HumanReadable(total_live_before), |
| 337 | total_gc, |
| 338 | HumanReadable(total_live_before / total_gc))) |
| 339 | |
| 340 | |
| 341 | with open(filename + '.html', 'w') as out: |
no test coverage detected
searching dependent graphs…