mirror of
https://github.com/friendica/friendica
synced 2025-04-29 17:44:24 +02:00
[rendertime] Timing problem during addon config read
This commit is contained in:
parent
2d91d5c3d9
commit
3aae84edd1
2 changed files with 19 additions and 2 deletions
|
@ -42,6 +42,18 @@ class Profiler implements ContainerInterface
|
|||
return $this->rendertime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the enabling of the current profiler
|
||||
*
|
||||
* @param bool $enabled
|
||||
* @param bool $renderTime
|
||||
*/
|
||||
public function update($enabled = false, $renderTime = false)
|
||||
{
|
||||
$this->enabled = $enabled;
|
||||
$this->rendertime = $renderTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $enabled True, if the Profiler is enabled
|
||||
* @param bool $renderTime True, if the Profiler should measure the whole rendertime including functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue