Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4701 Discussions

Can't see .net 5 c# source code

CarlVerret
Novice
1,778 Views

Hi,

Been trying to use vTune for both hotspot and assembler code analysis (listadd.dll) Profiler never shows the source code next to the assembler code.  Alway getting message "cannot locate file [xxx.dll] file does not have code of the expected architecture...

Can anyone please help

.net 5.0 c# code, vTune 2021 8.0 on Windows 10 computer.

Thanks.

 

Labels (1)
0 Kudos
1 Solution
Vinutha_SV
Moderator
833 Views

Hi,

I hope your issue is resolved. Since we have not received response from many weeks, we will stop monitoring this thread.


View solution in original post

7 Replies
JananiC_Intel
Moderator
1,696 Views

Hi,


Thanks for posting in Intel forums.


We are checking on this. We will get back to you soon.


Regards,

Janani Chandran


JananiC_Intel
Moderator
1,676 Views

Hi,

 

Could you try including that .dll file in binary search(Refer pic_1.png and pic_2.png) of vtune report and then try re-resolve(Refer pic_3.png)?Please find the attached screenshot for reference.

 

Try this and let us know the updates.

 

Regards,

Janani Chandran

 

CarlVerret
Novice
1,631 Views

i've tried all that previously.  Even following your own tutorial as is isn't working at all.

JananiC_Intel
Moderator
1,521 Views

Hi,


Sorry for the delay.


We are looking into this. We will get back to you soon.


Regards,

Janani Chandran


Vinutha_SV
Moderator
1,251 Views

Hi,

Our VTune dev team is working on the issue : "cannot locate file [xxx.dll] file does not have code of the expected architecture”. I shall let you know once we have solution.

Meanwhile to see the .Net source code, can you please unset or remove this setting from csproj that you followed from the document - step 5

5.Add the following flag to the PropertyGroup section of the listadd.csproj file to enable source code analysis in VTune Amplifier: <DebugType>pdbonly</DebugType>.

(https://www.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recip...)




Vinutha_SV
Moderator
1,130 Views

Hi,

Are you able to see the source code with the workaround provided?


Vinutha_SV
Moderator
834 Views

Hi,

I hope your issue is resolved. Since we have not received response from many weeks, we will stop monitoring this thread.


Reply