2 thoughts:
* why don't you use defineProperty ?
* why don't you use an object like `window.mozPerfMeasurements` that would have all the functions, instead of polluting the global scope so much ?