Sha256: 04ee43a1547b1fcd53909580f175da9252dc5f832b2659e9cdf70d98e475eccd

Contents?: true

Size: 386 Bytes

Versions: 9

Compression:

Stored size: 386 Bytes

Contents

module Rack::PerftoolsProfiler

  class ReturnData < ProfileDataAction

    def initialize(*args)
      super
      check_printer_arg
    end

    def response
      if @profiler.profiling?
        [400, {'Content-Type' => 'text/plain'}, ['No profiling data available.']]
      else
        @middleware.profiler_data_response(@profiler.data(@data_params))
      end
    end

  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rack-perftools_profiler-0.3.0 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.2.1 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.2.0 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.1.1 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.1.0 lib/rack/perftools_profiler/return_data.rb
aleksi-rack-perftools_profiler-0.0.4 lib/rack/perftools_profiler/return_data.rb
aleksi-rack-perftools_profiler-0.0.3 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.0.2 lib/rack/perftools_profiler/return_data.rb
rack-perftools_profiler-0.0.1 lib/rack/perftools_profiler/return_data.rb