- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to perform some statistical analysis of my Fortran program using gprof. When I compile my files with "-p", the expected gmon.out file is created, however the profile file lacks call-graph data:
$ gprof -c -z -q myprog gprof: gmon.out file is missing call-graph data
Is there a compiler flag I'm missing, or does the compiler not generate this information? Version 12.0.4.191 Build 20110427
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you running your application after you compile your application. That will generate the gmon.out file.
-Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the gmon.out file is being generated. The post was that the call-graph data that gcc and other compilers tend to place in the gmon.out file is not being populated by the ifort compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What version of gprof are you using? and does this happen with every program or just one?
I am able to get call graph data using that version of the compiler and GNU gprof version 2.20.51.0.2-5.28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm.....that's interesting. When I generate a small program and compile/link it, I get the expected behavior. But when I run a larger, more complex program, I don't get it. I'll continue to try to narrow down to get a reproducer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any luck with reproducing this issue ?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page