Message302942
#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). |
|
Date |
User |
Action |
Args |
2017-09-25 10:32:40 | christian.heimes | set | recipients:
+ christian.heimes, brett.cannon, ncoghlan, eric.snow |
2017-09-25 10:32:40 | christian.heimes | set | messageid: <1506335560.09.0.712138974841.issue31574@psf.upfronthosting.co.za> |
2017-09-25 10:32:39 | christian.heimes | link | issue31574 messages |
2017-09-25 10:32:39 | christian.heimes | create | |
|