From fb19ad4c5cdfc5e4fe4a05b8de9ecb2a187c9065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Walld=C3=A9n?= <jonasw@roxen.com> Date: Sat, 7 Jan 2012 03:17:33 +0100 Subject: [PATCH] Remove unused self_time_base from PROFILING code. --- src/apply_low.h | 4 ---- src/interpret.h | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/apply_low.h b/src/apply_low.h index 3bb96d5f83..7cba077648 100644 --- a/src/apply_low.h +++ b/src/apply_low.h @@ -226,10 +226,6 @@ "Calling undefined function.\n"); } -#ifdef PROFILING - new_frame->self_time_base=function->total_time; -#endif - switch(function->identifier_flags & (IDENTIFIER_TYPE_MASK|IDENTIFIER_ALIAS)) { case IDENTIFIER_C_FUNCTION: diff --git a/src/interpret.h b/src/interpret.h index 8b7d32d17b..9c9bbf3de0 100644 --- a/src/interpret.h +++ b/src/interpret.h @@ -96,7 +96,6 @@ struct pike_frame #if defined(PROFILING) cpu_time_t children_base; /** Accounted time when the frame started. */ cpu_time_t start_time; /** Adjusted time when thr frame started. */ - cpu_time_t self_time_base; /* ??? */ #endif }; @@ -626,9 +625,7 @@ PMOD_EXPORT extern const char msg_pop_neg[]; }); \ Pike_interpreter.accounted_time += self_time; \ /* FIXME: Can context->prog be NULL? */ \ - function = _fp_->context->prog->identifiers + _fp_->ident; \ - /* function->total_time = \ - Pike_fp->self_time_base + time_passed; */ \ + function = _fp_->context->prog->identifiers + _fp_->ident; \ function->total_time += time_passed; \ function->self_time += self_time; \ }); \ -- GitLab