Mail Archives: djgpp/1996/05/30/01:38:22
Reply to message 5892024 from CALVID AT MATISS on 05/28/96 12:38PM
>I've read the faq, but I still can't get gprof to run. I've tried the
>following:
>
>compile with -pg (can't link with this like the faq says, is that the
problem?)
Yes, it's the problem. You MUST also link with -pg to get profiling info.
Why do you think that you can't do it? When I tried it it worked fine.
>link
>exe2coff game.exe (generates game)
>run game, works fine.
>gprof game, says gmon.out file not found.
>
>What is this gmon.out and how do I make it? Thanks in advance.
'gmon.out' is the profiling data your program (when compiled correctly)
outputs. It is only output if you linked with -pg, however. You can't create
it manually.
John
- Raw text -