Implemented profiler instrumentation