Continue SGR parse even if reset is found+Heap pprof profile

This commit is contained in:
bloeys
2022-09-25 05:03:57 +04:00
parent 81f203a59f
commit 32f086242c
3 changed files with 8 additions and 3 deletions

View File

@ -180,7 +180,7 @@ func main() {
p.win.SDLWin.GLSwap()
if consts.Mode_Debug {
var pf, _ = os.Create("pprof.cpu")
var pf, _ = os.Create("cpu.pprof")
defer pf.Close()
pprof.StartCPUProfile(pf)
}
@ -189,6 +189,10 @@ func main() {
if consts.Mode_Debug {
pprof.StopCPUProfile()
var heapProfile, _ = os.Create("heap.pprof")
defer heapProfile.Close()
pprof.WriteHeapProfile(heapProfile)
}
}