fix: correct typo in profiler sort parameter variable name

This commit is contained in:
2025-02-18 12:48:48 +00:00
parent b6733836aa
commit cdc1bdbc30
+1 -1
View File
@@ -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())