diff --git a/dvc/main.py b/dvc/main.py index 5a1846d76..b74488afb 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -35,6 +35,7 @@ def profile(enable, dump): yield + prof.disable() if not dump: prof.print_stats(sort="cumtime") return