Commits

Anonymous committed 4ca32e4

This is Armin Rigo's patch:

[ 617311 ] Tiny profiling info (Psyco #2)

Forward port candidate.

  • Participants
  • Parent commits 85062a1
  • Branches 2.2

Comments (0)

Files changed (2)

File Include/pystate.h

 
     PyObject *dict;
 
+    int tick_counter;
+
     /* XXX signal handlers should also be here */
 
 } PyThreadState;

File Python/ceval.c

 
 		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;