]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Examples/rb_who_example.txt
MFC r368207,368607:
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Examples / rb_who_example.txt
1 These are examples of the results after running the rb_who.d script.
2
3 This script shows which UIDs and PIDs are running Ruby programs with Ruby
4 provider support, and how active they are.  It lists the name of the program,
5 along with the number of lines executed per program as recorded by the line
6 provider.
7
8 Here it runs as three Ruby programs are executed.  Code/Ruby/func_abc.rb runs
9 twice and Code/Ruby/func_slow.rb once.
10
11 # rb_who.d
12 Tracing... Hit Ctrl-C to end.
13 ^C
14       PID    UID      LINES FILE
15    146485      0         12 ./func_abc.rb
16    146486      0         12 ./func_abc.rb
17    146487      0    1200015 ./func_slow.rb
18
19 You can see that func_abc.rb has twelve lines of executable Ruby code, and
20 that func_slow.rb has 100,000x that.