Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Applications developed in VS 2010 cannot be profiled properly

josephsephy
Beginner
581 Views
HI, I have a windows application which is devoleped in VS 2010. My Windows application is refering a classlibrary and calling a publicing method exposed in the class. During the profiling, it shows hotspot only from the source file in my parent application. Its not pointing to the real class which causes this issue. If I devolepe the same application in VS 2008 and start an analysis, it willl give proper result. Could you please help on this issue? Thanks, Sephy
0 Kudos
5 Replies
TimP
Honored Contributor III
581 Views
I'm guessing that inter-procedural optimization may account for your issue. If so, you turn off the Qip and ipo options and rebuild, and in many cases still get similar performance with better resolution in reference to source code.
0 Kudos
josephsephy
Beginner
581 Views
Basicaly, my Sample Project created in .net Using c#. So couldnt able to try the QIP and IPO optins.
I'm attaching the sample code which i tried.

Its working fine, when i compile the Projects in 3.5 FrameWork.
So is it a known issue in VS 2010 FrameWork 4.0? Will it not show the source codefrom the parent class ?
0 Kudos
OKohl
Beginner
581 Views
Is it possible that inVS2010 build options for the library arediffernt than VS2008,
such as marked for using optimized code?
0 Kudos
TimP
Honored Contributor III
581 Views
I seem to recall that Amplifier doesn't support profiling of C# code, a feature under consideration for inclusion again in future versions. I didn't recognize before this may be what you meant.
0 Kudos
Kirill_R_Intel
Employee
581 Views
Intel VTune Amplifier XE supports profiling of C# code. There is an option in Amplifier XE project properties called "Managed code profiling mode". Try to set it to "Mixed". Can you also provide a code sample that you're analysing so we also try it?
0 Kudos
Reply