diff options
Diffstat (limited to 'measure-perf-series.py')
-rw-r--r-- | measure-perf-series.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/measure-perf-series.py b/measure-perf-series.py index 2c17ce7..5694bc8 100644 --- a/measure-perf-series.py +++ b/measure-perf-series.py @@ -6,15 +6,15 @@ import datetime # you have significant variability in there. POINTS = 200 -commands.getoutput('echo time req/s cpu mem > series.log') +commands.getoutput('echo time req/s cpu mem phase > series.log') start = datetime.datetime.now() for i in range(POINTS): value = commands.getoutput('python get_ping_rate.py') print "Step", i, "...", value - cpu_mem = commands.getoutput('python get_client_cpu_mem.py') - cpu, mem = cpu_mem.split() + stats = commands.getoutput('python get_client_cpu_mem.py') + cpu, mem, phase = stats.split() now = datetime.datetime.now() secs = (now - start).total_seconds() commands.getoutput( - 'echo %s\t%s\t%s\t%s >> series.log' % (secs, value, cpu, mem)) + 'echo %s\t%s\t%s\t%s\t%s >> series.log' % (secs, value, cpu, mem, phase)) |