Files
nvim-config/lua/overseer/template/user/go_cpu_profile.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,
}