tracing: adding function timings to function profiler