Using profiler to profile operations