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 /Include | |
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 'Include')
-rw-r--r-- | Include/pydtrace.d | 2 | ||||
-rw-r--r-- | Include/pydtrace.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Include/pydtrace.d b/Include/pydtrace.d index 8836055..a6a5e7e 100644 --- a/Include/pydtrace.d +++ b/Include/pydtrace.d @@ -10,6 +10,8 @@ provider python { probe line(const char *, const char *, int); probe gc__start(int); probe gc__done(long); + probe import__find__load__start(const char *); + probe import__find__load__done(const char *, int); }; #pragma D attributes Evolving/Evolving/Common provider python provider diff --git a/Include/pydtrace.h b/Include/pydtrace.h index c43a253..037961d 100644 --- a/Include/pydtrace.h +++ b/Include/pydtrace.h @@ -34,6 +34,8 @@ static inline void PyDTrace_INSTANCE_NEW_START(int arg0) {} static inline void PyDTrace_INSTANCE_NEW_DONE(int arg0) {} static inline void PyDTrace_INSTANCE_DELETE_START(int arg0) {} static inline void PyDTrace_INSTANCE_DELETE_DONE(int arg0) {} +static inline void PyDTrace_IMPORT_FIND_LOAD_START(const char *arg0) {} +static inline void PyDTrace_IMPORT_FIND_LOAD_DONE(const char *arg0, int arg1) {} static inline int PyDTrace_LINE_ENABLED(void) { return 0; } static inline int PyDTrace_FUNCTION_ENTRY_ENABLED(void) { return 0; } @@ -44,6 +46,8 @@ static inline int PyDTrace_INSTANCE_NEW_START_ENABLED(void) { return 0; } static inline int PyDTrace_INSTANCE_NEW_DONE_ENABLED(void) { return 0; } static inline int PyDTrace_INSTANCE_DELETE_START_ENABLED(void) { return 0; } static inline int PyDTrace_INSTANCE_DELETE_DONE_ENABLED(void) { return 0; } +static inline int PyDTrace_IMPORT_FIND_LOAD_START_ENABLED(void) { return 0; } +static inline int PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED(void) { return 0; } #endif /* !WITH_DTRACE */ |