Class: ZenProfilerProcessor

Inherits:
ProfiledProcessor show all
Defined in:
lib/action_profiler/zenprofiler_processor.rb

Overview

A ProfiledProcessor that uses Ryan Davis’ ZenProfiler.

The ZenProfiler profiler requires Ruby 1.8.3 or better and RubyInline. ZenProfiler can be found at rubyforge.org/frs/?group_id=712

Constant Summary

Constants inherited from ProfiledProcessor

ProfiledProcessor::PROFILERS

Instance Method Summary collapse

Methods inherited from ProfiledProcessor

#initialize, load_default_processor, load_processor, process_args, #profile

Methods inherited from TestProcessor

#initialize, #process

Constructor Details

This class inherits a constructor from ProfiledProcessor

Instance Method Details

:nodoc:



19
20
21
# File 'lib/action_profiler/zenprofiler_processor.rb', line 19

def print_profile(io = STDERR) # :nodoc:
  ZenProfiler.print_profile io
end

#start_profileObject

:nodoc:



11
12
13
# File 'lib/action_profiler/zenprofiler_processor.rb', line 11

def start_profile # :nodoc:
  ZenProfiler.start
end

#stop_profileObject

:nodoc:



15
16
17
# File 'lib/action_profiler/zenprofiler_processor.rb', line 15

def stop_profile # :nodoc:
  ZenProfiler.stop
end