Module: DiyProf

Defined in:
lib/diy_prof/lib/diy_prof.rb,
lib/diy_prof/lib/diy_prof/tracer.rb,
lib/diy_prof/lib/diy_prof/version.rb,
lib/diy_prof/lib/diy_prof/dot_reporter.rb

Defined Under Namespace

Modules: TimeHelpers Classes: CallInfo, DotReporter, MethodInfo, Tracer

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.start_profilingObject



7
8
9
10
# File 'lib/diy_prof/lib/diy_prof.rb', line 7

def self.start_profiling
  @tracer = Tracer.new(DotReporter.new)
  @tracer.enable
end

.stop_profilingObject



12
13
14
15
# File 'lib/diy_prof/lib/diy_prof.rb', line 12

def self.stop_profiling
  @tracer.disable
  @tracer.result
end