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

@@ -11,8 +11,6 @@ import "git.tebibyte.media/sashakoshka/tomo/layouts/basic"
import "git.tebibyte.media/sashakoshka/tomo/elements/basic"
import "git.tebibyte.media/sashakoshka/tomo/elements/fun/music"
import _ "git.tebibyte.media/sashakoshka/tomo/backends/x"
import _ "net/http/pprof"
import "net/http"
const sampleRate = 44100
const bufferSize = 256
@@ -149,9 +147,6 @@ func run () {
piano.Focus()
window.OnClose(tomo.Stop)
window.Show()
go func () {
http.ListenAndServe("localhost:9090", nil)
} ()
}
type Patch struct {