Scoped profiling