https://sourceware.org/bugzilla/show_bug.cgi?id=22549
Bug ID: 22549 Summary: Gprof prints an empty profile including no data Product: binutils Version: 2.29 Status: UNCONFIRMED Severity: critical Priority: P2 Component: gprof Assignee: unassigned at sourceware dot org Reporter: PhoenixStarEclipse at gmail dot com Target Milestone: --- 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 from PhoenixStarEclipse at gmail dot com --- Created attachment 10665 --> https://sourceware.org/bugzilla/attachment.cgi?id=10665&action=edit 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. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils