Skip to content

Commit 5a92a5f

Browse files
committed
bug fixes
1 parent 386a0bf commit 5a92a5f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

memory_profiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ def profile(func=None, stream=None, precision=1, backend='psutil'):
985985
"""
986986
Decorator that will run the function and print a line-by-line profile
987987
"""
988+
backend = choose_backend(backend)
988989
if backend == 'tracemalloc' and has_tracemalloc:
989990
if not tracemalloc.is_tracing():
990991
tracemalloc.start()

0 commit comments

Comments
 (0)