Manual:$wgDebugFunctionEntry

Details
Output debug message on every wfProfileIn/wfProfileOut