I am attempting to use Intel vTune to profile a .NET 6 Console application. I am following the example from the Intel website.
You can find the repo here.
I have vTune 2022.2 installed and I running on Windows 10 Pro Version 21H2 Build 19044.1706
I updated the default .csproj file to have it build symbols in release mode:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> </PropertyGroup>
</Project>I have vTune targeting the dotnet.exe executable as the target application and for the command line argument I give it is the location of the vTuneTestApp.dll.
I also added the directory where the PDBs are located in the Binary/Symbol Search.
When I run the "Performance Snapshot" profiling I get the following feedback in the Collection Log.
Cannot locate file "C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll".
"C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll" does not have code
of the expected architecture. Make sure to specify the correct path to the file
in the Binary/Symbol Search list of directories.What am I doing wrong? I followed the example as closely as possible and it is failing.
1 Answer
These are some warning messages only. In general, the warning messages from your output are about system and VTune modules. You can ignore them if you are not interested in profiling system functions. Otherwise please see the "Debug Information for Windows* System Libraries" help topic in VTune help.
Regarding Cannot locate file "C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll". "C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll" does not have code of the expected architecture. Make sure to specify the correct path to the file in the Binary/Symbol Search list of directories.It occurs when the VTune can’t find the shared dll libraries. Those libraries are compiled without debug symbols.
All the data would be collected even if the VTune throws this warning. You are free to ignore these warnings.
For more information please refer this link: .
1