From 60404c6fd31894f3fbb6ce31ba48f1750101748f Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 18 Feb 2025 13:48:48 +0100 Subject: [PATCH] Update. --- src/snek/system/profiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snek/system/profiler.py b/src/snek/system/profiler.py index c5831e9..193bbb7 100644 --- a/src/snek/system/profiler.py +++ b/src/snek/system/profiler.py @@ -23,7 +23,7 @@ async def profiler_handler(request): output = io.StringIO() stats = pstats.Stats(profiler, stream=output) sort_by = request.query.get("sort", "tot. percall") - stats.sort_stats(sory_by) + stats.sort_stats(sort_by) stats.print_stats() return web.Response(text=output.getvalue())