Module: ActiveProfiling::RubyProfiler
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveProfiling
- Defined in:
- lib/active-profiling/ruby_profiler.rb,
lib/active-profiling/ruby_profiler/output.rb
Defined Under Namespace
Classes: Output
Instance Method Summary collapse
-
#ruby_profiler(*args, &block) ⇒ Object
Runs a block of Ruby code through ruby-prof and returns the profiler output.
Instance Method Details
#ruby_profiler(*args, &block) ⇒ Object
Runs a block of Ruby code through ruby-prof and returns the profiler output. Returns an Array containing the the result of the block yielded and the profiler data.
For details on the various options, see the default options located in ActiveProfiling::Railtie::DEFAULT_PROFILER_OPTIONS.
14 15 16 |
# File 'lib/active-profiling/ruby_profiler.rb', line 14 def ruby_profiler(*args, &block) Output.new(*args).run(&block) end |