enable pprof

This commit is contained in:
Maycon Santos
2025-05-09 06:05:04 +02:00
parent 93a0315120
commit 760d61c7a3
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -134,6 +134,7 @@ var (
},
RunE: func(cmd *cobra.Command, args []string) error {
flag.Parse()
startPprof()
ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()