Skip to content

Commit 5cae442

Browse files
authored
Add option to launch test with pprof profiling enabled (microsoft#889)
1 parent 6d650e8 commit 5cae442

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.vscode/launch.template.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@
2828
"-test.run",
2929
"TestSubmodule/${fileBasename}"
3030
]
31+
},
32+
{
33+
"name": "Launch submodule test (with profiling)",
34+
"type": "go",
35+
"request": "launch",
36+
"mode": "test",
37+
"program": "${workspaceFolder}/internal/testrunner",
38+
"args": [
39+
"-test.cpuprofile",
40+
"${workspaceFolder}/test.prof",
41+
"-test.run",
42+
"TestSubmodule/${fileBasename}"
43+
]
3144
}
3245
]
3346
}

0 commit comments

Comments
 (0)