Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » gprof view show no data on MingW/Windows(gprof view show no data on MingW/Windows)
gprof view show no data on MingW/Windows [message #629659] Wed, 29 September 2010 07:34 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: September 2010
Junior Member

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!

Re: gprof view show no data on MingW/Windows [message #629716 is a reply to message #629659] Wed, 29 September 2010 11:11 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: September 2010
Junior Member
Additional date! After building with MingW on Windows using -pg, and running my app.exe, I get a gmon.out file as expected. using the command "gprof app.exe gmon.out", I get a nice profiling report printed as expected.

However, when I use the gpof Eclipse view and double click on the same gmon.out file, and point out app.exe, I get this errors in the Eclipse log: Invalid gmon file
at org.eclipse.linuxtools.gprof.parser.GmonDecoder.readHeader(G
at org.eclipse.linuxtools.gprof.view.GmonView.displayGprofView(
at org.eclipse.ui.internal.EditorManager$ va:701)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.EditorManager.openExternalEditor(Edi
at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag
at org.eclipse.ui.internal.WorkbenchPage$ ava:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa
at org.eclipse.ui.ide.IDE.openEditor(
at org.eclipse.ui.ide.IDE.openEditor(
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio
at a:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener. open(
at org.eclipse.jface.viewers.StructuredViewer$
at org.eclipse.ui.internal.JFaceUtil$
at 5)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewe
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:258)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate
at org.eclipse.swt.widgets.EventTable.sendEvent( :84)
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch( :3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4( 38)
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault (
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework( 619)
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Why can gprof. exe successfully read my gmon.out file, but the gprof Eclipse viewer cannot?

Re: gprof view show no data on MingW/Windows [message #630824 is a reply to message #629716] Tue, 05 October 2010 08:04 Go to previous message
Xavier Raynaud is currently offline Xavier RaynaudFriend
Messages: 7
Registered: July 2009
Junior Member
It looks like similar to

There is 3 different format for gmon files:

o BSD44

It seems that cygwin/mingW generates BSD gmon files.

Unfortunately, for now, eclipse plug-in only support MAGIC format, which is,
AFAIK, the default one on Linux.
Previous Topic:After upgrade to 2.0 Autotools does not work
Next Topic:unable to get chart view of gmon.out
Goto Forum:

Current Time: Thu Nov 26 05:27:45 GMT 2015

Powered by FUDForum. Page generated in 0.04736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software