akiyosi.goneovim/cmd/goneovim/main.go

25 lines
428 B
Go
Raw Normal View History

2019-11-02 10:54:41 +09:00
package main
import (
"os"
"runtime/pprof"
2019-11-02 10:54:41 +09:00
"github.com/akiyosi/goneovim/editor"
)
func main() {
// profile the application
// https://blog.golang.org/pprof
// After running the app, do the following:
// $ go tool pprof -http=localhost:9090 cpuprofile
f, err := os.Create("cpuprofile")
if err != nil {
os.Exit(1)
}
defer f.Close()
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
2020-12-17 01:31:07 +09:00
2019-11-02 10:54:41 +09:00
editor.InitEditor()
}