diff --git a/cmd/obitools/obiannotate/main.go b/cmd/obitools/obiannotate/main.go index a7d72c3..84dbcc6 100644 --- a/cmd/obitools/obiannotate/main.go +++ b/cmd/obitools/obiannotate/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/pprof" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq" @@ -17,12 +14,12 @@ func main() { defer obiseq.LogBioSeqStatus() // go tool pprof -http=":8000" ./obipairing ./cpu.pprof - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // go tool trace cpu.trace // ftrace, err := os.Create("cpu.trace") diff --git a/cmd/obitools/obigrep/main.go b/cmd/obitools/obigrep/main.go index 0b38bdd..eea5cde 100644 --- a/cmd/obitools/obigrep/main.go +++ b/cmd/obitools/obigrep/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/pprof" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq" @@ -17,12 +14,12 @@ func main() { defer obiseq.LogBioSeqStatus() // go tool pprof -http=":8000" ./obipairing ./cpu.pprof - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // go tool trace cpu.trace // ftrace, err := os.Create("cpu.trace") diff --git a/cmd/obitools/obimultiplex/main.go b/cmd/obitools/obimultiplex/main.go index 120385c..ccf44d8 100644 --- a/cmd/obitools/obimultiplex/main.go +++ b/cmd/obitools/obimultiplex/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/pprof" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert" @@ -13,12 +10,12 @@ import ( func main() { - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // ftrace, err := os.Create("cpu.trace") // if err != nil { diff --git a/cmd/obitools/obipairing/main.go b/cmd/obitools/obipairing/main.go index aa349d9..90ade38 100644 --- a/cmd/obitools/obipairing/main.go +++ b/cmd/obitools/obipairing/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/trace" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert" @@ -22,12 +19,12 @@ func main() { // defer pprof.StopCPUProfile() // go tool trace cpu.trace - ftrace, err := os.Create("cpu.trace") - if err != nil { - log.Fatal(err) - } - trace.Start(ftrace) - defer trace.Stop() + // ftrace, err := os.Create("cpu.trace") + // if err != nil { + // log.Fatal(err) + // } + // trace.Start(ftrace) + // defer trace.Stop() optionParser := obioptions.GenerateOptionParser(obipairing.OptionSet) diff --git a/cmd/obitools/obipcr/main.go b/cmd/obitools/obipcr/main.go index 14e5b01..c37c8c4 100644 --- a/cmd/obitools/obipcr/main.go +++ b/cmd/obitools/obipcr/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/pprof" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert" @@ -14,12 +11,12 @@ import ( func main() { // go tool pprof -http=":8000" ./obipairing ./cpu.pprof - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // go tool trace cpu.trace // ftrace, err := os.Create("cpu.trace") diff --git a/cmd/obitools/obitag/main.go b/cmd/obitools/obitag/main.go index aa33b7a..21efffe 100644 --- a/cmd/obitools/obitag/main.go +++ b/cmd/obitools/obitag/main.go @@ -2,9 +2,7 @@ package main import ( "fmt" - "log" "os" - "runtime/pprof" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obitag" @@ -15,12 +13,12 @@ import ( func main() { // go tool pprof -http=":8000" ./build/obitag ./cpu.pprof - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // go tool trace cpu.trace // ftrace, err := os.Create("cpu.trace") diff --git a/cmd/obitools/obiuniq/main.go b/cmd/obitools/obiuniq/main.go index 58f3c83..3ad4360 100644 --- a/cmd/obitools/obiuniq/main.go +++ b/cmd/obitools/obiuniq/main.go @@ -2,9 +2,6 @@ package main import ( "os" - "runtime/pprof" - - log "github.com/sirupsen/logrus" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions" "git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq" @@ -17,12 +14,12 @@ func main() { defer obiseq.LogBioSeqStatus() // go tool pprof -http=":8000" ./obipairing ./cpu.pprof - f, err := os.Create("cpu.pprof") - if err != nil { - log.Fatal(err) - } - pprof.StartCPUProfile(f) - defer pprof.StopCPUProfile() + // f, err := os.Create("cpu.pprof") + // if err != nil { + // log.Fatal(err) + // } + // pprof.StartCPUProfile(f) + // defer pprof.StopCPUProfile() // go tool trace cpu.trace // ftrace, err := os.Create("cpu.trace")