-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
55 lines (31 loc) · 1.09 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
*** Abandoned: all the features this provides are now built into JRuby, as of 1.6, so this project is abandoned. ***
jruby-prof
==========
Daniel Lucraft
http://danlucraft.com/blog/2010/03/jruby-prof/
This is a clone of ruby-prof for JRuby. It supports all the usual output
modes, plus a call tree output mode.
The only measure mode it currently supports is wall time.
*** NB. This is really new code. It probably has lots of bugs and things. - March 2010 ***
INSTALL
-------
$ jruby -S gem install jruby-prof
USAGE
-----
In your program:
require 'rubygems'
require 'jruby-prof'
result = JRubyProf.profile do
# my stuff
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")
In order to tell JRuby to send events to JRubyProf for processing, you must
run your script with the debug flag on:
$ jruby --debug my_script.rb
LICENSE
-------
MIT