How to collect Rider performance backend snapshot with dotTrace profiler on macOS and Linux?
You may be asked by JetBrains team to collect a performance backend snapshot of a Rider process with dotTrace profiler. Please follow the below instruction for macOS and Linix-based systems:
-
Download JetBrains dotTrace Command Line tool and unpack an archive to a directory.
-
Open the Terminal and go to the directory you used above.
- Launch Rider and open a problem solution.
-
Find out a PID (process identifier) of the backend process. The easiest way is to use the command in the Terminal:
ps -ef | grep JetBrains.ReSharper.Host.exe | awk '{print $2}'
-
In Terminal session opened on step 2, run the command with the PID from the previous step:
./dotTrace.sh attach --timeout=120s <PID>
It attaches the dotTrace profiler to the Rider backend for 120 seconds (2 minutes).
-
Go to Rider and reproduce the issue.
-
Once the profiler finishes collecting a snapshot, the Terminal will show you where to find the snapshot files. Please add all of them to an archive and share the archive with the JetBrains team for further analysis.
Use JetBrains Upload service to share large files with JetBrains.
Please sign in to leave a comment.