Sample based CPU profiling