<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
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('session');
$session = null;
try {
$session = new Session\Native($baseURL, $handler);
}
} finally {
- $profiler->saveTimestamp($stamp1, 'parser', System::callstack());
+ $profiler->stopRecording();
return $session;
}
}