mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Added a comment about the unreferenced PyThreadState.tick_counter
member.
This commit is contained in:
parent
aeaec8d4aa
commit
174175bf3a
1 changed files with 18 additions and 11 deletions
|
|
@ -74,7 +74,14 @@ typedef struct _ts {
|
||||||
|
|
||||||
PyObject *dict;
|
PyObject *dict;
|
||||||
|
|
||||||
|
/* tick_counter is incremented whenever the check_interval ticker
|
||||||
|
* reaches zero. The purpose is to give a useful measure of the number
|
||||||
|
* of interpreted bytecode instructions in a given thread. This
|
||||||
|
* extremely lightweight statistic collector may be of interest to
|
||||||
|
* profilers (like psyco.jit()), although nothing in the core uses it.
|
||||||
|
*/
|
||||||
int tick_counter;
|
int tick_counter;
|
||||||
|
|
||||||
int gilstate_counter;
|
int gilstate_counter;
|
||||||
|
|
||||||
PyObject *async_exc; /* Asynchronous exception to raise */
|
PyObject *async_exc; /* Asynchronous exception to raise */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue