Manual:$wgDebugToolbar

Details
Display the debugging toolbar. This also enables profiling on database queries and other useful output.