如何在Windows下进行分析?

发布于 12-22 08:13 字数 390 浏览 5 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

萌逼全场2024-12-29 08:13:41

我已经尝试过其中的一些,包括 LTProf 和 A​​NTS,但我不断回到 这个方法
它不是一个工具;而是一个工具。这只是一种技术。
这是使用它的分步示例
如果您需要链接,很多其他人也使用它。

I've tried a number of them, including LTProf and ANTS, but I keep going back to this method.
It's not a tool; it's just a technique.
Here's a step-by-step example of using it.
A lot of other people also use it, if you want links.

桃扇骨2024-12-29 08:13:41

有两种分析器。

非侵入式,不需要修改代码。恕我直言,尽管它们更易于使用,但它们并没有提供令人满意的结果。

侵入式类型,需要添加代码。我认为这些提供了更好的结果。我开发了自己的此类分析器,并获得了好评。您可以在 http://ravenspoint.wordpress.com/2010/06/ 查看16/时机/

There are two kinds of profiler.

The non-intrusive kind, which do not require modification to your code. IMHO these do not provide satisfactory results, although they are easier to use.

The intrusive kind, which require additions to your code. These provide better results, I think. I developed my own profiler of this kind, which has received good reviews. You can check it out at http://ravenspoint.wordpress.com/2010/06/16/timing/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文