diff options
Diffstat (limited to 'scripts/doc_put_memory_usage/get-mem.py')
-rwxr-xr-x | scripts/doc_put_memory_usage/get-mem.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/doc_put_memory_usage/get-mem.py b/scripts/doc_put_memory_usage/get-mem.py new file mode 100755 index 00000000..d64875fc --- /dev/null +++ b/scripts/doc_put_memory_usage/get-mem.py @@ -0,0 +1,16 @@ +#!/usr/bin/python + + +import psutil +import time + + +delta = 50 * 60 +start = time.time() + +while True: + now = time.time() + print "%s %s" % (now - start, psutil.phymem_usage().used) + time.sleep(0.1) + if now > start + delta: + break |