Looks like function-entry and function-return give you the C-level frame names for some reason. This was implemented on OS X 10.11 if that makes any difference. I will look at this in the evening, the laptop I'm on now is macOS Sierra with SIP which cripples dtrace. > On Jan 12, 2017, at 5:08 AM, David Cournapeau <cournape at gmail.com> wrote: > > 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 <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 at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: https://mail.python.org/mailman/options/python-dev/lukasz%40langa.pl -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170113/21d58205/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4