如何在 intellij profiler 中使用挂钟时间?

问题描述 投票:0回答:1

我尝试在 intellij 分析器中使用挂钟时间而不是 cpu 时间,并且我根据此处的帖子将配置更改为 wall。 如何为 Intellij Async Profiler 启用挂钟分析? 但它看起来不起作用。任何人都知道什么是正确的方法?谢谢

intellij-idea profiler
1个回答
0
投票

您提到的答案,您仍然需要在“Java Profiler”的“CPU profiler”部分添加

wall=event
选项,同时使用'Async Profiler'运行您的应用程序:

文章“Profiling Tutorial: Fixing the Parrot Party”展示了 CPU profiling,但我怀疑 CPU 特定的设置仍然在“CPU Profiler”上设置。

您可以测试一下,当您使用“使用‘Async Profiler’运行”选项启动应用程序时,IntelliJ IDEA 将使用“CPU Profiler”部分中指定的代理选项来配置 Async Profiler。

或者:使用 Async Profiler 时默认激活 CPU 分析:

然后,在 Profiler 工具窗口中右键单击必要的进程并选择 CPU and Memory Live Charts(来自“CPU and memory live charts”):

© www.soinside.com 2019 - 2024. All rights reserved.