"Simon Strandgaard" <neoneye / adslhome.dk> schrieb im Newsbeitrag news:pan.2004.02.02.15.01.49.377820 / adslhome.dk... > 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? I don't know such a tool but two things come to mind: - You can use the profiler for timings (alternatively use "benchmark", which has less performance overhead). - You can use set_trace_function() to build the statistics. Regards robert