Is there an IntelliJ Java Profiler

Is there a Profiler for IntelliJ like the one for Matlab?

Say you have this code

a = true; i = 0; while(a) { if(a) i++ // some fancy stuff which takes 1 second each loop if(i > 1e6) break; } 

Now i run the code

In Matlab, it will look like as soon as I open Profiler

 calls time 1 0.0 a = true; 1 0.0 i = 0; 1 0.0 while(a) { 1e3 1.0 if(a) 1e3 0.4 i++ 1e3 1e3 // some fancy stuff which takes 1 second each loop 1e3 1.2 if(i > 1e3) break; } 
+24
java intellij-idea profiler
Jan 15 '14 at 20:34
source share
2 answers

All profilers available for Java that can be used in IntelliJ will display the call time, only aggregated at the method level. You can use, for example, VisualVM, JProfiler or YourKit, but only the total time will be displayed.

+14
Jan 15 '14 at 20:53
source share

JProfiler has a plugin for IntelliJ IDEA .

It adds Profile actions to IntelliJ IDEA, similar to Run and Debug actions. The profiler interface is not built into IDEA, but starts as a separate process. However, you can use existing launch configurations to profile and navigate the source code, returning to IDEA.

You need to install JProfiler as a separate product, the plugin will ask you about the JProfiler installation directory when you first profile something.

Disclaimer: My company is developing JProfiler.

+12
Jan 16 '14 at 8:36 on
source share



All Articles