mirror of
https://github.com/python/cpython.git
synced 2024-11-29 12:54:02 +08:00
3d2b407da0
Importlib was instrumented with two dtrace probes to profile import timing. Signed-off-by: Christian Heimes <christian@python.org>
22 lines
969 B
D
22 lines
969 B
D
/* Python DTrace provider */
|
|
|
|
provider python {
|
|
probe function__entry(const char *, const char *, int);
|
|
probe function__return(const char *, const char *, int);
|
|
probe instance__new__start(const char *, const char *);
|
|
probe instance__new__done(const char *, const char *);
|
|
probe instance__delete__start(const char *, const char *);
|
|
probe instance__delete__done(const char *, const char *);
|
|
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
|
|
#pragma D attributes Evolving/Evolving/Common provider python module
|
|
#pragma D attributes Evolving/Evolving/Common provider python function
|
|
#pragma D attributes Evolving/Evolving/Common provider python name
|
|
#pragma D attributes Evolving/Evolving/Common provider python args
|