Manual:$wgDebugFunctionEntry

Details
Whether to additionally output a debug message on every   and   call.

You also need to use a non-stub profiler to get these messages, see 1>Special:MyLanguage/Manual:Profiling|Manual:Profiling for more information about this.