diff options
author | drebs <drebs@leap.se> | 2014-06-06 16:48:52 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2014-06-06 16:48:52 -0300 |
commit | a371d0cf47589c7a429074543e5c930c30481ebe (patch) | |
tree | da12dce58b0e1c7e38caccfc41e8fe29a92d1039 /scripts/profiling/doc_put_memory_usage/get-mem.py | |
parent | 16dbfbc3f14296587ebef9a65e69d7bf1b9dcb0e (diff) | |
parent | 5cb40a959af827e4eadde1c047664c4f4c0ae01d (diff) |
Merge tag '0.5.1' into deb-0.5.2
Tag leap.soledad.version 0.5.1
Diffstat (limited to 'scripts/profiling/doc_put_memory_usage/get-mem.py')
-rwxr-xr-x | scripts/profiling/doc_put_memory_usage/get-mem.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/profiling/doc_put_memory_usage/get-mem.py b/scripts/profiling/doc_put_memory_usage/get-mem.py new file mode 100755 index 00000000..d64875fc --- /dev/null +++ b/scripts/profiling/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 |