我正在尝试剖析我的应用程序,以便在重构之前和之后监视函数的影响。我已经对我的应用程序进行了分析,并查看了摘要我注意到Hot Path列表没有提及我使用的任何函数,它只提到了Application.Run()的函数。()函数剖析的困境 - Visual Studio 2010 Ultimate
我很公平新分析,并希望知道如何通过MSDN documentation得到关于热路径的更多信息;
MSDN例子:
我的结果:
我注意到在输出窗口中有很多关于失败的消息当加载符号时,其中一些在下面;
Failed to load symbols for C:\Windows\system32\USP10.dll.
Failed to load symbols for C:\Windows\system32\CRYPTSP.dll.
Failed to load symbols for (Omitted)\WindowsFormsApplication1\bin\Debug\System.Data.SQLite.dll.
Failed to load symbols for C:\Windows\system32\GDI32.dll.
Failed to load symbols for C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll.
Failed to load symbols for C:\Windows\system32\msvcrt.dll.
Failed to load symbols for C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll.
Failed to load symbols for C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll. Failed to load symbols for
C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll.
Unable to open file to serialize symbols: Error VSP1737: File could not be opened due to sharing violation: - D:\(Omitted)\WindowsFormsApplication1110402.vsp
感谢任何指针(使用代码工具,所以它是可读格式化)。
仪表似乎更多地转向我需要什么,我可以清楚地看到每个功能花了多长时间。再次感谢! – 2011-04-14 13:02:49
@Peter Huene:有点偏离主题,但我很好奇,是否可以在单次运行中获取native代码和.net代码的源代码覆盖率信息。我的主要exe文件是一个native .exe,它使用.net dll – Chubsdad 2013-09-24 06:47:36
@Chubsdad:是的。如果您使用的是VS 2010或之前的版本,则需要使用VSInstr对每个可执行文件进行本地和受管理操作,并使用VSPerfMon进行收集。在2012年,代码覆盖工具(CodeCoverage.exe)将即时处理本机和托管可执行文件(在内存中),前提是它们的.pdbs在收集时存在。 – 2013-09-24 16:55:09