def profile_preload(mod):
 base = used_memory()
 t0 = time.time()
 jedi.preload_module(mod)
 elapsed = (time.time() - t0)
 used = (used_memory() - base)
 return (elapsed, used)

def profile_preload ( mod ) : base = used_memory ( ) t0 = time . time ( ) jedi . preload_module ( mod ) elapsed = ( time . time ( ) - t0 ) used = ( used_memory ( ) - base ) return ( elapsed , used )
preload a module into jedi .