mirror of
https://github.com/postmannen/ctrl.git
synced 2025-03-15 10:57:42 +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
|
var version string
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
defer profile.Start(profile.BlockProfile).Stop()
|
||||||
//defer profile.Start(profile.CPUProfile, profile.ProfilePath(".")).Stop()
|
//defer profile.Start(profile.CPUProfile, profile.ProfilePath(".")).Stop()
|
||||||
//defer profile.Start(profile.TraceProfile, 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()
|
c := steward.NewConfiguration()
|
||||||
err := c.CheckFlags()
|
err := c.CheckFlags()
|
||||||
|
|
Loading…
Add table
Reference in a new issue