summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/dtracetoolkit/Examples/rb_who_example.txt
blob: 35c0bb70edefd829751da0418d04f0163ed869ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
These are examples of the results after running the rb_who.d script.

This script shows which UIDs and PIDs are running Ruby programs with Ruby
provider support, and how active they are.  It lists the name of the program,
along with the number of lines executed per program as recorded by the line
provider.

Here it runs as three Ruby programs are executed.  Code/Ruby/func_abc.rb runs
twice and Code/Ruby/func_slow.rb once.

# rb_who.d
Tracing... Hit Ctrl-C to end.
^C
      PID    UID      LINES FILE
   146485      0         12 ./func_abc.rb
   146486      0         12 ./func_abc.rb
   146487      0    1200015 ./func_slow.rb

You can see that func_abc.rb has twelve lines of executable Ruby code, and
that func_slow.rb has 100,000x that.
OpenPOWER on IntegriCloud