Sha256: 6100991225af353a97af3de80b544b87f0ed2e2ae07ccea9a8fceb3abadd441d
Contents?: true
Size: 564 Bytes
Versions: 50
Compression:
Stored size: 564 Bytes
Contents
require 'java' $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require 'jruby-prof' class Thing def self.foo(a, b) begin Thing2.bar(a, b) rescue end end end class Thing2 def self.bar(a, b) raise "foo" end end result = JRubyProf.profile do 1.times { Thing.foo(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