Setup/Profiler exclusions
* set time limit to generation of profiler exclusions file * remove some unused logging
This commit is contained in:
parent
23abce304c
commit
7a74c36448
1 changed files with 4 additions and 12 deletions
|
|
@ -375,21 +375,13 @@ if (!CLI)
|
|||
/******************/
|
||||
$scripts[] = function() use (&$exclusions)
|
||||
{
|
||||
$s = count($exclusions);
|
||||
$i = $n = 0;
|
||||
CLI::write('applying '.$s.' baseline exclusions');
|
||||
set_time_limit(2);
|
||||
|
||||
CLI::write('applying '.count($exclusions).' baseline exclusions');
|
||||
DB::Aowow()->query('DELETE FROM ?_profiler_excludes WHERE comment = ""');
|
||||
|
||||
foreach ($exclusions as $ex)
|
||||
{
|
||||
DB::Aowow()->query('REPLACE INTO ?_profiler_excludes (?#) VALUES (?a)', array_keys($ex), array_values($ex));
|
||||
if ($i >= 500)
|
||||
{
|
||||
$i = 0;
|
||||
CLI::write(' * '.$n.' / '.$s.' ('.Lang::nf(100 * $n / $s, 1).'%)');
|
||||
}
|
||||
$i++;
|
||||
$n++;
|
||||
}
|
||||
|
||||
// excludes; type => [excludeGroupBit => [typeIds]]
|
||||
$excludes = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue