public static function dump()
    {
        if (error_reporting() !== E_ALL) {
            return;
        }

        print '<pre class="libvaloa--debug">';
        foreach (self::$data as $v) {
            echo sprintf(
                '<code><strong>%s</strong> <br/> Memory usage %s bytes<br/> %s&#160;[%s]&#160;%s</code><br/>',
                $v->backtrace,
                $v->mu,
                $v->time,
                $v->type,
                (in_array(
                    $v->type,
                    array('array', 'object'),
                    true
                ) ? '<code>'.$v->data.'</code>' : $v->data)
            );
        }
        print '</pre>';

        self::$data = array();
    }
public static function dump()
    {
        if (error_reporting() !== E_ALL) {
            return;
        }

        print '<pre class="libvaloa--debug">';
        foreach (self::$data as $v) {
            echo sprintf(
                '<code><strong>%s</strong> <br/> Memory usage %s bytes<br/> %s&#160;[%s]&#160;%s</code><br/>',
                $v->backtrace,
                $v->mu,
                $v->time,
                $v->type,
                (in_array(
                    $v->type,
                    array('array', 'object'),
                    true
                ) ? '<code>'.$v->data.'</code>' : $v->data)
            );
        }
        print '</pre>';

        self::$data = array();
    }
public static function dump ( ) { if ( error_reporting ( ) !== E_ALL ) { return ; } print '<pre class="libvaloa--debug">' ; foreach ( self :: $ data as $ v ) { echo sprintf ( '<code><strong>%s</strong> <br/> Memory usage %s bytes<br/> %s&#160;[%s]&#160;%s</code><br/>' , $ v -> backtrace , $ v -> mu , $ v -> time , $ v -> type , ( in_array ( $ v -> type , array ( 'array' , 'object' ) , true ) ? '<code>' . $ v -> data . '</code>' : $ v -> data ) ) ; } print '</pre>' ; self :: $ data = array ( ) ; }
Dump debug messages at shutdown.
Dump debug messages at shutdown .