Skip to content

Commit

Permalink
improved: add placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Nov 24, 2021
1 parent 19a22ae commit 8f28ad7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/pprof/cmdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ func addTo(root *cmdr.RootCmdOpt) {
cmdr.NewString("heap").
Titles("mem-profile-type", "mpt").
Description("the profile type for memory profiles, 'heap' or 'allocs'", "").
Placeholder("TYPE").
Group("Profiling-Memory").
AttachTo(root)
cmdr.NewInt(DefaultMemProfileRate).
Titles("mem-profile-rate", "mpr").
Description("the rate for the memory profile", "").
Placeholder("RATE").
Group("Profiling-Memory").
AttachTo(root)

Expand Down

0 comments on commit 8f28ad7

Please sign in to comment.