From 02ffbca5b6a6d1c1af3f057b607448e8b09a96ca Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Sun, 12 Nov 2023 17:21:48 -0800 Subject: [PATCH] Change the profile visualizer to snakeviz --- bikeshed/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bikeshed/cli.py b/bikeshed/cli.py index 081b7a0f4c..aadbdaf3d4 100644 --- a/bikeshed/cli.py +++ b/bikeshed/cli.py @@ -684,7 +684,7 @@ def handleProfile(options: argparse.Namespace) -> None: ) else: os.system( - f"time python -m cProfile -o /tmp/stat.prof -m bikeshed -f spec && gprof2dot -f pstats --skew=.0001 {root} {leaf} /tmp/stat.prof | xdot &", # noqa: S605 + f"time python -m cProfile -o /tmp/stat.prof -m bikeshed -f spec && snakeviz /tmp/stat.prof", # noqa: S605 )