class RubyProf::FlameGraphPrinter
def flame_data_json
def flame_data_json threads = @result.threads.map do |thread| { id: thread.id, fiber_id: thread.fiber_id, total_time: thread.total_time, data: build_flame_data(thread.call_tree) } end # Disable JSON nesting limit (default 100) so deep call trees serialize. # See https://github.com/ruby-prof/ruby-prof/issues/353 JSON.generate(threads, max_nesting: false) end