mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-23 08:40:18 +01:00
Reverted accidentally committed profiling stuff.
This commit is contained in:
parent
ca634f28ef
commit
fea2286237
@ -8,8 +8,6 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
|
||||||
"runtime/pprof"
|
|
||||||
|
|
||||||
"bitbucket.org/s_l_teichmann/mtsatellite/common"
|
"bitbucket.org/s_l_teichmann/mtsatellite/common"
|
||||||
)
|
)
|
||||||
@ -29,7 +27,6 @@ func main() {
|
|||||||
transparent bool
|
transparent bool
|
||||||
transparentDim float64
|
transparentDim float64
|
||||||
version bool
|
version bool
|
||||||
cpuProfile string
|
|
||||||
)
|
)
|
||||||
|
|
||||||
defaultBgColor := common.ColorToHex(common.BackgroundColor)
|
defaultBgColor := common.ColorToHex(common.BackgroundColor)
|
||||||
@ -63,7 +60,6 @@ func main() {
|
|||||||
"td", common.DefaultTransparentDim*100.0,
|
"td", common.DefaultTransparentDim*100.0,
|
||||||
"Extra fimming of transparent nodes each depth meter in percent. (shorthand)")
|
"Extra fimming of transparent nodes each depth meter in percent. (shorthand)")
|
||||||
flag.BoolVar(&version, "version", false, "Print version and exit.")
|
flag.BoolVar(&version, "version", false, "Print version and exit.")
|
||||||
flag.StringVar(&cpuProfile, "c", "", "Dump pprof profile to file.")
|
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
@ -71,15 +67,6 @@ func main() {
|
|||||||
common.PrintVersionAndExit()
|
common.PrintVersionAndExit()
|
||||||
}
|
}
|
||||||
|
|
||||||
if cpuProfile != "" {
|
|
||||||
f, err := os.Create(cpuProfile)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
pprof.StartCPUProfile(f)
|
|
||||||
defer pprof.StopCPUProfile()
|
|
||||||
}
|
|
||||||
|
|
||||||
bg := common.ParseColorDefault(bgColor, common.BackgroundColor)
|
bg := common.ParseColorDefault(bgColor, common.BackgroundColor)
|
||||||
|
|
||||||
if !skipBaseLevel {
|
if !skipBaseLevel {
|
||||||
|
Loading…
Reference in New Issue
Block a user