fix usage of ProfilerConnectionWrapper

This commit is contained in:
Manuel Raynaud
2013-09-30 15:35:46 +02:00
parent f25922c60a
commit fc0cac2cb9
4 changed files with 6 additions and 16 deletions

View File

@@ -49,9 +49,4 @@ if ( false === in_array($request->getClientIp(), $trustedIp)) {
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);
if (strstr($response->headers->get('content-type'), 'text/html') !== false) {
echo "\n<!-- page parsed in : " . (microtime(true) - $thelia->getStartTime())." s. -->";
echo "\n<!-- memory peak : " . memory_get_peak_usage()/1024/1024 . " MiB. -->";
}
$thelia->terminate($request, $response);