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

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.181 2002/09/14 00:57:27 mast Exp $"); + RCSID("$Id: threads.c,v 1.182 2002/09/14 02:46:27 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
22:   #include "operators.h"   #include "bignum.h"   #include "signal_handler.h" + #include "rusage.h"      #include <errno.h>   
775:    remove_callback(threads_evaluator_callback);    threads_evaluator_callback=0;    } +  + #ifdef INTERNAL_PROFILING +  fprintf (stderr, "Thread usage summary:\n"); +  debug_print_rusage (stderr); + #endif +     /* FIXME: What about threads_disable? */    mt_unlock_interpreter();    th_exit(0);