|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 B2003 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 30 Jan, 09:30, Boltar <boltar2...@yahoo.co.uk> wrote:
> 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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
You must run the program once before the output is generated.
Same as gcov. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On 30 Jan, 10:21, fnegroni <f.e.negr...@googlemail.com> wrote:
> You must run the program once before the output is generated. > Same as gcov. Works now. I assumed it ran the prog in situ like gdb. Thanks B2003 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Boltar wrote:
> > 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. -- [mail]: Chuck F (cbfalconer at maineline dot net) [page]: <http://cbfalconer.home.att.net> Try the download section. -- Posted via a free Usenet account from http://www.teranews.com |
|
![]() |
| Outils de la discussion | |
|
|