adobe/brackets — pull request #979 by redmunds (2012-06-01 04:34:12+00:00)
Title: terminate perfutil timers

This fixes issue #974

There were 2 problems.

1. The timer started (via PerfUtils.markStart()) in EditorManager._openInlineWidget() was only terminated (via PerfUtils.addMeasurement()) in the case where Deferred completed successfully. PerfUtils timer need to be terminated in all cases.

2. PerfUtils names were converted to objects with name and id fields, but toMeasurementId() was not being called in finalizeMeasurement() and updateMeasurement() functions.