added a cpu profiling option