Sha256: 57807fdf5cf701d89991a3c6f4d7d88714e561f8c20983bd79818fc581f4fc94

Contents?: true

Size: 531 Bytes

Versions: 50

Compression:

Stored size: 531 Bytes

Contents

require 'rubygems'
require 'jruby-prof'

class Thing
  def self.foo(a, b)
    a + b
  end
end

class Thing2
  def self.bar(a, b)
    a * b
  end
end

result = JRubyProf.profile do
  Thread.new do 
    100.times {
      Thing.foo(1, 2)
    }
  end
  100.times { Thing2.bar(1, 2) }
end

JRubyProf.print_flat_text(result, "flat.txt")
JRubyProf.print_graph_text(result, "graph.txt")
JRubyProf.print_graph_html(result, "graph.html")
JRubyProf.print_call_tree(result, "call_tree.txt")
JRubyProf.print_tree_html(result, "call_tree.html")

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
redcar-0.9.0 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.8.1 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.8 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.7 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.6.1 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.6 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.6.1dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.1 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.6dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.5dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.4dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.3dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.2dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.5.1dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.4.1 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.4 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.3.10.1dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.3.10.0dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.3.9 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb