Branch: Tag:

2000-03-18

2000-03-18 02:55:08 by Martin Stjernholm <mast@lysator.liu.se>

Track the id objects if ID_OBJ_DEBUG is defined.

Rev: server/protocols/http.pike:1.220

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.219 2000/03/16 18:24:37 nilsson Exp $"; + constant cvs_version = "$Id: http.pike,v 1.220 2000/03/18 02:55:08 mast Exp $";      #define MAGIC_ERROR   
21:   int req_time = HRTIME();   #endif    + #ifdef ID_OBJ_DEBUG + Debug.ObjectMarker __marker = Debug.ObjectMarker (this_object()); + #endif +    #ifdef REQUEST_DEBUG   int footime, bartime;   #define REQUEST_WERR(X) bartime = gethrtime()-footime; werror("%s (%d)\n", (X), bartime);footime=gethrtime()
1910:   {    object c,t;    c=object_program(t=this_object())(0, port_obj); + #ifdef ID_OBJ_DEBUG +  werror ("clone %O[%d] -> %O[%d]\n", t, t->__marker->count, c, c->__marker->count); + #endif      // c->first = first;    c->port_obj = port_obj;