15

How to profile JUnit test run from Intellij Idea with VisualVM? VisualVM doesn't see any process? is it possible to do?

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • Does this answer your question? [how do you profile java source with intellij idea editor?](https://stackoverflow.com/questions/15976718/how-do-you-profile-java-source-with-intellij-idea-editor) – Dave Jarvis Aug 26 '20 at 19:58

2 Answers2

8

There is a plugin for JVisualVM mentioned in this question. With it, you can also run test cases.

Marc Hauptmann
  • 688
  • 5
  • 18
3

Note that recent IntelliJ IDEA Ultimate has integrated support for Java Flight Recorder and async-profiler which both are more precise than VisualVM:

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

Community
  • 1
  • 1
Vadzim
  • 24,954
  • 11
  • 143
  • 151