mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
Parser is now session
This commit is contained in:
parent
c03fb998f4
commit
ab24f58bad
3 changed files with 6 additions and 6 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 = [])
|
||||
{
|
||||
$profiler->startRecording('parser');
|
||||
$profiler->startRecording('session');
|
||||
$session = null;
|
||||
|
||||
try {
|
||||
|
|
|
@ -198,7 +198,7 @@ class Profiler implements ContainerInterface
|
|||
$this->performance['network'] = 0;
|
||||
$this->performance['file'] = 0;
|
||||
$this->performance['rendering'] = 0;
|
||||
$this->performance['parser'] = 0;
|
||||
$this->performance['session'] = 0;
|
||||
$this->performance['marktime'] = 0;
|
||||
$this->performance['marktime'] = microtime(true);
|
||||
$this->performance['classcreate'] = 0;
|
||||
|
@ -220,7 +220,7 @@ class Profiler implements ContainerInterface
|
|||
$this->callstack['network'] = [];
|
||||
$this->callstack['file'] = [];
|
||||
$this->callstack['rendering'] = [];
|
||||
$this->callstack['parser'] = [];
|
||||
$this->callstack['session'] = [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -99,14 +99,14 @@ class ProfilerTest extends MockedTest
|
|||
'name' => 'rendering',
|
||||
'functions' => ['test', 'it7'],
|
||||
],
|
||||
'parser' => [
|
||||
'session' => [
|
||||
'timestamp' => time(),
|
||||
'name' => 'parser',
|
||||
'name' => 'session',
|
||||
'functions' => ['test', 'it8'],
|
||||
],
|
||||
'marktime' => [
|
||||
'timestamp' => time(),
|
||||
'name' => 'parser',
|
||||
'name' => 'session',
|
||||
'functions' => ['test'],
|
||||
],
|
||||
// This one isn't set during reset
|
||||
|
|
Loading…
Reference in a new issue