forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new pprof command allows to user to collect CPU and heap profiles from nodes in a roachprod cluster using pprof's HTTP endpoints. Profiles are collected in parallel and stored in the current working directory of the machine running pprof. The command can also optionally open the profiles using `go tool pprof`. Some usage examples: # Capture CPU profile for all nodes in the cluster roachprod pprof CLUSTERNAME # Capture CPU profile for the first node in the cluster for 60 seconds roachprod pprof CLUSTERNAME:1 --duration 60s # Capture a Heap profile for the first node in the cluster roachprod pprof CLUSTERNAME:1 --heap # Same as above roachprod pprof-heap CLUSTERNAME:1 Fixes cockroachdb#62309 Release note: None
- Loading branch information
1 parent
52d81ca
commit 0a5f420
Showing
3 changed files
with
195 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters