Add a nice and small profile script for Jedi.

This commit is contained in:
Dave Halter
2014-04-11 16:01:26 +02:00
parent 27645af6d2
commit 7f288eb0b0
2 changed files with 47 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ import jedi
def used_memory():
"""Return the total MB of System Memory in use."""
return psutil.virtual_memory().used / 2**20
return psutil.virtual_memory().used / 2 ** 20
def profile_preload(mod):