简体   繁体   English

用于分析.NET Compact Framework应用程序性能的工具

[英]Tools to profile performance of .NET Compact Framework applications

The only thing I've found is EQATEC Profiler . 我发现的唯一的东西是EQATEC Profiler Are there any other profilers out there that can be used to profile .NET CF apps? 是否还有其他可用于配置.NET CF应用程序的分析器?

There's the built-in CLRProfiler: The CLRProfiler for the .NET Compact Framework (Version 3.5 of the .NET Framework): your question doesn't state which version you are targeting. 有内置的CLRProfiler: 用于.NET Compact Framework的CLRProfiler (.NET Framework的3.5版):您的问题没有说明您要定位的版本。 It's part of the Power Toys for .NET Compact Framework 3.5 . 它是Power Compact for .NET Compact Framework 3.5的一部分

There is also the .NET Compact Framework Remote Performance Monitor: 还有.NET Compact Framework远程性能监视器:

The .NET Compact Framework Remote Performance Monitor is an analysis tool that is included with the .NET Compact Framework version 2.0 Service Pack 1. This tool provides a user interface that lets you view performance data on the fly. .NET Compact Framework远程性能监视器是.NET Compact Framework 2.0 Service Pack 1附带的分析工具。此工具提供了一个用户界面,可让您即时查看性能数据。 When you start your application from Remote Performance Monitor, the tool will read statistical data for the .NET Compact Framework performance counters directly from the common language runtime (CLR). 从远程性能监视器启动应用程序时,该工具将直接从公共语言运行库(CLR)读取.NET Compact Framework性能计数器的统计数据。

You can also view .NET Compact Framework performance data by using the Windows desktop tool, PerfMon.exe. 您还可以使用Windows桌面工具PerfMon.exe查看.NET Compact Framework性能数据。 You can use these tools together for a live, graphical view of the performance counter data generated by the CLR. 您可以将这些工具一起用于CLR生成的性能计数器数据的实时图形视图。

Remote Performance Monitor enables you to do the following: 远程性能监视器使您可以执行以下操作:

  • View performance counter data while an application is running. 在应用程序运行时查看性能计数器数据。

  • View performance counter data in a graphical format in PerfMon.exe while an application is running. 在应用程序运行时以PerfMon.exe中的图形格式查看性能计数器数据。

  • Enable the generation of .stat files to duplicate behavior supported in earlier versions of the .NET Compact Framework. 允许生成.stat文件以复制早期版本的.NET Compact Framework中支持的行为。 When you use this feature, any .stat file is written to disk when the application exits. 使用此功能时,任何.stat文件都会在应用程序退出时写入磁盘。 For more information, see How to: Generate Performance Statistics. 有关更多信息,请参见如何:生成性能统计信息。

  • View previously generated .stat files that were created in the .NET Compact Framework version 2.0. 查看以前生成的.NET Compact Framework 2.0版中创建的.stat文件。

  • Enable and disable logging. 启用和禁用日志记录。

From my experiences of looking a while back the EQATEC profiler was the only "minimum effort" profiling option kicking around. 根据我一段时间以来的经验,EQATEC分析器是唯一的“最小努力”分析选项。 It becomes more suitable for proper performance testing if you use the "clear snapshot" command after the code you're interested in has been JITed and if you use the mechanism of producing files you can parse them yourself to gain a: Min, Max, Average output. 如果在您感兴趣的代码被JIT后使用“清除快照”命令,并且如果您使用生成文件的机制,您可以自己解析它们以获得:Min,Max,更适合进行正确的性能测试。平均输出。

Obviously that then becomes more effort than "minimum effort" though! 显然,然后变得比“最小努力”更努力! :D :d

Try dotTrace from JetBrains. 试试JetBrains的dotTrace。 Here is the howto for CF applications profiling http://confluence.jetbrains.net/display/NetProf/How+to+profile+.NET+Compact+Framework+applications 以下是CF应用程序分析的方法http://confluence.jetbrains.net/display/NetProf/How+to+profile+.NET+Compact+Framework+applications

Can you run it under a debugger? 你可以在调试器下运行吗? Can you manually interrupt (pause) it? 你可以手动中断(暂停)吗? If so, then this works . 如果是这样,那么这是有效的

ADDED: It works on multi-threaded apps if you can take stackshots of threads , and it works no matter how large the application is. 增加:如果你可以对线程进行叠加,它适用于多线程应用程序,无论应用程序有多大,它都能正常工作。 (It appears to work better on larger apps because they tend to have more problems to find.) (它似乎在较大的应用程序上工作得更好,因为它们往往有更多的问题要找。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM