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 JSON.generate(threads) end