Reviewed the instrumentation to help in tuning the performance

SVN:trunk[2916]
This commit is contained in:
Romain Quetiez
2013-10-15 16:08:43 +00:00
parent 5ea2ac3fef
commit caa621eb04
7 changed files with 214 additions and 84 deletions

View File

@@ -820,7 +820,9 @@ EOF
if ($this->GetOutputFormat() == 'html')
{
$oKPI = new ExecutionKPI();
echo $sHtml;
$oKPI->ComputeAndReport('Echoing ('.round(strlen($sHtml) / 1024).' Kb)');
}
else if ($this->GetOutputFormat() == 'pdf' && $this->IsOutputFormatAvailable('pdf') )
{
@@ -846,6 +848,7 @@ EOF
$oMPDF->Output($sOutputName, 'I');
}
MetaModel::RecordQueryTrace();
ExecutionKPI::ReportStats();
}
public function AddTabContainer($sTabContainer)