Config/Profiler

* update config to enable/disable profiler in general, instead of just the queue
 * regenerate affected files on config change
This commit is contained in:
Sarjuuk
2018-03-27 12:39:14 +02:00
parent c17cf9c043
commit 22d02378ef
13 changed files with 37 additions and 7 deletions

View File

@@ -41,8 +41,8 @@ $error = function ($type, $typeId, $realmId)
};
// if (CFG_PROFILER_QUEUE) - wont work because it is not redefined if changed in config
while (DB::Aowow()->selectCell('SELECT value FROM ?_config WHERE `key` = "profiler_queue"'))
// if (CFG_PROFILER_ENABLE) - wont work because it is not redefined if changed in config
while (DB::Aowow()->selectCell('SELECT value FROM ?_config WHERE `key` = "profiler_enable"'))
{
if (($tDiff = (microtime(true) - $tCycle)) < (CFG_PROFILER_QUEUE_DELAY / 1000))
{