Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56e5991094 | ||
|
|
be483eec6e |
@@ -7,12 +7,11 @@ Stable version
|
||||
```bash
|
||||
composer require --dev rmphp/var-damper
|
||||
```
|
||||
|
||||
|
||||
```bash
|
||||
composer require --dev rmphp/var-damper:"^1.0"
|
||||
```
|
||||
|
||||
|
||||
Dev version contains the latest changes
|
||||
|
||||
```bash
|
||||
|
||||
@@ -131,11 +131,11 @@ class Dumper {
|
||||
public static function addShutdownInfo(array $exData = []) : void {
|
||||
register_shutdown_function(function() use ($exData) {
|
||||
$finish = array_sum(explode(' ', microtime()));
|
||||
$info[] = error_get_last();
|
||||
$info[] = "Время генерации: ".substr((string)($finish-$_SERVER['REQUEST_TIME_FLOAT']), 0, 10)." сек.";
|
||||
$info[] = "Объем памяти: ".round((memory_get_usage()),2)." байт.";
|
||||
$info[] = "Выделено памяти в пике: ".round((memory_get_peak_usage()),2)." байт.";
|
||||
$exData['info'] = array_diff($info, array(null));
|
||||
$exData['info'] = $info;
|
||||
if(error_get_last()) $exData['errors'] = error_get_last();
|
||||
self::dump($exData, "Dump info");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user