public static function finish() {

        if(empty(self::$profiler) === false) {

            self::$profiler = array_merge([
                'elapsed'   =>  self::getTime(time() - self::$profiler['start']),
                'memory'    =>  self::getMemoryUsage(),
                'cpu'       =>  self::getUsageCPU(),
                'stack'     =>  self::getStackCalls()
            ], self::$profiler);

            unset(self::$profiler['start']);
        }
    }
public static function finish() {

        if(empty(self::$profiler) === false) {

            self::$profiler = array_merge([
                'elapsed'   =>  self::getTime(time() - self::$profiler['start']),
                'memory'    =>  self::getMemoryUsage(),
                'cpu'       =>  self::getUsageCPU(),
                'stack'     =>  self::getStackCalls()
            ], self::$profiler);

            unset(self::$profiler['start']);
        }
    }
public static function finish ( ) { if ( empty ( self :: $ profiler ) === false ) { self :: $ profiler = array_merge ( [ 'elapsed' => self :: getTime ( time ( ) - self :: $ profiler [ 'start' ] ) , 'memory' => self :: getMemoryUsage ( ) , 'cpu' => self :: getUsageCPU ( ) , 'stack' => self :: getStackCalls ( ) ] , self :: $ profiler ) ; unset ( self :: $ profiler [ 'start' ] ) ; } }
Finish collect profiling data
Finish collect profiling data