Add profiling related to MIDI recording.

Also some comments and standards changes.


git-svn-id: http://svn.code.sf.net/p/rosegarden/code/trunk/rosegarden@13251 cf6a83e7-f017-4305-b0b3-678bde24f230