mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
block profiling
This commit is contained in:
parent
8015c46cba
commit
a737901c5d
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue