8000 Add head dump command to Cody debug options by pkukielka · Pull Request #7646 · sourcegraph/cody · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add head dump command to Cody debug options #7646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

pkukielka
Copy link
Contributor

Changes

This PR adds Heap Dump action for both VSC and JetBrains.
It can be used for debugging memory leaks and general memory performance.

Interesting fact:
Doing a heap dump takes few seconds in VSC but few minutes in JetBrains.
We definitely should explain why that happens (and hopefully fix it).

Test plan

  1. Open JetBrains IDE
  2. Click Shift shift and type "cody heap"
  3. Hit enter to confirm running "Cody: Agent Heap Dump" action
  4. Select location where you want to save a dump

After few minutes IDE should display notification about dump being ready.

The same can be done with VSC. To find the action hit Ctrl+Shift+P.

Copy link
Contributor
@hitesh-1997 hitesh-1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @pkukielka !!

@hitesh-1997 hitesh-1997 merged commit 93f73b5 into main Apr 1, 2025
21 of 22 checks passed
@hitesh-1997 hitesh-1997 deleted the pkukielka/add-heapdump-cmd-2 branch April 1, 2025 21:53
hitesh-1997 pushed a commit that referenced this pull request Apr 2, 2025
## Changes

This PR adds Heap Dump action for both VSC and JetBrains.
It can be used for debugging memory leaks and general memory
performance.

**Interesting fact:**
Doing a heap dump takes few seconds in VSC but few minutes in JetBrains.
We definitely should explain why that happens (and hopefully fix it).

## Test plan

1. Open JetBrains IDE
2. Click `Shift shift` and type "cody heap"
3. Hit enter to confirm running "Cody: Agent Heap Dump" action
4. Select location where you want to save a dump
 
After few minutes IDE should display notification about dump being
ready.

The same can be done with VSC. To find the action hit `Ctrl+Shift+P`.


 <br> Backport 93f73b5 from #7646

Co-authored-by: Piotr Kukiełka <pkukielka@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0