Fix f879882 profiling performance regression (Daniel Slutsky)