Branch: Tag:

2016-02-11

2016-02-11 19:14:56 by Martin Nilsson <nilsson@fastmail.com>

DO_IF_PROFILING was only used for debug printouts, so rewrite it as such.

2868:    func = new_frame->context->prog->identifiers + new_frame->ident; \    func->num_calls++; \    func->recur_depth++; \ -  DO_IF_PROFILING_DEBUG({ \ -  fprintf(stderr, "%p{: Push at %" PRINT_CPU_TIME \ -  " %" PRINT_CPU_TIME "\n", \ -  Pike_interpreter.thread_state, new_frame->start_time, \ -  new_frame->children_base); \ -  }); \ +  W_PROFILING_DEBUG("%p{: Push at %" PRINT_CPU_TIME \ +  " %" PRINT_CPU_TIME "\n", \ +  Pike_interpreter.thread_state, \ +  new_frame->start_time, \ +  new_frame->children_base); \    }); \    \    Pike_fp=new_frame; \