2019-11-02 10:54:41 +09:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-12-21 19:57:18 +09:00
|
|
|
"os"
|
|
|
|
"runtime/pprof"
|
|
|
|
|
2019-11-02 10:54:41 +09:00
|
|
|
"github.com/akiyosi/goneovim/editor"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2020-12-21 19:57:18 +09:00
|
|
|
// 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()
|
|
|
|
}
|