Switched hook profiling to use scopedProfileIn