Bug 22549 - Gprof prints an empty profile including no data
Summary: Gprof prints an empty profile including no data
Status: RESOLVED DUPLICATE of bug 22284
Alias: None
Product: binutils
Classification: Unclassified
Component: gprof (show other bugs)
Version: 2.29
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 22548 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-05 05:31 UTC by PhoenixStarEclipse
Modified: 2022-08-03 08:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
E is the executable file compiled with g++ -pg -o E E.cpp, gprof.out is the output of gprof, E.in and E.out are valid input and output of E and are used to generate gmon.out. (1.13 MB, application/zip)
2017-12-05 05:31 UTC, PhoenixStarEclipse
Details
E is the executable file compiled with g++ -pg -o E E.cpp, gprof.out is the output of gprof, E.in and E.out are valid input and output of E and are used to generate gmon.out. (1.13 MB, patch)
2017-12-05 05:38 UTC, PhoenixStarEclipse
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PhoenixStarEclipse 2017-12-05 05:31:10 UTC
I'm using binutils-2.29.1-r1 on Gentoo Linux.
When I'm trying to analyse C and C++ programs, gmon.out is generated successfully, but gprof fails to profile it. gprof only prints an empty profile containing only introduction to indexes like 'time', 'cumulative seconds', 'self seconds' ...... etc.
I've tried to use gprof on different programs, some are C and some are C++, but gprof worked on none of them.

Here's the output of uname -a:

Linux PSE-Gentoo 4.12.12-gentoo #1 SMP Sun Dec 3 14:27:46 CST 2017 x86_64 Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz GenuineIntel GNU/Linux
Comment 1 PhoenixStarEclipse 2017-12-05 05:38:24 UTC
Created attachment 10665 [details]
E is the executable file compiled with g++ -pg -o E E.cpp, gprof.out is the output of gprof, E.in and E.out are valid input and output of E and are used to generate gmon.out.
Comment 2 PhoenixStarEclipse 2017-12-05 05:42:59 UTC
The two Attachments are the same. It's caused by internet problems.
Comment 3 Andreas Schwab 2017-12-05 09:11:02 UTC
*** Bug 22548 has been marked as a duplicate of this bug. ***
Comment 4 account disabled by myself since useless 2022-08-02 18:59:32 UTC
Seems this is duplicate of Bug 22284 and Bug 21189, so should be closed as "fixed".
Comment 5 Alan Modra 2022-08-03 08:10:01 UTC
.

*** This bug has been marked as a duplicate of bug 22284 ***