HardenedBSD/cddl/contrib/dtracetoolkit/Ruby
..
rb_calldist.d
rb_calls.d
rb_calltime.d
rb_cpudist.d
rb_cputime.d
rb_flow.d
rb_flowinfo.d
rb_flowtime.d
rb_funccalls.d
rb_lines.d
rb_malloc.d
rb_objcpu.d
rb_objnew.d
rb_stat.d
rb_syscalls.d
rb_syscolors.d
rb_who.d
Readme

Ruby - DTracing Ruby

   These scripts trace activity of the Ruby programming language, and
   require the DTrace Ruby provider written by Joyent.

   Currently, the DTrace Ruby provider is a seperate download either in
   patch, source or binary form. Start with the "Ruby DTrace" link on
   http://dtrace.joyent.com/, and after getting a version running, the
   scripts in this directory should work.

   Since the DTrace Ruby provider is under development, there is a chance
   that it has changed slightly by the time you are reading this, causing
   these scripts to either break or behave oddly. Firstly, check for newer
   versions of the DTraceToolkit; if it hasn't been updated and you need
   to use these scripts immediately, then updating them shouldn't take
   too long. The following was the state of the provider when these scripts
   were written - check for changes and update the scripts accordingly,

	provider ruby {
	    probe function-entry(class, method, file, lineno);
	    probe function-return(class, method, file, lineno);
	    probe raise(errinfo, file, lineno);
	    probe rescue(file, lineno);
	    probe line(file, lineno);
	    probe gc-begin();
	    probe gc-end();
	    probe object-create-start(object, file, lineno);
	    probe object-create-done(object, file, lineno);
	    probe object-free(object);
	};