<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">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.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 5:08 AM, David Cournapeau <<a href="mailto:cournape@gmail.com" class="">cournape@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class="">1. I built my own python from sources on OS X 10.9, with the --with-dtrace support</div><div class="">2. if I launch `python3.6 -q &` and then `sudo dtrace -l -P python$!`, I get the following output:</div><div class=""><br class=""></div><div class=""> ID PROVIDER MODULE FUNCTION NAME</div><div class=""> 2774 python48084 python3.6 _PyEval_EvalFrameDefault function-entry</div><div class=""> 2775 python48084 python3.6 _PyEval_EvalFrameDefault function-return</div><div class=""> 2776 python48084 python3.6 collect gc-done</div><div class=""> 2777 python48084 python3.6 collect gc-start</div><div class=""> 2778 python48084 python3.6 _PyEval_EvalFrameDefault line</div><div class=""><br class=""></div><div class="">Which looks similar but not the same as the example given in the doc at <a href="https://docs.python.org/dev/howto/instrumentation.html#enabling-the-static-markers" class="">https://docs.python.org/dev/howto/instrumentation.html#enabling-the-static-markers</a><br class=""></div><div class=""><br class=""></div><div class="">3. When I try to test anything with the given call_stack.d example, I can't make it work at all:</div><div class=""><br class=""></div><div class="">"""</div><div class=""># script.py</div><div class="">def start():</div><div class=""> foo()</div><div class=""><br class=""></div><div class="">def foo():</div><div class=""> pass</div><div class=""><br class=""></div><div class="">start()</div><div class="">"""</div><div class=""><br class=""></div><div class="">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 ?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">David</div></div>
_______________________________________________<br class="">Python-Dev mailing list<br class=""><a href="mailto:Python-Dev@python.org" class="">Python-Dev@python.org</a><br class="">https://mail.python.org/mailman/listinfo/python-dev<br class="">Unsubscribe: https://mail.python.org/mailman/options/python-dev/lukasz%40langa.pl<br class=""></div></blockquote></div><br class=""></body></html>