On Tue, 2009-12-15 at 12:08 +0800, Water Lin wrote:
> I want to use gprof to analyze my code. So I try to embed the -pg
> paramter for g++ in my CMakeLists.txt file.
>
> But after I embeded the -pg to my CMakeLists.txt like this:
> -
> add_definitions(-pg -march=pentium4 -msse3 -g)
> -
I want to use gprof to analyze my code. So I try to embed the -pg
paramter for g++ in my CMakeLists.txt file.
But after I embeded the -pg to my CMakeLists.txt like this:
-
add_definitions(-pg -march=pentium4 -msse3 -g)
-
and I recompile my code. There is no gprof output file.
But