Skip to content

Commit 52abbd9

Browse files
authored
Update troubleshooting.mdx (#598)
Added a section on how to record a CPU profile to diagnose performance issues with Cody in VSCode <!-- Explain the changes introduced in your PR --> ## Pull Request approval Although pull request approval is not enforced for this repository in order to reduce friction, merging without a review will generate a ticket for the docs team to review your changes. So if possible, have your pull request approved before merging.
1 parent c25eac4 commit 52abbd9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/cody/troubleshooting.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,31 @@ Note that you may need to quit VSCode first, then run that command to re-launch
123123

124124
![](https://gist.github.com/assets/458591/d590636b-31e5-4436-8039-ee62b7a8e59f)
125125

126+
### Record a CPU profile for Cody in VSCode
127+
128+
If you are experiencing performance issues with Cody in VSCode, recording a CPU profile can help diagnose the problem. Here’s how you can capture a CPU profile:
129+
130+
1. **Open Developer Tools**:
131+
- In VSCode, go to the Command Palette (`Ctrl+Shift+P` on Windows/Linux, `Cmd+Shift+P` on macOS).
132+
- Type `Developer: show running extensions` and select it to open running extensions.
133+
134+
2. **Record the CPU Profile**:
135+
- There you should see Cody in the list. Right click on it and start a host profile.
136+
- This will show you the running profile in the bottom right of the window.
137+
- Reproduce the issue you are experiencing with Cody.
138+
- Once you have reproduced the issue, click the message in the bottom right you stop the trace.
139+
140+
3. **Save the CPU Profile**:
141+
- After stopping the trace, you need to go back to the Developer: show running extensions view.
142+
- Right click Cody and click `Save extension profile`.
143+
144+
4. **Share the CPU Profile**:
145+
- Attach the `.cpuprofile` file to your issue report on GitHub or share it with the support team for further analysis.
146+
147+
Following these steps will help the team understand and resolve the performance issues more effectively.
148+
149+
150+
126151
## JetBrains IntelliJ extension
127152

128153
### Access Cody logs

0 commit comments

Comments
 (0)