gprof view show no data on MingW/Windows [message #629659] |
Wed, 29 September 2010 03:34  |
Eclipse User |
|
|
|
Hi,
I am using Eclipse Helios, and have the binutils directory in my path. I have compiled and linked an application into app.exe, run it to generate the gmon.out, and finally run gprof app.exe gmon.out that prints some textual statistics
that seems ok.
I copied the app.exe and gmon.out into the eclipse workspace, and double click on gmon.out. The dialog box pops up, and I enter the filename for the app.exe.
Still, the gprof view is empty! Sometimes I get an "invalid binary format" messagebox, sometimes not. But I never get any profiling data to display in the gprof Eclipse view.
I use MingW on Windows.
Any suggestions are most welcome!
/John
|
|
|
|
|
Re: gprof view show no data on MingW/Windows [message #1734443 is a reply to message #630824] |
Wed, 08 June 2016 08:08  |
Eclipse User |
|
|
|
Hello,
gmon.out files in BSD format are supported by Eclipse-CDT under Windows + MinGW,
but only when generated from 32bits gcc with 32bits libs.
gmon.out files in 64 bits BSD format are currently not supported by Eclipse CDT + Windows + MinGW, even if the gmon.out file can still be read and analized from command line with gprof.
I have extensively tested 32-64 bits alternatives with different versions of Eclipse (Kepler, Luna, Mars) and GCC (old 32b MinGW, new 64b MinGW, 32b TDM_GCC, 64b TDM_GCC).
For now, the workaround is to build your 'Debug' with a 32b GCC and build your 'Release' with a 64b GCC. This can be achieved using the 'MINGW_HOME' environement variable : this variable can be adjust at a project-configuration level :
Properties -> C/C++Build -> Environement -> MINGW_HOME.
So, you can have a default 64b GCC/MinGW install for Release build, and a side 32b GCC used only for debuging and for gprof.
best regards,
Samuel
|
|
|
Powered by
FUDForum. Page generated in 0.06662 seconds