logging around cpu profiling