protected function initialize(): void
    {
        unset($this->functions, $this->humanReadableName, $this->rewindable, $this->memoryUsageReport);

        $this->rewindable =
            new Rewindable(
                $this->iterationNumberGenerator,
                $this->iterations
            );
        $this->humanReadableName = null;
        $this->functions = [];
        $this->functionIndex = 1;
        $this->launched = false;
        $this->resetComment();
        $this->added = new SimpleCounter('added');
        $this->benchmarked = new SimpleCounter('benchmarked');
        $this->memoryUsageReport = MemoryUsage::report();
        $this->doneIterations = 0;
        $this->totalIterations = 0;
        $this->report = (new BenchmarkReport())->buildOn($this);
    }
protected function initialize(): void
    {
        unset($this->functions, $this->humanReadableName, $this->rewindable, $this->memoryUsageReport);

        $this->rewindable =
            new Rewindable(
                $this->iterationNumberGenerator,
                $this->iterations
            );
        $this->humanReadableName = null;
        $this->functions = [];
        $this->functionIndex = 1;
        $this->launched = false;
        $this->resetComment();
        $this->added = new SimpleCounter('added');
        $this->benchmarked = new SimpleCounter('benchmarked');
        $this->memoryUsageReport = MemoryUsage::report();
        $this->doneIterations = 0;
        $this->totalIterations = 0;
        $this->report = (new BenchmarkReport())->buildOn($this);
    }
protected function initialize ( ) : void { unset ( $ this -> functions , $ this -> humanReadableName , $ this -> rewindable , $ this -> memoryUsageReport ) ; $ this -> rewindable = new Rewindable ( $ this -> iterationNumberGenerator , $ this -> iterations ) ; $ this -> humanReadableName = null ; $ this -> functions = [ ] ; $ this -> functionIndex = 1 ; $ this -> launched = false ; $ this -> resetComment ( ) ; $ this -> added = new SimpleCounter ( 'added' ) ; $ this -> benchmarked = new SimpleCounter ( 'benchmarked' ) ; $ this -> memoryUsageReport = MemoryUsage :: report ( ) ; $ this -> doneIterations = 0 ; $ this -> totalIterations = 0 ; $ this -> report = ( new BenchmarkReport ( ) ) -> buildOn ( $ this ) ; }
Resets Benchmark object clear
@throws \Exception
Resets Benchmark object clear