PHP[005]:function

1
2
3
4
5
<?php
ob_start();
debug_print_backtrace($needBacktrace === 2 ? 1 : 0);
$trace = ob_get_contents();
ob_end_clean();
1
2
3
4
5
6
7
<?php
define('PROJECT_START', microtime(true));
$message = [
'memory_used' => memory_get_usage(),
'running_time' => (microtime(true) - PROJECT_START),
'action_name' => $actionName
];