From 5d5092d6aef9beef98bb809788adfa3511f0a6ca Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Thu, 20 Mar 2025 08:37:51 +0530 Subject: [PATCH] fix: limit profiler output to 200 lines --- frappe/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/app.py b/frappe/app.py index 9373689380..d5114ab019 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -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()