26 $deb = gettimeofday();
27 $tuc1 =
$deb[
"sec"] +
$deb[
"usec"] / 1000000;
33 $msg = sprintf(
"%s : %.03f - %.03f ", $text, ($tuc1 - $ptic) , ($tuc1 - $ptic0));
42 $tsql = count($TSQLDELAY);
43 $trace[] =
dtic($text) .
"#$tsql";
48 if (!function_exists(
'xdebug_get_function_stack'))
return '';
49 $stack = xdebug_get_function_stack();
51 foreach ($stack as $k => $v) {
52 $t[] = sprintf(
"[%s:%d]%s", basename($v[
"file"]) , $v[
"line"], $v[
"function"]);
55 $t = array_slice($t, $l, -$uplevel);
56 return implode(
"/<br>", $t);
67 foreach ($trace as $k => $v) {
69 if (preg_match(
"/(.*):([^-]+)-([^#]+)#(.*)$/", $v, $reg)) {
70 printf(
"%30.30s : %.03f | %02.03f | %d\n", substr($reg[1], -30) , $reg[2], $reg[3], $reg[4]);
dmtrace($text="", $level=3)
stacktrace($level=3, $uplevel=1)