You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
If you run into performance issues while using the language server, it can be very helpful to attach a CPU or memory profile with the issue report. To capture one, first [install Go](https://golang.org/doc/install) and then:
26
+
27
+
Capture a heap (memory) profile:
28
+
29
+
```bash
30
+
go tool pprof -svg $GOPATH/bin/go-langserver http://localhost:6060/debug/pprof/heap > heap.svg
31
+
```
32
+
33
+
Capture a CPU profile:
34
+
35
+
```bash
36
+
go tool pprof -svg $GOPATH/bin/go-langserver http://localhost:6060/debug/pprof/profile > cpu.svg
37
+
```
38
+
39
+
Since these capture the active resource usage, it's best to run these commands while the issue is occuring (i.e. while memory or CPU is high).
0 commit comments