anki/qt/tools/profile.py

9 lines
182 B
Python
Raw Normal View History

import sys, os
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())