IO into profiling function.