Ruby DTrace (on OSX Leopard)

Discussion in 'Ruby' started by Tim Becker, Oct 30, 2007.

  1. Tim Becker

    Tim Becker Guest

    Has anyone had any luck getting it to run?

    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
    Tim Becker, Oct 30, 2007
    #1
    1. Advertising

  2. Tim Becker

    Tim Becker Guest

    > 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.



    Preliminary experiments show that I need to hook dtrace up with a
    running ruby instance. D'uh.
    Maybe I should read the documentation... E.g. this:

    dtrace -s print_memory_usage.d -p <pid of ruby interpreter>

    works, in case someone else couldn't figure it out.
    -tim
    Tim Becker, Oct 30, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Van Dyk

    dtrace + ruby = super profiling?

    Joe Van Dyk, Sep 8, 2005, in forum: Ruby
    Replies:
    1
    Views:
    71
    Wilson Bilkovich
    Sep 9, 2005
  2. Dick Davies

    DTrace and Ruby

    Dick Davies, May 7, 2007, in forum: Ruby
    Replies:
    1
    Views:
    91
    John Carter
    May 8, 2007
  3. Wincent Colaiuta

    DTrace segfaults on Leopard

    Wincent Colaiuta, Jan 17, 2008, in forum: Ruby
    Replies:
    6
    Views:
    118
    Eric Kustarz
    Jan 6, 2009
  4. Pat Maddox

    Building Ruby with dtrace on OS X

    Pat Maddox, Apr 3, 2008, in forum: Ruby
    Replies:
    0
    Views:
    95
    Pat Maddox
    Apr 3, 2008
  5. Matthias Tarasiewicz
    Replies:
    4
    Views:
    215
    Matthias Tarasiewicz
    Feb 2, 2009
Loading...

Share This Page