Added a simple profiler utility, see #1