We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386a0bf commit 5a92a5fCopy full SHA for 5a92a5f
1 file changed
memory_profiler.py
@@ -985,6 +985,7 @@ def profile(func=None, stream=None, precision=1, backend='psutil'):
985
"""
986
Decorator that will run the function and print a line-by-line profile
987
988
+ backend = choose_backend(backend)
989
if backend == 'tracemalloc' and has_tracemalloc:
990
if not tracemalloc.is_tracing():
991
tracemalloc.start()
0 commit comments