class Busted::Profiler::Default
Attributes
block[R]
report[R]
trace[R]
Public Class Methods
new(options = {}, &block)
click to toggle source
# File lib/busted/profiler/default.rb, line 14 def initialize(options = {}, &block) fail LocalJumpError, "no block given" unless block @trace = options.fetch :trace, false @block = block @report = {} end
run(options = {}, &block)
click to toggle source
# File lib/busted/profiler/default.rb, line 10 def self.run(options = {}, &block) new(options, &block).run end
Public Instance Methods
run()
click to toggle source
# File lib/busted/profiler/default.rb, line 22 def run start_tracer start_counter block.call finish_counter finish_tracer report end