C ++代码性能
问题描述:
当使用VS2005将代码写入C ++时,如何衡量代码的性能?
When is about writing code into C++ using VS2005, how can you measure the performance of your code?
VS中有任何默认工具吗?我可以知道哪个函数或类减慢了我的应用程序吗?
Is any default tool in VS for that? Can I know which function or class slow down my application?
是否可以集成到VS中的其他外部工具,以测量我的代码中的差距? >
Are other external tools which can be integrated into VS in order to measure the gaps in my code?
答
如果您有Visual Studio 2005的Team System版本,您可以使用内置的分析器。
If you have the Team System edition of Visual Studio 2005, you can use the built-in profiler.
- http://msdn.microsoft.com/en-gb/library/z9z62c29(VS.80).aspx