Manual:$wgProfileSampleRate

Details
Only profile every n requests when profiling is turned on