mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
This commit is contained in:
parent
19141b1bcf
commit
afb882048e
13 changed files with 42 additions and 39 deletions
|
@ -699,7 +699,7 @@ class Database
|
|||
$this->errorno = $errorno;
|
||||
}
|
||||
|
||||
$this->profiler->saveTimestamp($stamp1, 'database', System::callstack());
|
||||
$this->profiler->saveTimestamp($stamp1, 'database');
|
||||
|
||||
if ($this->configCache->get('system', 'db_log')) {
|
||||
$stamp2 = microtime(true);
|
||||
|
@ -783,7 +783,7 @@ class Database
|
|||
$this->errorno = $errorno;
|
||||
}
|
||||
|
||||
$this->profiler->saveTimestamp($stamp, "database_write", System::callstack());
|
||||
$this->profiler->saveTimestamp($stamp, "database_write");
|
||||
|
||||
return $retval;
|
||||
}
|
||||
|
@ -964,7 +964,7 @@ class Database
|
|||
}
|
||||
}
|
||||
|
||||
$this->profiler->saveTimestamp($stamp1, 'database', System::callstack());
|
||||
$this->profiler->saveTimestamp($stamp1, 'database');
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
@ -1644,7 +1644,7 @@ class Database
|
|||
break;
|
||||
}
|
||||
|
||||
$this->profiler->saveTimestamp($stamp1, 'database', System::callstack());
|
||||
$this->profiler->saveTimestamp($stamp1, 'database');
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue