Commits

Anonymous committed 4ca32e4

This is Armin Rigo's patch:

[ 617311 ] Tiny profiling info (Psyco #2)

Forward port candidate.

Comments (0)

Files changed (2)

Include/pystate.h

 
     PyObject *dict;
 
+    int tick_counter;
+
     /* XXX signal handlers should also be here */
 
 } PyThreadState;
 
 		if (things_to_do || --tstate->ticker < 0) {
 			tstate->ticker = tstate->interp->checkinterval;
+			tstate->tick_counter++;
 			if (things_to_do) {
 				if (Py_MakePendingCalls() < 0) {
 					why = WHY_EXCEPTION;