src/Debug/MethodProfile.php
public function tickFunction()
    {
        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
        $stackCount = \count($trace) - \count($this->rootStack) - 1;
        $stackCountInternal = \count($this->funcStack);
        $class = isset($trace[1]['class']) ? $trace[1]['class'] : null;
        if ($stackCount === 0 && $this->data) {
            $function = \ltrim($class.'::'.$trace[1]['function'], ':');
            if ($function !== $this->rootStack[0]) {
                // We've traveled up the stack above where we started
                \array_shift($this->rootStack);
                $this->pushStack($function);
            }
            $this->timeLastTick = \microtime(true);
            return;
        }
        if (\array_filter(array(
            $stackCount < 1,
            $stackCount === $stackCountInternal,        // no change in stack
            \preg_match($this->nsIgnoreRegex, $class)
        ))) {
            $this->timeLastTick = \microtime(true);
            return;
        }
        if ($stackCount > $stackCountInternal) {
            $diff = $stackCount - $stackCountInternal;
            for ($i = $diff; $i > 0; $i--) {
                $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : null;
                if (\preg_match($this->nsIgnoreRegex, $class)) {
                    break;
                }
                $function = \ltrim($class.'::'.$trace[$i]['function'], ':');
                $this->pushStack($function);
            }
        } else {
            $this->popStack();
        }
        $this->timeLastTick = \microtime(true);
    }
public function tickFunction()
    {
        $trace = \debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
        $stackCount = \count($trace) - \count($this->rootStack) - 1;
        $stackCountInternal = \count($this->funcStack);
        $class = isset($trace[1]['class']) ? $trace[1]['class'] : null;
        if ($stackCount === 0 && $this->data) {
            $function = \ltrim($class.'::'.$trace[1]['function'], ':');
            if ($function !== $this->rootStack[0]) {
                // We've traveled up the stack above where we started
                \array_shift($this->rootStack);
                $this->pushStack($function);
            }
            $this->timeLastTick = \microtime(true);
            return;
        }
        if (\array_filter(array(
            $stackCount < 1,
            $stackCount === $stackCountInternal,        // no change in stack
            \preg_match($this->nsIgnoreRegex, $class)
        ))) {
            $this->timeLastTick = \microtime(true);
            return;
        }
        if ($stackCount > $stackCountInternal) {
            $diff = $stackCount - $stackCountInternal;
            for ($i = $diff; $i > 0; $i--) {
                $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : null;
                if (\preg_match($this->nsIgnoreRegex, $class)) {
                    break;
                }
                $function = \ltrim($class.'::'.$trace[$i]['function'], ':');
                $this->pushStack($function);
            }
        } else {
            $this->popStack();
        }
        $this->timeLastTick = \microtime(true);
    }
public function tickFunction ( ) { $ trace = \ debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS ) ; $ stackCount = \ count ( $ trace ) - \ count ( $ this -> rootStack ) - 1 ; $ stackCountInternal = \ count ( $ this -> funcStack ) ; $ class = isset ( $ trace [ 1 ] [ 'class' ] ) ? $ trace [ 1 ] [ 'class' ] : null ; if ( $ stackCount === 0 && $ this -> data ) { $ function = \ ltrim ( $ class . '::' . $ trace [ 1 ] [ 'function' ] , ':' ) ; if ( $ function !== $ this -> rootStack [ 0 ] ) { // We've traveled up the stack above where we started \ array_shift ( $ this -> rootStack ) ; $ this -> pushStack ( $ function ) ; } $ this -> timeLastTick = \ microtime ( true ) ; return ; } if ( \ array_filter ( array ( $ stackCount < 1 , $ stackCount === $ stackCountInternal , // no change in stack \ preg_match ( $ this -> nsIgnoreRegex , $ class ) ) ) ) { $ this -> timeLastTick = \ microtime ( true ) ; return ; } if ( $ stackCount > $ stackCountInternal ) { $ diff = $ stackCount - $ stackCountInternal ; for ( $ i = $ diff ; $ i > 0 ; $ i -- ) { $ class = isset ( $ trace [ $ i ] [ 'class' ] ) ? $ trace [ $ i ] [ 'class' ] : null ; if ( \ preg_match ( $ this -> nsIgnoreRegex , $ class ) ) { break ; } $ function = \ ltrim ( $ class . '::' . $ trace [ $ i ] [ 'function' ] , ':' ) ; $ this -> pushStack ( $ function ) ; } } else { $ this -> popStack ( ) ; } $ this -> timeLastTick = \ microtime ( true ) ; }
Tick function

@return void
Tick function