Skip to content

Commit 7055f45

Browse files
committed
docs/features: add "Go Test: Profile" feature screenshot
Change-Id: Ieb8a52b40be374466dc07f415c34af54b2529636 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/446869 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> TryBot-Result: kokoro <[email protected]>
1 parent 2352869 commit 7055f45

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/features.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ This document describes the features supported by this extension.
3535
* [Run your code](#run-your-code)
3636
* [Test and benchmark](#test-and-benchmark)
3737
* [Code coverage](#code-coverage)
38+
* [Profiling](#profiling)
3839
* [Debug your code](#debugging)
3940
* [Other](#other)
4041
* [Go Playground](#go-playground)
@@ -220,14 +221,22 @@ Behind the scenes, the `Debug: Start without Debugging` command calls `go run`.
220221

221222
### Test and benchmark
222223

223-
[Test UI](https://code.visualstudio.com/api/extension-guides/testing) and [Code lenses](https://code.visualstudio.com/blogs/2017/02/12/code-lens-roundup) allow users to easily run tests and benchmarks for a given function, file, package, or workspace. Alternatively, the same functionality is available through a set of commands: [`Go: Test Function At Cursor`](commands.md#go-test-function-at-cursor), [`Go: Test File`](commands.md#go-test-file), [`Go: Test Package`](commands.md#go-test-package), and [`Go: Test All Packages in Workspace`](commands.md#go-test-all-packages-in-workspace).
224+
[Test UI](https://code.visualstudio.com/api/extension-guides/testing) and [Code lenses](https://code.visualstudio.com/blogs/2017/02/12/code-lens-roundup) allow users to easily run tests, benchmarks, and profiles for a given function, file, package, or workspace.
225+
226+
Alternatively, the same functionality is available through a set of commands: [`Go: Test Function At Cursor`](commands.md#go-test-function-at-cursor), [`Go: Test File`](commands.md#go-test-file), [`Go: Test Package`](commands.md#go-test-package), and [`Go: Test All Packages in Workspace`](commands.md#go-test-all-packages-in-workspace).
224227

225228
<div style="text-align: center;"><img src="images/testexplorer.gif" alt="Testing UI" style="width: 75%"> </div>
226229

227230
### Code Coverage
228231

229232
Show code coverage in the editor, either after running a test or on-demand. This can be done via the commands: [`Go: Apply Cover Profile`](commands.md#go-apply-cover-profile) and [`Go: Toggle Test Coverage in Current Package`](commands.md#go-toggle-test-coverage-in-current-package).
230233

234+
### Profiling
235+
236+
"Go Test: Profile" menu in [Test UI](https://code.visualstudio.com/api/extension-guides/testing) collects CPU/Memory/Mutex profiles and allows visualizing them using pprof (`go tool pprof`).
237+
238+
<div style="text-align: center;"><img src="images/testexplorer-pprof.gif" alt="Profiling" style="width: 75%"> </div>
239+
231240
## [Debugging](debugging.md)
232241

233242
This extension offers debugging of Go programs. See the [debugging documentation](debugging.md) for more information.

docs/images/testexplorer-pprof.gif

1.4 MB
Loading

0 commit comments

Comments
 (0)