pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-11-05
2021-11-05 09:43:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4b70a0b1dc5cee75672e5ce367070f981946b054 (
14
lines) (+
14
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
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;