Use ezprof to profile

This commit is contained in:
2023-03-08 20:24:43 -05:00
parent f3c1c95a57
commit 305acea285
8 changed files with 175 additions and 18 deletions

View File

@@ -3,8 +3,6 @@ package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/elements/basic"
import _ "git.tebibyte.media/sashakoshka/tomo/backends/x"
import _ "net/http/pprof"
import "net/http"
func main () {
tomo.Run(run)
@@ -28,9 +26,4 @@ func run () {
window.Adopt(button)
window.OnClose(tomo.Stop)
window.Show()
// just some stuff for profiling, this is not needed for tomo
go func () {
http.ListenAndServe("localhost:9090", nil)
} ()
}