* [misc] set profiling_history_size to 200 in debug mode.

This commit is contained in:
sunhao
2024-10-29 09:45:50 +08:00
committed by 朱金勇
parent 5f78a51da1
commit 5a3294408b
+5 -1
View File
@@ -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');
}
}
/**