mirror of
https://github.com/friendica/friendica
synced 2025-04-30 07:44:22 +02:00
Support for stacked profiler analysis
This commit is contained in:
parent
3cef3ab107
commit
c89533a70b
17 changed files with 763 additions and 611 deletions
|
@ -58,7 +58,7 @@ class SessionFactory
|
|||
*/
|
||||
public function createSession(App\Mode $mode, App\BaseURL $baseURL, IConfig $config, Database $dba, ICache $cache, LoggerInterface $logger, Profiler $profiler, array $server = [])
|
||||
{
|
||||
$stamp1 = microtime(true);
|
||||
$profiler->startRecording('parser');
|
||||
$session = null;
|
||||
|
||||
try {
|
||||
|
@ -85,7 +85,7 @@ class SessionFactory
|
|||
$session = new Session\Native($baseURL, $handler);
|
||||
}
|
||||
} finally {
|
||||
$profiler->saveTimestamp($stamp1, 'parser');
|
||||
$profiler->stopRecording();
|
||||
return $session;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue