Sha256: 368d512bdc209aa747f26e664f14a270a1b9e952f0660deb1d5afda2d9ae8800

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

module Rack::PerftoolsProfiler

  class StartProfiling < Action

    def act
      @profiler.start
    end

    def response
      [200, {'Content-Type' => 'text/plain'}, 
       [<<-EOS
Profiling is now enabled.
Visit the URLS that should be profiled.
When you are finished, visit /__stop__, then visit /__data__ to view the results.
EOS
       ]]
    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/start_profiling.rb
rack-perftools_profiler-0.2.1 lib/rack/perftools_profiler/start_profiling.rb
rack-perftools_profiler-0.2.0 lib/rack/perftools_profiler/start_profiling.rb
rack-perftools_profiler-0.1.1 lib/rack/perftools_profiler/start_profiling.rb
rack-perftools_profiler-0.1.0 lib/rack/perftools_profiler/start_profiling.rb
aleksi-rack-perftools_profiler-0.0.4 lib/rack/perftools_profiler/start_profiling.rb
aleksi-rack-perftools_profiler-0.0.3 lib/rack/perftools_profiler/start_profiling.rb
rack-perftools_profiler-0.0.2 lib/rack/perftools_profiler/start_profiling.rb
rack-perftools_profiler-0.0.1 lib/rack/perftools_profiler/start_profiling.rb