From a737901c5d3f49025b714360ce639ef22b6d3dae Mon Sep 17 00:00:00 2001 From: postmannen Date: Mon, 26 Dec 2022 07:22:42 +0100 Subject: [PATCH] block profiling --- cmd/steward/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/steward/main.go b/cmd/steward/main.go index 5465b7f..50fcf39 100644 --- a/cmd/steward/main.go +++ b/cmd/steward/main.go @@ -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()