Implement profiling support