public function enter(RequestInterface $request = null)
    {
        $this->starts = [
            'wt' => microtime(true),
            'mu' => memory_get_usage(),
            'pmu' => memory_get_peak_usage(),
        ];

        if ($request) {
            $this->request = [
                'method' => $request->getMethod(),
                'url' => (string)$request->getUri(),
                'headers' => $request->getHeaders(),
                'body' => (string)$request->getBody()
            ];
        }
    }
public function enter(RequestInterface $request = null)
    {
        $this->starts = [
            'wt' => microtime(true),
            'mu' => memory_get_usage(),
            'pmu' => memory_get_peak_usage(),
        ];

        if ($request) {
            $this->request = [
                'method' => $request->getMethod(),
                'url' => (string)$request->getUri(),
                'headers' => $request->getHeaders(),
                'body' => (string)$request->getBody()
            ];
        }
    }
public function enter ( RequestInterface $ request = null ) { $ this -> starts = [ 'wt' => microtime ( true ) , 'mu' => memory_get_usage ( ) , 'pmu' => memory_get_peak_usage ( ) , ] ; if ( $ request ) { $ this -> request = [ 'method' => $ request -> getMethod ( ) , 'url' => ( string ) $ request -> getUri ( ) , 'headers' => $ request -> getHeaders ( ) , 'body' => ( string ) $ request -> getBody ( ) ] ; } }
Starts the profiling.
@param RequestInterface $request
Starts the profiling .