Update.
This commit is contained in:
parent
91a21db89b
commit
60404c6fd3
@ -23,7 +23,7 @@ async def profiler_handler(request):
|
|||||||
output = io.StringIO()
|
output = io.StringIO()
|
||||||
stats = pstats.Stats(profiler, stream=output)
|
stats = pstats.Stats(profiler, stream=output)
|
||||||
sort_by = request.query.get("sort", "tot. percall")
|
sort_by = request.query.get("sort", "tot. percall")
|
||||||
stats.sort_stats(sory_by)
|
stats.sort_stats(sort_by)
|
||||||
stats.print_stats()
|
stats.print_stats()
|
||||||
return web.Response(text=output.getvalue())
|
return web.Response(text=output.getvalue())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user