fix: limit profiler output to 200 lines
This commit is contained in:
parent
d76d24d0d3
commit
5d5092d6ae
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ def serve(
|
|||
from werkzeug.serving import run_simple
|
||||
|
||||
if profile or os.environ.get("USE_PROFILER"):
|
||||
application = ProfilerMiddleware(application, sort_by=("cumtime", "calls"))
|
||||
application = ProfilerMiddleware(application, sort_by=("cumtime", "calls"), restrictions=(200,))
|
||||
|
||||
if not os.environ.get("NO_STATICS"):
|
||||
application = application_with_statics()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue