Sha256: e9b38f89c9d7f22f052131c87b8b864c07a4cb5d43765961fb2bd1cc9eb8914d

Contents?: true

Size: 710 Bytes

Versions: 50

Compression:

Stored size: 710 Bytes

Contents

$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'jruby-prof'

require File.dirname(__FILE__) + "/pidigits"

compute_pidigits(2000)
compute_pidigits(2000)
compute_pidigits(2000)
compute_pidigits(2000)

s = Time.now
compute_pidigits(2000)
puts "took #{Time.now - s}s without tracing"

s = Time.now
JRubyProf.start
compute_pidigits(2000)
result = JRubyProf.stop

puts "took #{Time.now - s}s with tracing"

JRubyProf.print_flat_text(result, "example/flat.txt")
JRubyProf.print_graph_text(result, "example/graph.txt")
JRubyProf.print_graph_html(result, "example/graph.html")
JRubyProf.print_call_tree(result, "example/call_tree.txt")
JRubyProf.print_tree_html(result, "example/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/test.rb
redcar-dev-0.12.15dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.14dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.13dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.12dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.11dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.10dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.9dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.8dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.7dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.6dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.4dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.3dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.1dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-dev-0.12.0dev-java plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-0.11 plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-0.11.0dev plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-0.10 plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-0.9.2 plugins/redcar_debug/vendor/jruby-prof/example/test.rb
redcar-0.9.1 plugins/redcar_debug/vendor/jruby-prof/example/test.rb