Add Echoing for all pages KPI

This commit is contained in:
Eric
2021-06-24 15:12:13 +02:00
parent 2a9ce75db0
commit 671d112452
3 changed files with 22 additions and 16 deletions

View File

@@ -92,7 +92,10 @@ class JsonPage extends WebPage
'scripts' => $aScripts,
];
echo json_encode($aJson);
$oKpi = new ExecutionKPI();
$sJSON = json_encode($aJson);
echo $sJSON;
$oKpi->ComputeAndReport('Echoing ('.round(strlen($sJSON) / 1024).' Kb)');
}
}