2021-04-13 10:45:05 +02:00
|
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
2020-12-18 01:27:32 +01:00
|
|
|
import os
|
|
|
|
import sys
|
2020-12-17 03:03:24 +01:00
|
|
|
|
2020-12-18 01:27:32 +01:00
|
|
|
import snakeviz
|
2020-12-17 03:03:24 +01:00
|
|
|
from snakeviz.cli import main
|
|
|
|
|
|
|
|
profile = os.path.join(os.environ["BUILD_WORKSPACE_DIRECTORY"], "anki.prof")
|
|
|
|
sys.argv.append(profile)
|
|
|
|
sys.exit(main())
|