Manual:$wgResourceLoaderEnableJSProfiler

Details
Instrumentation happens in  . Use   from the browser console to display the data.