Does there exists a tool for Ruby which records which parts
of code (preferable the nodes in the AST) there has been reached?

Eventually with some statistics on how many times each part
has been executed?

--
Simon Strandgaard