1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-05 07:37:37 +02:00

even more testing

This commit is contained in:
Mikael Roos
2016-08-08 11:19:53 +02:00
parent 493ed45311
commit 689865a8b2
10 changed files with 56 additions and 29 deletions

View File

@@ -19,7 +19,8 @@ function trace($msg)
return;
}
$details = ":" . (string) round((microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"]), 6) . "ms";
$timer = number_format((microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"]), 6);
$details = "{$timer}ms";
$details .= ":" . round(memory_get_peak_usage()/1024/1024, 3) . "MB";
$details .= ":" . count(get_included_files());
file_put_contents($file, "$details:$msg\n", FILE_APPEND);