Skip to content

Commit

Permalink
🎨 enable show-all in profiling middleware to ensure profile is full…
Browse files Browse the repository at this point in the history
…y detailed (ITISFoundation#5769)
  • Loading branch information
bisgaard-itis authored May 2, 2024
1 parent 398f6c2 commit 3f83d03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ async def profiling_middleware(request: Request, handler):
await stream_response.write(response.body)
profiler.stop()
await stream_response.write(
append_profile("\n", profiler.output_text(unicode=True, color=True)).encode()
append_profile(
"\n", profiler.output_text(unicode=True, color=True, show_all=True)
).encode()
)
await stream_response.write_eof()
return stream_response
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ async def _send_wrapper(message):
profiler.stop()
message["body"] = append_profile(
message["body"].decode(),
profiler.output_text(unicode=True, color=True),
profiler.output_text(
unicode=True, color=True, show_all=True
),
).encode()
else:
message["more_body"] = True
Expand Down

0 comments on commit 3f83d03

Please sign in to comment.