PEP 669: minor clarifications (#2799)
This commit is contained in:
parent
8297df43bb
commit
94cce31230
|
@ -60,6 +60,8 @@ Activating events and registering callback functions are independent of each oth
|
|||
Both registering callbacks and activating events are done on a per-tool basis.
|
||||
It is possible to have multiple tools that respond to different sets of events.
|
||||
|
||||
Note that, unlike ``sys.settrace()``, events and callbacks are per interpreter, not per thread.
|
||||
|
||||
Events
|
||||
------
|
||||
|
||||
|
@ -319,7 +321,7 @@ performance. Experiments show between 1 and 2% speedup from not supporting
|
|||
|
||||
The performance of ``sys.settrace()`` will be worse.
|
||||
The performance of ``sys.setprofile()`` should be better.
|
||||
However, by the tools relying on ``sys.settrace()`` and ``sys.setprofile()``
|
||||
However, tools relying on ``sys.settrace()`` and ``sys.setprofile()``
|
||||
can be made a lot faster by using the API provided by this PEP.
|
||||
|
||||
If a small set of events are active, e.g. for a debugger, then the overhead
|
||||
|
|
Loading…
Reference in New Issue