Hi,

I was excited to see official dtrace support for python 3.6.0 on OS X, but
I have not been able to make it work:

1. I built my own python from sources on OS X 10.9,  with the --with-dtrace
support
2. if I launch `python3.6 -q &` and then `sudo dtrace -l -P python$!`, I
get the following output:

   ID   PROVIDER            MODULE                          FUNCTION NAME
 2774 python48084         python3.6          _PyEval_EvalFrameDefault
function-entry
 2775 python48084         python3.6          _PyEval_EvalFrameDefault
function-return
 2776 python48084         python3.6                           collect
gc-done
 2777 python48084         python3.6                           collect
gc-start
 2778 python48084         python3.6          _PyEval_EvalFrameDefault line

Which looks similar but not the same as the example given in the doc at
https://docs.python.org/dev/howto/instrumentation.html#enabling-the-static-markers

3. When I try to test anything with the given call_stack.d example, I can't
make it work at all:

"""
# script.py
def start():
    foo()

def foo():
    pass

start()
"""

I am not very familiar with dtrace, so maybe I a missing a step, there is a
documentation bug, or it depends on which OS X version you are using ?

Thanks,
David
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to