Ejemplo n.º 1
0
 public static function line()
 {
     $mem = memory_get_usage();
     $diffmem = memory_get_usage() - self::$lastmem;
     self::$lastmem = $mem;
     $args = func_get_args();
     echo implode(" ", $args) . " [" . number_format($mem / 1024, 2) . "KB / " . number_format($diffmem / 1024, 2) . "KB]\n";
 }