Profiling: log the last three element of the call stack