public static function mark($label = '')
    {
        $_this = self::i();
        if (!$_this->isDebug()) {
            return false;
        }

        $current = $_this->_microtime() - $_this->_start;
        $memory  = self::_getMemory();
        $trace   = debug_backtrace();

        $markInfo = array(
            'time'       => $current,
            'timeDiff'   => $current - $_this->_prevTime,
            'memory'     => $memory,
            'memoryDiff' => $memory - $_this->_prevMemory,
            'trace'      => $_this->_getSourcePath($trace, true),
            'label'      => $label,
        );

        $_this->_bufferInfo[] = $markInfo;

        if ((int)self::$_config['profiler']['render'] & self::PROFILER_RENDER_FILE) {
            $_this->log(self::_profilerFormatMark($markInfo), 'mark #');
        }

        $_this->_prevTime   = $current;
        $_this->_prevMemory = $memory;

        return $_this;
    }
public static function mark($label = '')
    {
        $_this = self::i();
        if (!$_this->isDebug()) {
            return false;
        }

        $current = $_this->_microtime() - $_this->_start;
        $memory  = self::_getMemory();
        $trace   = debug_backtrace();

        $markInfo = array(
            'time'       => $current,
            'timeDiff'   => $current - $_this->_prevTime,
            'memory'     => $memory,
            'memoryDiff' => $memory - $_this->_prevMemory,
            'trace'      => $_this->_getSourcePath($trace, true),
            'label'      => $label,
        );

        $_this->_bufferInfo[] = $markInfo;

        if ((int)self::$_config['profiler']['render'] & self::PROFILER_RENDER_FILE) {
            $_this->log(self::_profilerFormatMark($markInfo), 'mark #');
        }

        $_this->_prevTime   = $current;
        $_this->_prevMemory = $memory;

        return $_this;
    }
public static function mark ( $ label = '' ) { $ _this = self :: i ( ) ; if ( ! $ _this -> isDebug ( ) ) { return false ; } $ current = $ _this -> _microtime ( ) - $ _this -> _start ; $ memory = self :: _getMemory ( ) ; $ trace = debug_backtrace ( ) ; $ markInfo = array ( 'time' => $ current , 'timeDiff' => $ current - $ _this -> _prevTime , 'memory' => $ memory , 'memoryDiff' => $ memory - $ _this -> _prevMemory , 'trace' => $ _this -> _getSourcePath ( $ trace , true ) , 'label' => $ label , ) ; $ _this -> _bufferInfo [ ] = $ markInfo ; if ( ( int ) self :: $ _config [ 'profiler' ] [ 'render' ] & self :: PROFILER_RENDER_FILE ) { $ _this -> log ( self :: _profilerFormatMark ( $ markInfo ) , 'mark #' ) ; } $ _this -> _prevTime = $ current ; $ _this -> _prevMemory = $ memory ; return $ _this ; }
Output a time mark
The mark is returned as text current profiler status
@param   string $label A label for the time mark
@return  JBDump
Output a time mark The mark is returned as text current profiler status