anki/qt/tools/profile.py
2020-12-18 10:27:32 +10:00

10 lines
188 B
Python
Executable File

import os
import sys
import snakeviz
from snakeviz.cli import main
profile = os.path.join(os.environ["BUILD_WORKSPACE_DIRECTORY"], "anki.prof")
sys.argv.append(profile)
sys.exit(main())