summaryrefslogtreecommitdiff
path: root/Doc/howto
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2017-09-30 00:53:19 +0200
committerƁukasz Langa <lukasz@langa.pl>2017-09-29 15:53:19 -0700
commit3d2b407da048b14ba6e5eb6079722a785d210590 (patch)
tree1103d0c570ee9d08b938b783a2731ef50a7bd830 /Doc/howto
parent574562c5ddb2f0429aab9af762442e6f9a3f26ab (diff)
downloadcpython-git-3d2b407da048b14ba6e5eb6079722a785d210590.tar.gz
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')
-rw-r--r--Doc/howto/instrumentation.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/howto/instrumentation.rst b/Doc/howto/instrumentation.rst
index 7fca9aac7b..2ac939c530 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
-----------------