It seems that perftools.rb (https://github.com/tmm1/perftools.rb) can collect information about objects, and works with Ruby 1.9. Unfortunately, he is segfaults when I try to use it to track selection of objects!
If the problem is fixed, I will edit this answer.
source share