diff options
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 |