aboutsummaryrefslogtreecommitdiff
path: root/Examples/rb_funccalls_example.txt
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/rb_funccalls_example.txt
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
Add the remaining scripts from the DTraceToolkit, version 0.99, to thevendor/dtracetoolkit/dtracetoolkit-20120512vendor/dtracetoolkit
Notes
Notes: svn path=/vendor/dtracetoolkit/dist/; revision=235368 svn path=/vendor/dtracetoolkit/dtracetoolkit-20120512/; revision=235374; tag=vendor/dtracetoolkit/dtracetoolkit-20120512
Diffstat (limited to 'Examples/rb_funccalls_example.txt')
-rw-r--r--Examples/rb_funccalls_example.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Examples/rb_funccalls_example.txt b/Examples/rb_funccalls_example.txt
new file mode 100644
index 000000000000..27c9c0c071e4
--- /dev/null
+++ b/Examples/rb_funccalls_example.txt
@@ -0,0 +1,25 @@
+This is a list of examples of the usage of rb_funccalls.d.
+
+It reports method calls from all Ruby programs on the system that are
+running with Ruby provider support.
+
+Here we run it while the program Code/Ruby/func_abc.rb is executing.
+
+# rb_funccalls.d
+Tracing... Hit Ctrl-C to end.
+^C
+ FILE CLASS METHOD CALLS
+ func_abc.rb Object func_a 1
+ func_abc.rb Object func_b 1
+ func_abc.rb Object func_c 1
+ func_abc.rb IO write 3
+ func_abc.rb Module method_added 3
+ func_abc.rb Object print 3
+ func_abc.rb Object sleep 3
+
+We can see that during that one Ruby program, Our 3 user-defined methods,
+func_a, func_b and func_c are called once each. Amongst other calls we can
+see that a method from class IO - write, was called three times; probably by
+the print method. If you look at the example program Code/Ruby/func_abc.rb,
+you can see that 'print' is used three times, but IO::write is never directly
+called.