summaryrefslogtreecommitdiff
path: root/measure-perf-series.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-05-02 20:13:19 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-05-02 20:13:19 -0400
commit01e2a72ce30f0fbb4a027d3246a8ba16e00ae197 (patch)
tree22fc0d2b7016d34d48fad45c88349b0103cd8308 /measure-perf-series.py
parent71a21f8fa46e8ea834fe3381abdadde59788d37b (diff)
parentf72a3bf28f4bf001106ad4d42ae7eb4f61b77828 (diff)
Merge remote-tracking branch 'kali-github/pr/2'
Diffstat (limited to 'measure-perf-series.py')
-rw-r--r--measure-perf-series.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/measure-perf-series.py b/measure-perf-series.py
deleted file mode 100644
index 5694bc8..0000000
--- a/measure-perf-series.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import commands
-import datetime
-
-# How many points to measure. Make sure that you leave the baseline
-# running for a significative amount before triggering the sync, it's possible
-# you have significant variability in there.
-POINTS = 200
-
-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
- 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\t%s >> series.log' % (secs, value, cpu, mem, phase))