pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: interpret.c,v 1.105 1998/11/20 08:11:41 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.106 1998/11/20 08:35:09 hubbe Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:181: Inside #if defined(DEBUG)
   {    static struct callback *spcb;    if(!spcb)    {    spcb=add_gc_callback(gc_check_stack_callback,0,0);    }    }   #endif   #ifdef PROFILING   #ifdef HAVE_GETHRTIME -  time_base = accounted_time =gethrtime(); +  time_base = gethrtime(); +  accounted_time =0;   #endif   #endif   }      void check_stack(INT32 size)   {    if(sp - evaluator_stack + size >= stack_size)    error("Stack overflow.\n");   }   
pike.git/src/interpret.c:2109: Inside #if defined(PROFILING)
   }   #ifdef PROFILING   #ifdef HAVE_GETHRTIME    {    long long time_passed, time_in_children, self_time;    time_in_children= accounted_time - children_base;    time_passed = gethrtime() - time_base - start_time;    self_time=time_passed - time_in_children;    accounted_time+=self_time;   #ifdef DEBUG -  if(self_time < 0) -  fatal("Self time is negative\n self_time=%ld\n time_passed=%ld\n time_in_children=%ld\n children_base=%ld\n accounted_time=%ld!\n time_base=%ld\n start_time=%ld\n", +  if(self_time < 0 || children_base <0 || accounted_time <0) +  fatal("Time is negative\n self_time=%ld\n time_passed=%ld\n time_in_children=%ld\n children_base=%ld\n accounted_time=%ld!\n time_base=%ld\n start_time=%ld\n",    (long)(self_time/1000),    (long)(time_passed/1000),    (long)(time_in_children/1000),    (long)(children_base/1000),    (long)(accounted_time/1000),    (long)(time_base/1000),    (long)(start_time/1000)    );   #endif    function->total_time=self_time_base + (INT32)(time_passed /1000);