Vtune and MinGW

Vtune and MinGW

Constantin Christmann's picture

I have problems using Vtune Analyzer to profile a an open source project (the origami tool TreeMaker to be specific) which has been build using the MinGW-Compiler for the Win-64-bit plattform. When building the project I have specified the compiler flag "-g3". In the vtune project settings I have specified the directory which include the source files.

After runing the VTune analyzer I see a call stack full of [treemaker.exe] and no function names. An when clicking on one of these items I get an error "Failed to show source and assembly code." How can I get more information what is going wrong? Does anyone have experience with using VTune in combination with MinGW? Thanks, Constantin

8 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Peter Wang (Intel)'s picture

Hi Constantin,

You are not alone.

This is a known issue, and treated as "new feature request".

Regards, Peter

Constantin Christmann's picture

Hi Peter, ok, this is good to know. Can you tell me what the problem exactly is? Does Vtune not understand the debug symbols written by gcc? Regards, Constantin

Peter Wang (Intel)'s picture

Yes. VTune doesn't recognize debug infogenerated bymingw gcc...that is a new feature request.

Regards, Peter

Constantin Christmann's picture

Hi Peter, thanks for clarification. However, I am still a little confused: mingw supports different debug standards- f.e. stabs, dwarf-2. And as far as I know VTune also supports those standars - or is it just the linux version which supports them? Regards, Constantin

Peter Wang (Intel)'s picture
Best Reply

Hi Constantin,

You are right, again:-)

MinGW produces DWARF format.The toolsupports DWARF on Linux, but not for Windows PE executable format.

This is a new feature request.

Regards, Peter

Andor Patho's picture

Any update on this? I tried profiling a gcc target on windows, and noticed I am at least getting mangled function names and can look at the assembly, but not at the source code. P.S. can the status of feature requests like this be tracked somewhere?

Peter Wang (Intel)'s picture

This issue is still a feature request, will be considered in furture release,absolutely is tracked.

I will update the status,when itis ready.

Login to leave a comment.