valgrind, profiling timer expired?

前端 未结 3 645
误落风尘
误落风尘 2021-01-11 11:10

I try to profile a simple c prog using valgrind:

[zsun@nel6005001 ~]$ valgrind --tool=memcheck ./fl.out
==2238== Memcheck, a memory error dete

3条回答
  •  [愿得一人]
    2021-01-11 11:33

    The problem is that you are using valgrind on a program compiled with -pg. You cannot use valgrind and gprof together. The valgrind manual suggests using OProfile if you are on Linux and need to profile the actual emulation of the program under valgrind.

提交回复
热议问题