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

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

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

    GCC Broken on Leopard (OSX)

    Imok20, Jan 19, 2008, in forum: C Programming
    Replies:
    11
    Views:
    643
    CBFalconer
    Jan 21, 2008
  2. Replies:
    3
    Views:
    2,286
  3. john skaller

    linking on OSX Snow Leopard

    john skaller, Oct 24, 2010, in forum: Python
    Replies:
    0
    Views:
    297
    john skaller
    Oct 24, 2010
  4. Joe Van Dyk

    dtrace + ruby = super profiling?

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

    DTrace and Ruby

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

    DTrace segfaults on Leopard

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

    Building Ruby with dtrace on OS X

    Pat Maddox, Apr 3, 2008, in forum: Ruby
    Replies:
    0
    Views:
    178
    Pat Maddox
    Apr 3, 2008
  8. Matthias Tarasiewicz
    Replies:
    4
    Views:
    319
    Matthias Tarasiewicz
    Feb 2, 2009
Loading...