我正在尝试在我的程序上运行gprof命令,但由于某种原因它不起作用。有谁知道如何解决它?
P.S。我对Cmake(CLion IDE)很感兴趣,我添加了这些内容:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pg")
cmd输入:
C:\_main\Projects\tau_plus_plus\bin>gprof __tau__.exe
cmd输出:
BFD: Dwarf Error: Could not find abbrev number 3772.
gmon.out: No such file or directory