Only 5s of data! (#8983)
This is still 200Mb in production, and takes several minutes to process and download. Release Notes: - N/A
This commit is contained in:
parent
4f53e6e9a0
commit
1a9387035d
1 changed files with 4 additions and 3 deletions
|
@ -17,9 +17,10 @@ environment=$1
|
|||
|
||||
target_zed_kube_cluster
|
||||
|
||||
echo "Running perf on collab, collecting 30s of data..."
|
||||
# 5s in production is ~200Mb..., in staging you probably want to bump this up.
|
||||
echo "Running perf on collab, collecting 5s of data..."
|
||||
|
||||
kubectl -n $environment exec -it deployments/collab -- perf record -p 1 -g -m 64 --call-graph dwarf -- sleep 30
|
||||
kubectl -n $environment exec -it deployments/collab -- perf record -p 1 -g -m 64 --call-graph dwarf -- sleep 5
|
||||
|
||||
run="collab-$environment-$(date -Iseconds)"
|
||||
echo "Processing data and downloading to '$run.perf'..."
|
||||
|
@ -29,4 +30,4 @@ kubectl -n $environment exec -it deployments/collab -- perf --no-pager script >
|
|||
which inferno-flamegraph 2>/dev/null || (echo "installing inferno..."; cargo install inferno)
|
||||
|
||||
inferno-collapse-perf "$run.perf" | inferno-flamegraph > "$run.svg"
|
||||
open "$run.svg"
|
||||
open "./$run.svg"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue