Manual:$wgDebugProfiling/en

Details
Detects non-matching wfProfileIn/wfProfileOut calls.