Commit fcba44c
Changed files (1)
cmd
gitmal
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()