VS2008性能分析工具 [英] performance analysis tool for VS2008

查看:93
本文介绍了VS2008性能分析工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成一个程序后,我运行它,但发现它太慢了。使用vs2008,我怎样才能找到一个工具来找到功能或类的性能瓶颈。然后我可以改进它。

任何建议吗?免费工具和轻量级更好!

After I finished a program,I run it ,But found it's so slow. Using vs2008,How can I Have a Tool to find the bottleneck of the performance in which function or class.Then I can improve it.
Any suggestoin? Free tool and lightweight is better!

推荐答案

我使用ANTS性能分析器,它是一个非常强大的工具。它将与VS2008 IDE集成,因此非常易于使用。唯一的缺点是它不是免费的,但你可以下载14天的路径版本。 http://www.red-gate.com/products/dotnet-development/ants -performance-profiler / [ ^ ]
I Used ANTS performance profiler , it is a very robust tool. It will be integated with VS2008 IDE so it is very easy to use. The only downside is it is not free, but you can download 14 days trail version. http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/[^]


请参阅此免费资料分析器

http://www.eqatec.com/tools/profiler/ [ ^ ]

我认为这也可能有所帮助。
Please see this free profiler
http://www.eqatec.com/tools/profiler/[^]
I think this may also be helpful.


找到瓶颈的好方法是注释掉一些功能并四处寻找有问题的代码。通常只有一两个严重实现的代码片段,如磁盘或数据库访问,等待计时器或字符串计算。有时候一些缓存有帮助。



通常,当识别出这个功能时,很容易解决它。几年前,我有一些字符串数组计算,我从一个同事遗传。在将其作为BYTE阵列实现后,它像jet一样运行; - )
A good way to find the bottlenecks is to comment out some functions and play around to find the problematic code. Often is it only one or two badly implemented pieces of code like disk or database access, wait timers or computations of strings. Sometimes a bit of caching helps.

Normally when this functions are indentified it is easy to solve it. Some years ago I had some string array computation which I heritaged from a collegue. After implementing it as BYTE array it run like jet ;-)


这篇关于VS2008性能分析工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆