Enabled KPI tracing for the export page... fixed regression on the setup page (rewrote the change in a much more defensive way)

SVN:trunk[3071]
This commit is contained in:
Romain Quetiez
2014-02-04 14:20:20 +00:00
parent 6334370ef0
commit b00aae2536
3 changed files with 10 additions and 1 deletions

View File

@@ -39,7 +39,10 @@ class CLIPage implements Page
{
MetaModel::RecordQueryTrace();
}
ExecutionKPI::ReportStats();
if (class_exists('ExecutionKPI'))
{
ExecutionKPI::ReportStats();
}
}
public function add($sText)

View File

@@ -50,6 +50,9 @@ class CSVPage extends WebPage
if (class_exists('MetaModel'))
{
MetaModel::RecordQueryTrace();
}
if (class_exists('ExecutionKPI'))
{
ExecutionKPI::ReportStats();
}
}

View File

@@ -491,6 +491,9 @@ class WebPage implements Page
if (class_exists('MetaModel'))
{
MetaModel::RecordQueryTrace();
}
if (class_exists('ExecutionKPI'))
{
ExecutionKPI::ReportStats();
}
}