#ifdef __MWERKS__
#include <SIOUX.h>
#define USE_SIOUX
+#if __profile__ == 1
+#include <profiler.h>
+#endif
#endif
#ifdef THINK_C
setvbuf(stderr, (char *)NULL, _IOLBF, BUFSIZ);
#endif
}
+#if __profile__ == 1
+ /* collectSummary or collectDetailed, timebase, #routines, max stack depth */
+ ProfilerInit(collectSummary, bestTimeBase, 2000, 150);
+#endif
}
/*
int status;
{
int keep;
-
+
+#if __profile__ == 1
+ ProfilerDump("\pPython Profiler Results");
+ ProfilerTerm();
+#endif
if ( status )
keep = options.keep_error;
else