Branch: Tag:

2021-11-05

2021-11-05 09:43:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Pike.BacktraceFrame: Add field total_time --with-profiling.

2555:    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;
2932:       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;