mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°6436 - Integrate Performance Audit pre requisite in iTop Pro 2.7.9 (avoid unnecessary calls)
This commit is contained in:
@@ -339,6 +339,10 @@ class ExecutionKPI
|
|||||||
{
|
{
|
||||||
global $fItopStarted;
|
global $fItopStarted;
|
||||||
|
|
||||||
|
if (!self::IsEnabled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$aNewEntry = null;
|
$aNewEntry = null;
|
||||||
|
|
||||||
$fStarted = $this->m_fStarted;
|
$fStarted = $this->m_fStarted;
|
||||||
@@ -402,6 +406,9 @@ class ExecutionKPI
|
|||||||
|
|
||||||
public function ComputeStatsForExtension($object, $sMethod)
|
public function ComputeStatsForExtension($object, $sMethod)
|
||||||
{
|
{
|
||||||
|
if (!self::IsEnabled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$sSignature = ModuleService::GetInstance()->GetModuleMethodSignature($object, $sMethod);
|
$sSignature = ModuleService::GetInstance()->GetModuleMethodSignature($object, $sMethod);
|
||||||
if (utils::StartsWith($sSignature, '[')) {
|
if (utils::StartsWith($sSignature, '[')) {
|
||||||
$this->ComputeStats('Extension', $sSignature);
|
$this->ComputeStats('Extension', $sSignature);
|
||||||
@@ -410,6 +417,10 @@ class ExecutionKPI
|
|||||||
|
|
||||||
public function ComputeStats($sOperation, $sArguments)
|
public function ComputeStats($sOperation, $sArguments)
|
||||||
{
|
{
|
||||||
|
if (!self::IsEnabled()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (self::$m_bEnabled_Duration)
|
if (self::$m_bEnabled_Duration)
|
||||||
{
|
{
|
||||||
$fStopped = MyHelpers::getmicrotime();
|
$fStopped = MyHelpers::getmicrotime();
|
||||||
|
|||||||
Reference in New Issue
Block a user