diff --git a/.mise.toml b/.mise.toml index e49496ce0..35b295ba8 100644 --- a/.mise.toml +++ b/.mise.toml @@ -16,6 +16,12 @@ sources = ["**/*.go", "go.mod", "go.sum"] outputs = ["mtg"] run = "go build" +[tasks."build:prof"] +description = "Build binary with profiling enabled" +sources = ["**/*.go", "go.mod", "go.sum"] +outputs = ["mtg"] +run = "go build -tags prof" + [tasks.update] description = "Update dependencies" run = [ diff --git a/run_profile_tag_prof.go b/run_profile_tag_prof.go index 63ca2d8c5..6fa3d9cf2 100644 --- a/run_profile_tag_prof.go +++ b/run_profile_tag_prof.go @@ -3,7 +3,6 @@ package main import ( - "fmt" "net" "net/http" _ "net/http/pprof" //nolint: gosec