Added disable(), enable() functions

I had some Profiler::disable()/enable() calls left over from using [loic-sharma/profiler](https://github.com/loic-sharma/profiler), so ported the functions over here.