Ned Batchelder committed 1aee3cc

Remove debug printf of calls to should_trace: it's only called when I thought it was being called.

Comments (0)

Files changed (1)


     int depth;
     // Filenames to record at each level, or NULL if not recording.
     PyObject * tracenames[300];
-    IFDEBUG(int nshould;)
 } Tracer;
 static int
     self->should_trace_cache = NULL;
     self->started = 0;
     self->depth = -1;
-    IFDEBUG(self->nshould = 0;)
     return 0;
         tracename = PyDict_GetItem(self->should_trace_cache, filename);
         if (tracename == NULL) {
             // We've never considered this file before.  Ask should_trace about it.
-            IFDEBUG(self->nshould++;)
             PyObject * args = Py_BuildValue("(O)", filename);
             tracename = PyObject_Call(self->should_trace, args, NULL);
         PyEval_SetTrace(NULL, NULL);
         self->started = 0;
-    IFDEBUG(printf("nshould=%d\n", self->nshould);)
     return Py_BuildValue("");
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.