Skip to content

Commit

Permalink
Add block & mutex pprof type support (#288)
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Aug 7, 2024
1 parent 8898d5b commit bf96edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type PprofParam struct {

func (s *InstanceState) GetPprofCommand(ctx context.Context, p *PprofParam) error {
switch p.Type {
case "goroutine", "heap", "profile", "allocs":
case "goroutine", "heap", "profile", "allocs", "block", "mutex":
default:
return errors.New("invalid pprof metric type provided")
}
Expand Down

0 comments on commit bf96edd

Please sign in to comment.