Starts a profile capture to record content build profile events.
Throws an InvalidOperationException if the previous profile capture hasn't stopped.