def process(request, body, status, headers, exception = nil)
      request.env[ENV_RUNTIME]   = Time.now.to_f - request.env[ENV_RUNTIME_START]
      request.env[ENV_EXCEPTION] = nil

      if !exception.nil?
        request.env[ENV_EXCEPTION] = exception
        WebProfiler::Engine.process_exception(request).finish
      else
        WebProfiler::Engine.process(request, body, status, headers).finish
      end
    end
def process(request, body, status, headers, exception = nil)
      request.env[ENV_RUNTIME]   = Time.now.to_f - request.env[ENV_RUNTIME_START]
      request.env[ENV_EXCEPTION] = nil

      if !exception.nil?
        request.env[ENV_EXCEPTION] = exception
        WebProfiler::Engine.process_exception(request).finish
      else
        WebProfiler::Engine.process(request, body, status, headers).finish
      end
    end
Process the request.

 @param request [Rack::WebProfiler::Request]
 @param body
 @param status [Integer]
 @param headers [Hash]
 @param exception [Exception, nil]

 @return [Rack::Response]