Profiler: create a output data function.