Skip to content

Commit d0c8a39

Browse files
committed
FIX added a choosing backend in memory_usage function
1 parent 30a1617 commit d0c8a39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

memory_profiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def memory_usage(proc=-1, interval=.1, timeout=None, timestamps=False,
253253
ret : return value of the profiled function
254254
Only returned if retval is set to True
255255
"""
256+
if not _backend_chosen:
257+
choose_backend()
256258
if stream is not None:
257259
timestamps = True
258260

0 commit comments

Comments
 (0)