Branch: Tag:

2004-05-20

2004-05-20 20:13:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Various --with-profiling fixes:
* Now uses get_cpu_time() instead of gethrtime().
* Added PROFILING_DEBUG and corresponding DO_IF_PROFILING_DEBUG() (verbose).
* Renamed Pike_interpreter.time_base to Pike_interpreter.unlocked_time.
* Removed unused macro low_return_profiling().
* Profiling information is now updated by POP_PIKE_FRAME().
* Fixed various bugs causing negative self_time accounting.
* Added PIKE_DEBUG checks verifying positive profiling accounting.
* Removed unused field time_base from struct thread_state.

Rev: src/apply_low.h:1.28
Rev: src/builtin_functions.c:1.558
Rev: src/global.h:1.99
Rev: src/interpret.c:1.349
Rev: src/interpret.h:1.152
Rev: src/interpret_functions.h:1.168
Rev: src/pike_threadlib.h:1.54
Rev: src/program.h:1.203
Rev: src/threads.h:1.128

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: global.h,v 1.98 2004/05/11 08:48:16 grubba Exp $ + || $Id: global.h,v 1.99 2004/05/20 20:13:38 grubba Exp $   */      #ifndef GLOBAL_H
507:      /* Used in more than one place, better put it here */    - #if defined(PROFILING) && defined(HAVE_GETHRTIME) + #if defined(PROFILING)   #define DO_IF_PROFILING(X) X   #else   #define DO_IF_PROFILING(X)   #endif    -  + /* #define PROFILING_DEBUG */    -  + #ifdef PROFILING_DEBUG + #define DO_IF_PROFILING_DEBUG(X) X + #else /* !PROFILING_DEBUG */ + #define DO_IF_PROFILING_DEBUG(X) + #endif /* PROFILING_DEBUG */    -  +  +    #endif