Class: Flamegraph::FastStackSampler

Inherits:
Object
  • Object
show all
Defined in:
lib/flamegraph/fast_stack_sampler.rb

Class Method Summary collapse

Class Method Details

.collect(fidelity = 0.5) ⇒ Object



2
3
4
5
6
# File 'lib/flamegraph/fast_stack_sampler.rb', line 2

def self.collect(fidelity=0.5)
  FastStack.profile(fidelity) do
    yield
  end
end