gcc compiling for profiler question

B

Boltar

Hi

I'm trying to create a gmon.out file with gcc so I can run my program
through gmon. However the -pg option doesn't seem to work. Is there a
trick to generating this file?

Thanks for any help

B2003
 
B

Boltar

Hi

I'm trying to create a gmon.out file with gcc so I can run my program
through gmon. However the -pg option doesn't seem to work. Is there a
trick to generating this file?

I meant gprof , not gmon.

B2003
 
C

CBFalconer

Boltar said:
I'm trying to create a gmon.out file with gcc so I can run my
program through gmon. However the -pg option doesn't seem to work.
Is there a trick to generating this file?

Look up gprof (either "man gprof" or "info gprof" or both). This
is off-topic on c.l.c.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top