mariadb/db-benchmark-test/tracedelta.py
Rich Prohaska fe444f93a4 #2907 closes[t:2907] merge single insert per txn profiler to main
git-svn-id: file:///svn/toku/tokudb@23569 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:59:22 -04:00

18 lines
378 B
Python

import sys
def main():
ts = None
while 1:
b = sys.stdin.readline()
if b == "": break
f = b.split()
if len(f) != 2: continue
newts = int(f[0])
event = f[1]
if ts is None:
ts = int(f[0])
else:
print "%8d %s" % (newts - ts, event)
ts = newts
return 0
sys.exit(main())