Class: JRuby::Profiler::FlameGraphProfilePrinter

Inherits:
Java::OrgJrubyRuntimeProfileBuiltin::ProfilePrinter
  • Object
show all
Defined in:
lib/jruby/profiler/flame_graph_profile_printer.rb

Constant Summary collapse

VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#printFooter(out) ⇒ Object



21
22
# File 'lib/jruby/profiler/flame_graph_profile_printer.rb', line 21

def printFooter(out)
end

#printHeader(out) ⇒ Object



18
19
# File 'lib/jruby/profiler/flame_graph_profile_printer.rb', line 18

def printHeader(out)
end

#printProfile(out, is_first = false) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/jruby/profiler/flame_graph_profile_printer.rb', line 24

def printProfile(out, is_first=false)
  top_invocation = getTopInvocation
  @methods = self.class.methodData(top_invocation)
  thread_name = getThreadName()
  prefix = ["Thread:#{thread_name}"]
  print_invocation_stack(out, prefix, top_invocation)
end