如何在Windows下进行分析?
我有一个 C++ 程序,我想对其进行分析,因为它需要太多的运行时间。
我正在使用 Windows 来执行此程序,并且我想使用免费的分析器。我在网上搜索并发现了AMD CodeAnalyst
并且非常困
。 AMD 工具不能很好地工作,因为我有一个 intel CPU。所以几乎没有任何信息出来。
当使用very sleepy
时,我遇到了问题,我在摘要中看不到函数的名称。这意味着:分析本身有效,但我看不到哪个函数花了多长时间。我只看到类似 [123456789]
的函数名称和 0 的行号。我认为这是调试符号的问题。
你能告诉我,我必须做什么才能让它工作(Visual Studio 2010)?
谢谢
I have a C++ program that I want to profile as it needs too much running time.
Im am using windows for this program and I'd like to use a free profiler. I searched the net and found the AMD CodeAnalyst
and very sleepy
. The AMD tool does not work very good as I have an intel CPU. So nearly no information is coming out.
When using very sleepy
, I have the problem, that I do not see the names of the functions in the summary. That means: The profiling itself works, but I cannot see what function took how long. I see just something like [123456789]
as function name and 0 as line number. I think this is a problem of the debugging symbols.
Can you tell me, what I have to do to get it working (Visual Studio 2010)?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
有两种分析器。
非侵入式,不需要修改代码。恕我直言,尽管它们更易于使用,但它们并没有提供令人满意的结果。
侵入式类型,需要添加代码。我认为这些提供了更好的结果。我开发了自己的此类分析器,并获得了好评。您可以在 http://ravenspoint.wordpress.com/2010/06/ 查看16/时机/
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
Visual Studio Profiler 位于:http://www.microsoft.com/download/ en/details.aspx?id=23205
说明:http://msdn.microsoft.com/en-us/library/ms182372.aspx
Visual Studio Profiler here : http://www.microsoft.com/download/en/details.aspx?id=23205
Instructions : http://msdn.microsoft.com/en-us/library/ms182372.aspx