How to Collect Thread Dumps in the DVT IDE for VS Code

Overview

We strive to optimize performance and memory consumption all the time. However it may happen that some actions take longer than expected or the UI gets laggy, either due to faulty algorithms or extrinsic problems such as slow file systems or buggy display stacks. Follow the steps described in this video to help us quickly find the root cause and provide a fast fix.

Explore the design and verification tools: www.dvteclipse.com
Or request a license: www.dvteclipse.com/request-license

Details

Thread dumps help us quickly troubleshoot and find the root cause of DVT slowdowns or freezes. A thread dump file contains a sequence of application thread snapshots in plain text format sampled at regular intervals. No part of the project code or tool environment configuration is included.

Collecting Thread Dumps

Let's suppose that an action takes longer than expected, for example, incremental compilation or generating a diagram. Open the command palette and run the DVT: Start Thread Dump Collector command. You may also start the collector upfront and then trigger the action. The important thing is that it runs while the problematic behavior is in progress.

When done, run the DVT: Stop Thread Dump Collector command. The thread dump file is generated under the directory pointed by the $DVT_USER_DIR environment variable, by default the .dvt directory in your home, and it is automatically opened in the editor.

Alternatively, you can start and stop the Thread Dump collector by using the toolbar button from the Diagnostics view. This view presents real-time information about the language server and the client, such as version, used memory, environment variables, and networking metrics.

Sharing the Thread Dump

The easiest way to share the Thread Dump with us is by reporting an issue from within VS Code. Simply run the DVT: Report an Issue command. Application logs and diagnostic files, including the thread dumps, are attached by default. You can preview any file using the magnifying glass icon.

Fill in your contact information and press send, or save as a .zip file and manually send it over email to support@amiq.com.