[Refactoring] Added some self measuring code to check code action
update timings.
Alan reported a slow down in the editor caused by the code action
update. If one of the code actions slow down the editor this code
finds the cause.