Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command/operator_debug: add pprof interval #11938

Merged
merged 10 commits into from
Apr 4, 2022
2 changes: 1 addition & 1 deletion command/operator_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ func (c *OperatorDebugCommand) collectPprof(path, id string, client *api.Client,
return // only exit on 403
}
} else {
filename := fmt.Sprintf("profile_%d.prof", interval)
filename := fmt.Sprintf("profile_%04d.prof", interval)
danishprakash marked this conversation as resolved.
Show resolved Hide resolved
err := c.writeBytes(path, filename, bs)
if err != nil {
c.Ui.Error(err.Error())
Expand Down