fixed cpp profiling codegen