diff --git a/lib/ruby-prof-speedscope.rb b/lib/ruby-prof-speedscope.rb index 07dac5a..c03ac62 100644 --- a/lib/ruby-prof-speedscope.rb +++ b/lib/ruby-prof-speedscope.rb @@ -17,7 +17,7 @@ def print_threads @result.threads.each do |thread| thread.methods.each_with_index do |method, idx| next if frames.has_key?(method.object_id) - name = "#{method.klass_name}##{method.method_name}" + name = "#{method.klass_name}##{method.method_name.to_s.gsub('"', '\"')}" name += " *recursive*" if method.recursive? @output << <<~FRAME {