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-dev-0.12.16dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.15dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.14dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.13dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.12dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.11dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.10dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.9dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.8dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.7dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.6dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.4dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.3dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.1dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-dev-0.12.0dev-java plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.11 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.11.0dev plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.10 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.9.2 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb
redcar-0.9.1 plugins/redcar_debug/vendor/jruby-prof/example/test2.rb