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); arg0 is the absolute module name as UTF-8 string. arg1 of import_find_load_done probe indicates if the module was found (1) or import failed (0). ---------- components: Interpreter Core messages: 302942 nosy: brett.cannon, christian.heimes, eric.snow, ncoghlan priority: normal severity: normal stage: needs patch status: open title: Add dtrace hook for importlib type: performance versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31574> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com