public function log($string, $context = []) {
        if (!$this->enabled) {
            return;
        }

        $this->logger->info($string, [
                'time' => static::formatTime(static::getTime() - $this->start_time),
                'memory' => static::formatSize(memory_get_usage()),
                'memory_bytes' => memory_get_usage(),
                'time_microtime' => static::getTime() - $this->start_time,
            ] + $context);
    }
public function log($string, $context = []) {
        if (!$this->enabled) {
            return;
        }

        $this->logger->info($string, [
                'time' => static::formatTime(static::getTime() - $this->start_time),
                'memory' => static::formatSize(memory_get_usage()),
                'memory_bytes' => memory_get_usage(),
                'time_microtime' => static::getTime() - $this->start_time,
            ] + $context);
    }
public function log ( $ string , $ context = [ ] ) { if ( ! $ this -> enabled ) { return ; } $ this -> logger -> info ( $ string , [ 'time' => static :: formatTime ( static :: getTime ( ) - $ this -> start_time ) , 'memory' => static :: formatSize ( memory_get_usage ( ) ) , 'memory_bytes' => memory_get_usage ( ) , 'time_microtime' => static :: getTime ( ) - $ this -> start_time , ] + $ context ) ; }
Logs time and memory usage

@param string $string A string to identify the entry in the log
@param array $context Arbitrary data to log
Logs time and memory usage