|
Home > Archive > Unix questions > February 2005 > gprof: gmon.out file is missing call-graph data
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
gprof: gmon.out file is missing call-graph data
|
|
| Luciano 2005-02-17, 2:47 am |
| Hi,
I am trying to profile a C program,
but I can only get the error message reported
in the subject.
I did the following:
gcc -pg a1.c
a.out
gprof a.out gmon.out
and the I get the error message.
Any idea?
Luciano
| |
| Heiner Steven 2005-02-17, 5:54 pm |
| Luciano wrote:
> Hi,
>
> I am trying to profile a C program,
> but I can only get the error message reported
> in the subject.
>
> I did the following:
>
> gcc -pg a1.c
> a.out
> gprof a.out gmon.out
>
> and the I get the error message.
Does just
gprof a.out
work?
Heiner
--
___ _
/ __| |_ _____ _____ _ _ Heiner STEVEN <heiner.steven@nexgo.de>
\__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
|___/\__\___|\_/\___|_||_| http://www.shelldorado.com/
| |
| Luciano 2005-02-18, 2:48 am |
| On Thu, 17 Feb 2005, Heiner Steven wrote:
> Luciano wrote:
>
> Does just
>
> gprof a.out
>
> work?
no, I get the same error message
Luciano
> Heiner
> --
> ___ _
> / __| |_ _____ _____ _ _ Heiner STEVEN <heiner.steven@nexgo.de>
> \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
> |___/\__\___|\_/\___|_||_| http://www.shelldorado.com/
>
| |
| Heiner Steven 2005-02-20, 6:19 pm |
| Luciano wrote:
> On Thu, 17 Feb 2005, Heiner Steven wrote:
[...][vbcol=seagreen]
>
> no, I get the same error message
Does the file exist, and does it contain data? What is the
file size?
Heiner
--
___ _
/ __| |_ _____ _____ _ _ Heiner STEVEN <heiner.steven@nexgo.de>
\__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
|___/\__\___|\_/\___|_||_| http://www.shelldorado.com/
| |
| Luciano 2005-02-21, 2:48 am |
| On Sat, 19 Feb 2005, Heiner Steven wrote:
> Luciano wrote:
>
>
> [...]
>
> Does the file exist, and does it contain data? What is the
> file size?
yes, the file exist is it 4 (blocks?) long
and is detected by the command file as
"gnu prof performance data version 1"
neverthless I still get the error messagereported in the subject.
Any (further) idea?
Thanks for the help anyway.
Luciano
> Heiner
> --
> ___ _
> / __| |_ _____ _____ _ _ Heiner STEVEN <heiner.steven@nexgo.de>
> \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
> |___/\__\___|\_/\___|_||_| http://www.shelldorado.com/
>
| |
|
| [QUOTE]Originally posted by Luciano
[B]On Sat, 19 Feb 2005, Heiner Steven wrote:
> Luciano wrote:
>
>
> [...]
>
> Does the file exist, and does it contain data? What is the
> file size?
yes, the file exist is it 4 (blocks?) long
and is detected by the command file as
"gnu prof performance data version 1"
neverthless I still get the error messagereported in the subject.
Any (further) idea?
Thanks for the help anyway.
Luciano[vbcol=seagreen]
> Heiner
> --
Try adding the -lc_p option to the linker.
Some more useful information can be found at http://sourceware.org/binutils/docs.../Compiling.html
-Ilya. |
|
|
|
|