简体   繁体   English

如何使用 VisualVM 分析从 Intellij Idea 运行的 JUnit 测试

[英]how to profile JUnit test run from Intellij Idea with VisualVM

How to profile JUnit test run from Intellij Idea with VisualVM?如何使用 VisualVM 分析从 Intellij Idea 运行的 JUnit 测试? VisualVM doesn't see any process? VisualVM 没有看到任何进程? is it possible to do?有可能吗?

There is a plugin for JVisualVM mentioned in this question . 这个问题中提到了一个JVisualVM 插件 With it, you can also run test cases.有了它,您还可以运行测试用例。

Note that recent IntelliJ IDEA Ultimate has integrated support for Java Flight Recorder and async-profiler which both are more precise than VisualVM:请注意,最近的 IntelliJ IDEA Ultimate 集成了对 Java Flight Recorder 和 async-profiler 的支持,它们都比 VisualVM 更精确:

https://www.jetbrains.com/help/idea/cpu-profiler.html https://www.jetbrains.com/help/idea/cpu-profiler.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM