Skip to content

Instantly share code, notes, and snippets.

@bazhenov
bazhenov / throughput.py
Last active August 29, 2015 14:21
Measure memory allocation throughput using jstat -gcnew
#!/bin/env python
# Using: jstat -gcnew [JVM pid] 1000 | python ./throughput.py
import sys, re
infile=sys.stdin
line=' '
prev = None;
edenCapacity = 0;
while len(line) != 0: