rbtrace is built on ruby's event hook api, which provides events when ruby and C extension methods are called, and when they return.
python offers a very similar event hook api: http://www.doughellmann.com/PyMOTW/sys/tracing.html
python offers a very similar event hook api: http://www.doughellmann.com/PyMOTW/sys/tracing.html
I used Python for 6 years and had no idea about sys.settrace()