added performance messurements
This commit is contained in:
parent
7c74baf9d2
commit
05afe1c3bb
@ -4,7 +4,6 @@ namespace ManiaControl\Callbacks;
|
|||||||
|
|
||||||
use ManiaControl\General\UsageInformationAble;
|
use ManiaControl\General\UsageInformationAble;
|
||||||
use ManiaControl\General\UsageInformationTrait;
|
use ManiaControl\General\UsageInformationTrait;
|
||||||
use ManiaControl\Logger;
|
|
||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -242,8 +241,9 @@ class CallbackManager implements UsageInformationAble {
|
|||||||
$timings[$callback[0]] = microtime(true) - $time1;
|
$timings[$callback[0]] = microtime(true) - $time1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($fulltime = ((microtime(true) - $startTime) > 1)){
|
$fullTime = microtime(true) - $startTime;
|
||||||
$this->maniaControl->getErrorHandler()->triggerDebugNotice(json_encode(array("Long Loop Detected: " .$fulltime, $timings)));
|
if ($fullTime > 1) {
|
||||||
|
$this->maniaControl->getErrorHandler()->triggerDebugNotice(json_encode(array("Long Loop Detected: " . $fullTime , $timings)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user