diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 95fd829c4..d47145eb7 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -411,6 +411,8 @@ PROFILE_CODE = os.environ.get("ANKI_PROFILE_CODE") def write_profile_results() -> None: profiler.disable() + profile = os.path.join(os.environ.get("BUILD_WORKSPACE_DIRECTORY", ""), "anki.prof") + profiler.dump_stats(profile) profiler.dump_stats("anki.prof") print("profile stats written to anki.prof") print("use 'bazel run qt:profile' to explore")