Performance testing plugin

Enable CPU Profiler

To enable YourKit CPU profiler in the IDE, invoke Help | Diagnostic | Enable CPU Profiler.

The profile will be enabled only for the current IDE session until IDE restart. This avoids modification of the phpstorm.vmoptions file and doesn't increase system start time.

2018.3 release introduces Help | Diagnostic | Start Async Profiler option for Linux and macOS. The option enables async profile (that may take a while) and start profiling right away. To stop profiling invoke Help | Diagnostic | Stop Async Profiler. Please use async profiler and change its options only when requested.


Provide Performance Summary

To provide performance summary about your hardware, OS, current project, and the file, invoke Help | Settings Summary and select Performance Problem in the Issue Type list. The information is generalized, so any sensitive data won’t be revealed.


Analysis of the Indexing Phase

If you experience any issues with IDE indexing performance, enable Help | Diagnostic | Profile indexing and then invoke File | Invalidate caches and restart.

This action will capture the CPU snapshot during the indexing phase on the next project opening.

Execute Performance Script

Notice: on macOS, some performance script commands require the IDE to have the System Settings | Security & Privacy | Accessibility permissions

The Execute Performance Script action provides a convenient way to collect CPU snapshots that help to identify the performance problem.

The Performance Issue Reporter dialog contains predefined scripts for the common scenarios where IDE slow-downs can be detected, as well as lets you write your own scripts.

The scripts allow us to control the sequence of actions that is performed during snapshots capturing and simplify reproducibility.


The first script line is created automatically and points to the currently opened file in the editor.


After the CPU snapshot is captured, the Performance Summary dialog opens. It lets you submit a support request and open the CPU snapshot in file browser.

Available commands






Perform completion



Perform "online" inspection run


%goto line column

Place caret at specified line and column


%inspectCode extension

Perform batch inspection on files with the specified extension using the currently selected profile (but without Spellchecking)


%openFile file

Open file



Pause internal timer


%startProfile key

Start profiling using key as activity name



Stop profiling and save CPU snapshot



Wait till the progress manager has no progress indicator



Reformat the whole project with the selected profile


%delayType <delay int in ms>>|delay text

Type text with the specified delay between key presses

Each command will wait until the corresponding action is finished, so there is no need to insert an intermediate waiter.

It's also possible to invoke actions using %action <action_name>. Note that in this case they don't have waiters. Execution of the script will be continued right after the action is triggered.

6 out of 13 found this helpful

Enable persistent profiler option does not seem to exist anymore, and Enable profiler throws an error that it can't be enabled.


Is there an alternative that works with IntelliJ?


I'm using RubyMine 2018.2.1 and the "Help / Diagnostic / Enable CPU Profiler" option is disabled (grayed out)

My build: 
Build #RM-182.3911.41, built on August 7, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0


It seems that `%[ENTER]` doesn't work. A script like the following actually does nothing:

%openFile /Users/nonmae/Projects/kotlin-experiment/TestProj/src/com/test/

And `%[ENTER]` doesn't work after `%doComplete` as well.

My build:

Build version: IntelliJ IDEA 2019.3.3 Build #IC-193.6494.35 February 11, 2020
Java version: 11.0.5+10-b520.38x86_64
Operating System: Mac OS X (10.15.3, x86_64)
JVM version: OpenJDK 64-Bit Server VM JetBrains s.r.o


According to the issue I've created, the plugin only works when IDEA or Android Studio is granted accessibility permissions. You can check it here - System Preferences | Security & Privacy | Accessibility. Hope this will help.


android {
ndkVersion "25.2.9519653"


Post is outdated. phpStorm, cannot do the first step “Help | Settings Summary”

Find Action… searching for “Summary” does not find what's needed either. :-(


Please sign in to leave a comment.

Have more questions?

Submit a request