Branch: Tag:

2002-09-14

2002-09-14 02:46:27 by Martin Stjernholm <mast@lysator.liu.se>

Added some process summaries if --with-internal-profiling is used.

Rev: src/interpret.c:1.265
Rev: src/interpret.h:1.111
Rev: src/main.c:1.152
Rev: src/pike_threadlib.h:1.19
Rev: src/threads.c:1.182

5:   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.151 2002/09/07 21:14:37 grubba Exp $"); + RCSID("$Id: main.c,v 1.152 2002/09/14 02:46:27 mast Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
34:   #include "constants.h"   #include "version.h"   #include "program.h" + #include "rusage.h"      #ifdef AUTO_BIGNUM   #include "bignum.h"
761:    exit_lex();   #endif    + #ifdef INTERNAL_PROFILING +  fprintf (stderr, "Evaluator callback calls: %lu\n", evaluator_callback_calls); + #ifdef PIKE_THREADS +  fprintf (stderr, "Thread yields: %lu\n", thread_yields); + #endif +  fprintf (stderr, "Main thread summary:\n"); +  debug_print_rusage (stderr); + #endif +     exit(num);   }