This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients brett.cannon, christian.heimes, eric.snow, ncoghlan
Date 2017-09-25.10:32:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506335560.09.0.712138974841.issue31574@psf.upfronthosting.co.za>
In-reply-to
Content
#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).
History
Date User Action Args
2017-09-25 10:32:40christian.heimessetrecipients: + christian.heimes, brett.cannon, ncoghlan, eric.snow
2017-09-25 10:32:40christian.heimessetmessageid: <1506335560.09.0.712138974841.issue31574@psf.upfronthosting.co.za>
2017-09-25 10:32:39christian.heimeslinkissue31574 messages
2017-09-25 10:32:39christian.heimescreate