How do I use IntelliJ Profiler?

How do I use IntelliJ Profiler?

The Profiler tool window displays a list of currently running processes. Right-click on the required process. Select Capture Memory Snapshot for a memory dump. Attach Profiler and then choose the profiling type: Async Profiler or Java Flight Recorder.