1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

block profiling

This commit is contained in:
postmannen 2022-12-26 07:22:42 +01:00
parent 8015c46cba
commit a737901c5d

View file

@ -21,9 +21,10 @@ import (
var version string
func main() {
defer profile.Start(profile.BlockProfile).Stop()
//defer profile.Start(profile.CPUProfile, profile.ProfilePath(".")).Stop()
//defer profile.Start(profile.TraceProfile, profile.ProfilePath(".")).Stop()
defer profile.Start(profile.MemProfile, profile.MemProfileRate(1)).Stop()
//defer profile.Start(profile.MemProfile, profile.MemProfileRate(1)).Stop()
c := steward.NewConfiguration()
err := c.CheckFlags()