class Object

Public Instance Methods

run_flamegraph() { || ... } click to toggle source
# File lib/stimulus_reflex_profiler/flamegraph.rb, line 4
def run_flamegraph
  html = Flamegraph.generate(nil, fidelity: 0.5) do
    yield
  end

  StimulusReflexProfiler::Flamegraph::Output.instance.content = html
end