diff options
| author | mo khan <mo@mokhan.ca> | 2026-01-30 19:47:57 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2026-01-30 19:47:57 -0700 |
| commit | fcba44c9393ad811ff11ee254ff56f826142c759 (patch) | |
| tree | 879d61037bb3f6e3fece3d142821712050128bc1 | |
| parent | e239579f39c7477b3f7aaf84f462b5c9d3ad4daf (diff) | |
refactor: remove GITMAL_PPROF
| -rw-r--r-- | cmd/gitmal/main.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cmd/gitmal/main.go b/cmd/gitmal/main.go index 44a6ef9..c8f1bac 100644 --- a/cmd/gitmal/main.go +++ b/cmd/gitmal/main.go @@ -4,7 +4,6 @@ import ( "fmt" "os" "path/filepath" - "runtime/pprof" "strings" "mokhan.ca/antonmedv/gitmal/internal/generator" @@ -16,25 +15,6 @@ import ( var flagOutput string func main() { - if _, ok := os.LookupEnv("GITMAL_PPROF"); ok { - f, err := os.Create("cpu.prof") - if err != nil { - panic(err) - } - err = pprof.StartCPUProfile(f) - if err != nil { - panic(err) - } - defer f.Close() - defer pprof.StopCPUProfile() - memProf, err := os.Create("mem.prof") - if err != nil { - panic(err) - } - defer memProf.Close() - defer pprof.WriteHeapProfile(memProf) - } - flag.StringVar(&flagOutput, "output", "output", "Output directory") flag.Usage = usage flag.Parse() |
