Module: Rack::PerftoolsProfiler
- Defined in:
- lib/rack/perftools_profiler/version.rb,
lib/rack/perftools_profiler/profiler.rb,
lib/rack/perftools_profiler/return_data.rb,
lib/rack/perftools_profiler/profile_once.rb,
lib/rack/perftools_profiler/stop_profiling.rb,
lib/rack/perftools_profiler/start_profiling.rb,
lib/rack/perftools_profiler/call_app_directly.rb,
lib/rack/perftools_profiler/profile_data_action.rb,
lib/rack/perftools_profiler/profiler_middleware.rb,
lib/rack/perftools_profiler/return_password_error.rb,
lib/rack/perftools_profiler/action.rb,
lib/rack/perftools_profiler/utils.rb,
lib/rack/perftools_profiler.rb
Defined Under Namespace
Modules: Utils Classes: Action, CallAppDirectly, ProfileDataAction, ProfileOnce, Profiler, ProfilerArgumentError, ProfilerMiddleware, ProfilingError, ReturnData, ReturnPasswordError, StartProfiling, StopProfiling
Constant Summary collapse
- VERSION =
"0.5.1"
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
24 25 26 |
# File 'lib/rack/perftools_profiler.rb', line 24 def self.clear_data Profiler.clear_data end |
.new(app, options = {}) ⇒ Object
19 20 21 |
# File 'lib/rack/perftools_profiler.rb', line 19 def self.new(app, ={}) ProfilerMiddleware.new(app, ) end |
.with_profiling_off(app, options = {}) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/rack/perftools_profiler.rb', line 28 def self.with_profiling_off(app, = {}) clear_data instance = ProfilerMiddleware.new(app, ) instance.force_stop instance end |