pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:2548:    /* These are cleared when filename and lineno have been initialized    * from them. */    PIKEVAR program prog flags ID_PROTECTED|ID_PRIVATE;    CVAR PIKE_OPCODE_T *pc;       /* These two are considered to be uninitialized from prog, pc and    * fun as long as lineno == -1. */    CVAR struct pike_string *filename;    CVAR INT_TYPE lineno;    + #ifdef PROFILING +  PIKEVAR bignum total_time; +  /* FIXME: self_time */ + #endif +  +  DECLARE_STORAGE; +     INIT    {    THIS->pc = NULL;    THIS->lineno = -1;    THIS->filename = NULL;    }       EXIT    gc_trivial;    {
pike.git/src/builtin.cmod:2925:    struct identifier *function = NULL;       call_c_initializers(o);       size--;       SET_SVAL(res->item[size], PIKE_T_OBJECT, 0, object, o);       bf = OBJ2_BACKTRACE_FRAME(o);    + #ifdef PROFILING +  push_int64(get_cpu_time() - (i->unlocked_time + f->start_time)); +  bf->total_time = Pike_sp[-1]; +  Pike_sp--; + #endif +     if ((bf->prog = f->context->prog)) {    add_ref(bf->prog);    bf->pc = f->pc;    }       SET_SVAL(bf->_fun, PIKE_T_INT, NUMBER_DESTRUCTED, integer, 0);       if (f->current_object && f->current_object->prog) {    if (f->fun == FUNCTION_BUILTIN) {    /* Unusual case. The frame is from call_c_initializers(), gc()