diff options
author | drebs <drebs@riseup.net> | 2016-05-02 20:25:45 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2016-05-02 20:44:20 -0300 |
commit | 31b527a9acc8607e5e03927b3b646b7c832e7058 (patch) | |
tree | 0198120076f62027bbbaf70eed6358df012d4cde /get_client_cpu_mem.py | |
parent | 9c1dc66c057dee764e80af875cb60a75e8e3aca4 (diff) |
refactor and make complete test run with script
Diffstat (limited to 'get_client_cpu_mem.py')
-rw-r--r-- | get_client_cpu_mem.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/get_client_cpu_mem.py b/get_client_cpu_mem.py deleted file mode 100644 index fe1aeec..0000000 --- a/get_client_cpu_mem.py +++ /dev/null @@ -1,11 +0,0 @@ -import commands -import urllib -import psutil - -pid, phase = urllib.urlopen('http://localhost:8080/stats').read().split() -res = commands.getoutput("ps -p " + pid + " -o \%cpu,\%mem") -splitted = res.split() -cpu = splitted[2] -mem = splitted[3] - -print cpu, mem, phase |