Added a comment about the unreferenced PyThreadState.tick_counter

member.
This commit is contained in:
Tim Peters 2004-03-29 02:24:26 +00:00
parent aeaec8d4aa
commit 174175bf3a

View File

@ -74,7 +74,14 @@ typedef struct _ts {
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 gilstate_counter;
PyObject *async_exc; /* Asynchronous exception to raise */