diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -76,9 +76,7 @@ func Init() { // Use --prof for profiling JS. if *flagGoProf != "" { f, err := os.Create(*flagGoProf) - if err != nil { - panic(err) - } + check(err) pprof.StartCPUProfile(f) defer pprof.StopCPUProfile() } |