From: "Chamila W." Date: 2013-06-23T14:54:25+09:00 Subject: Re: Ruby DTrace (on OSX Leopard) Tim Becker wrote in post #579367: > Has anyone had any luck getting it to run? I was able to run it by referring to http://www.ploughthroughruby.co.uk/2013/04/10/dtrace-probes-in-ruby-2.html/. When you are running it remember to change sudo dtrace -c 'ruby test.rb' -Zn 'ruby*::method-entry { @[copyinstr(arg0)] = count(); }' with ruby*:::method-entry > > Neither Instruments nor dtrace -l shows up any of the Joyent probes > that are supposed to be there. I guess I'm just doing something wrong, > but I can only find little blog articles with people cheering that OSX > contains DTrace, no examples of it actually in use. > > Running the example script in /Developer/Examples/Ruby/DTrace yield me: > > dtrace: failed to compile script ./print_calls.d: line 4: probe > description ruby*:::function-entry does not match any probes > > Any ideas? > -tim -- Posted via http://www.ruby-forum.com/.