Module: Rack::PerftoolsProfiler
- Defined in:
- lib/rack/perftools_profiler/profiler_middleware.rb,
lib/rack/perftools_profiler/profile_data_action.rb,
lib/rack/perftools_profiler/call_app_directly.rb,
lib/rack/perftools_profiler/start_profiling.rb,
lib/rack/perftools_profiler/stop_profiling.rb,
lib/rack/perftools_profiler/profile_once.rb,
lib/rack/perftools_profiler/return_data.rb,
lib/rack/perftools_profiler/profiler.rb,
lib/rack/perftools_profiler/action.rb,
lib/rack/perftools_profiler.rb
Defined Under Namespace
Classes: Action, CallAppDirectly, ProfileDataAction, ProfileOnce, Profiler, ProfilerArgumentError, ProfilerMiddleware, ProfilingError, ReturnData, StartProfiling, StopProfiling
Class Method Summary collapse
-
.clear_data ⇒ Object
helpers for testing.
- .new(app, options = {}) ⇒ Object
- .with_profiling_off(app, options = {}) ⇒ Object
Class Method Details
.clear_data ⇒ Object
helpers for testing
112 113 114 |
# File 'lib/rack/perftools_profiler.rb', line 112 def self.clear_data Profiler.clear_data end |
.new(app, options = {}) ⇒ Object
107 108 109 |
# File 'lib/rack/perftools_profiler.rb', line 107 def self.new(app, ={}) ProfilerMiddleware.new(app, ) end |
.with_profiling_off(app, options = {}) ⇒ Object
116 117 118 119 120 |
# File 'lib/rack/perftools_profiler.rb', line 116 def self.with_profiling_off(app, = {}) instance = ProfilerMiddleware.new(app, ) instance.force_stop instance end |