This is a starting point to get something similar to memprof running in ruby 1.9. So far it adds DTrace probes to ruby 1.9.3, which we output and parse at some point later.
This will generate 2 types of probes so far:
RUBY_OBJ_NEW()
: capture the file, line and type of a newly allocated object.RUBY_CALL()
: capture the function name of every function called. 😱
Partly inspired by this blog post: http://tenderlovemaking.com/2011/06/29/i-want-dtrace-probes-in-ruby.html