[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: Merged. Thanks! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3d2b407da048b14ba6e5eb6079722a785d210590 by Łukasz Langa (Christian Heimes) in branch 'master': bpo-31574: importlib dtrace (#3749) https://github.com/python/cpython/commit/3d2b407da048b14ba6e5eb6079722a785d210590 --

[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: Amazing! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
Christian Heimes added the comment: Improved script and output for "import asyncio": $ sudo stap import.stp -c "./python -c 'import asyncio'" [1506343527655342994] * Importing '_frozen_importlib_external' ... [1506343527655797118] + Imported '_frozen_importlib_external' in 454us [15063435276563

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
Christian Heimes added the comment: Example output: $ sudo stap import.stp -c "./python -c pass" [1506342342142233574] * Importing '_frozen_importlib_external' ... [1506342342142719538] + Imported '_frozen_importlib_external' [1506342342143260191] * Importing 'zipimport' ... [150634234214332947

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch pull_requests: +3736 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue31574] Add dtrace hook for importlib

2017-09-25 Thread Christian Heimes
New submission from Christian Heimes: #31415 proposed an option to show import timings. The output is primarily designed for humans. I propose to instrument importlib with two dtrace hooks: probe import__find__load__start(const char *) probe import__find__load__done(const char *, int); arg