diff options
author | Christian Heimes <christian@python.org> | 2017-09-29 22:53:19 (GMT) |
---|---|---|
committer | Ćukasz Langa <lukasz@langa.pl> | 2017-09-29 22:53:19 (GMT) |
commit | 3d2b407da048b14ba6e5eb6079722a785d210590 (patch) | |
tree | 1103d0c570ee9d08b938b783a2731ef50a7bd830 /Doc/howto/instrumentation.rst | |
parent | 574562c5ddb2f0429aab9af762442e6f9a3f26ab (diff) | |
download | cpython-3d2b407da048b14ba6e5eb6079722a785d210590.zip cpython-3d2b407da048b14ba6e5eb6079722a785d210590.tar.gz cpython-3d2b407da048b14ba6e5eb6079722a785d210590.tar.bz2 |
bpo-31574: importlib dtrace (#3749)
Importlib was instrumented with two dtrace probes to profile import timing.
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc/howto/instrumentation.rst')
-rw-r--r-- | Doc/howto/instrumentation.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/howto/instrumentation.rst b/Doc/howto/instrumentation.rst index 7fca9aa..2ac939c 100644 --- a/Doc/howto/instrumentation.rst +++ b/Doc/howto/instrumentation.rst @@ -312,6 +312,17 @@ Available static markers Fires when the Python interpreter finishes a garbage collection cycle. ``arg0`` is the number of collected objects. +.. c:function:: import__find__load__start(str modulename) + + Fires before :mod:`importlib` attempts to find and load the module. + ``arg0`` is the module name. + +.. c:function:: import__find__load__done(str modulename, int found) + + Fires after :mod:`importlib`'s find_and_load function is called. + ``arg0`` is the module name, ``arg1`` indicates if module was + successfully loaded. + SystemTap Tapsets ----------------- |