Profiler

This feature is currently experimental and not tested extensively.