21 lines
411 B
Lua
21 lines
411 B
Lua
return {
|
|
name = "go: cpu profile",
|
|
desc = "Generate CPU profile (cpu.out)",
|
|
builder = function()
|
|
return {
|
|
cmd = { "go", "test" },
|
|
args = {
|
|
"-run=^$",
|
|
"-bench=.",
|
|
"-cpuprofile=cpu.out",
|
|
"./...",
|
|
},
|
|
components = {
|
|
"default",
|
|
"on_output_quickfix",
|
|
{ "on_complete_notify", statuses = { "SUCCESS" } },
|
|
},
|
|
}
|
|
end,
|
|
}
|