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: threads.h,v 1.127 2003/03/31 17:44:27 grubba Exp $ + || $Id: threads.h,v 1.128 2004/05/20 20:13:38 grubba Exp $   */      #ifndef THREADS_H
48:    struct mapping *thread_local;    struct thread_state *hashlink, **backlink;    struct svalue result; - #ifdef PROFILING - #if SIZEOF_LONG_LONG - 0 != 0 -  long long time_base; - #else -  long time_base; - #endif - #endif /* PROFILING */ +    #if CPU_TIME_IS_THREAD_LOCAL == PIKE_YES    cpu_time_t auto_gc_time;   #endif