VTUNE 2022.2无法为.NET 6控制台应用程序加载PDB符号

发布于 2025-02-04 10:00:24 字数 2005 浏览 2 评论 0原文

我正在尝试使用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的位置。

我还添加了PDB位于二进制/符号搜索中的目录。

当我运行“性能快照”谱分析时,我会在集合日志中获得以下反馈。

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.

Launch Application Settings

I also added the directory where the PDBs are located in the Binary/Symbol Search.
Binary/Symbol Search Settings

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.

Collection Log output

What am I doing wrong? I followed the example as closely as possible and it is failing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

°如果伤别离去 2025-02-11 10:00:24

这些只是一些警告消息。
通常,输出的警告消息是关于系统和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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文