Closed kbhatiya999 closed 5 months ago
`
app.add_middleware(
PyInstrumentProfilerMiddleware,
server_app=app, # Required to output the profile on server shutdown
profiler_output_type="speedscope",
is_print_each_request=False, # Set to True to show request profile on
# stdout on each request
open_in_browser=False, # Set to true to open your web-browser automatically
# when the server shuts down
html_file_name="speedscope.json", # Filename for output
async_mode="strict",
show_all=True,
)
This is what get thrown if server is stopped without sending any request.