anki/qt/tools/profile.py

10 lines
188 B
Python
Raw Normal View History

2020-12-18 01:27:32 +01:00
import os
import sys
2020-12-18 01:27:32 +01:00
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())