VTUNE 2022.2无法为.NET 6控制台应用程序加载PDB符号
我正在尝试使用Intel Vtune来配置.NET 6控制台应用程序。我正在按照 intel网站。
您可以找到repo 在这里。
我已经安装了VTUNE 2022.2,并且在Windows 10 Pro版本21H2构建19044.1706上运行,
我更新了默认的.csproj
文件以使其在发布模式下构建符号:
<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>
我具有vtune target target the dotnet.exe
可执行为目标应用程序,对于命令行参数,我给出的是vtunetestapp.dll
的位置。
当我运行“性能快照”谱分析时,我会在集合日志中获得以下反馈。
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.
我在做什么错?我尽可能地遵循了示例,并且失败了。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些只是一些警告消息。
通常,输出的警告消息是关于系统和VTUNE模块的。如果您对分析系统功能不感兴趣,则可以忽略它们。否则,请参阅VTUNE帮助中的“ Windows*系统库的调试信息”帮助主题。
关于
无法找到文件“ c:\ source \ vtunetestapp \ bin \ bin \ repares \ net6.0 \ vtunetestapp.dll”。 “ c:\ source \ vtunetestapp \ bin \ repares \ net6.0 \ vtunetestapp.dll”没有预期体系结构的代码。确保在目录的二进制/符号搜索列表中指定文件的正确路径。
>当VTune找不到共享DLL库时,就会发生。这些库是没有调试符号的。
即使Vtune发出此警告,也将收集所有数据。您可以自由地忽略这些警告。
有关更多信息,请参阅此链接: https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/top/troubleshooting/error-c-. 。
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: https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/troubleshooting/error-c...