Use ezprof to profile
This commit is contained in:
@@ -3,8 +3,7 @@ package main
|
||||
import "git.tebibyte.media/sashakoshka/tomo"
|
||||
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
|
||||
import _ "git.tebibyte.media/sashakoshka/tomo/backends/x"
|
||||
import _ "net/http/pprof"
|
||||
import "net/http"
|
||||
import _ "git.tebibyte.media/sashakoshka/ezprof/hook"
|
||||
|
||||
func main () {
|
||||
tomo.Run(run)
|
||||
@@ -15,8 +14,4 @@ func run () {
|
||||
window.SetTitle("Draw Test")
|
||||
window.Adopt(testing.NewArtist())
|
||||
window.OnClose(tomo.Stop)
|
||||
window.Show()
|
||||
go func () {
|
||||
http.ListenAndServe("localhost:9090", nil)
|
||||
} ()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user