function profile($dump = false) { $trace = debug_backtrace(); array_pop($trace); $k = reset($trace); Opl_Debug::writeErr($k['function'] . ',' . $k['file'] . ',' . $k['line']); }