mirror of
https://github.com/friendica/friendica
synced 2025-04-29 13:04:23 +02:00
Log the execution time
This commit is contained in:
parent
6eb70bea16
commit
4016a576d5
27 changed files with 67 additions and 6 deletions
|
@ -576,6 +576,7 @@ class App
|
|||
$this->profiler->set(microtime(true), 'classinit');
|
||||
|
||||
$moduleName = $this->args->getModuleName();
|
||||
$page->setLogging($moduleName, $this->args->getMethod());
|
||||
|
||||
try {
|
||||
// Missing DB connection: ERROR
|
||||
|
@ -712,6 +713,7 @@ class App
|
|||
$this->profiler->set(microtime(true) - $timestamp, 'content');
|
||||
if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) {
|
||||
$page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||
$page->logRuntime();
|
||||
} else {
|
||||
$page->exit($response);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue