From 5a3294408b751fc974de81853c8bc6b6d024fcf7 Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 28 Oct 2024 15:53:23 +0800 Subject: [PATCH] * [misc] set profiling_history_size to 200 in debug mode. --- framework/base/router.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 099d256656..97b55ae3c0 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -838,7 +838,11 @@ class baseRouter */ protected function setupProfiling(): void { - if(!empty($this->config->debug) && $this->config->debug >= 3 && $this->config->installed) $this->dbh->exec('SET profiling = 1'); + if(!empty($this->config->debug) && $this->config->debug >= 3 && $this->config->installed) + { + $this->dbh->exec('SET profiling_history_size = 200'); + $this->dbh->exec('SET profiling = 1'); + } } /**