Add profiling for C++ target