diff options
Diffstat (limited to 'scripts/get_client_stats.py')
-rwxr-xr-x | scripts/get_client_stats.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/get_client_stats.py b/scripts/get_client_stats.py deleted file mode 100755 index 59f9aa6..0000000 --- a/scripts/get_client_stats.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python - -""" -Get stats from dummy server running Soledad Client and spit them out. -""" - -import commands -import urllib -import psutil - -stats = urllib.urlopen('http://localhost:8080/stats').read().split() - -pid, sync_phase, sync_exchange_phase = stats - -res = commands.getoutput("ps -p " + pid + " -o \%cpu,\%mem") -splitted = res.split() -cpu = splitted[2] -mem = splitted[3] - -print cpu, mem, sync_phase, sync_exchange_phase |