For kubectl, the two most interesting profiles are
block (where do we spend time blocking, eg. waiting for I/O) and
We distribute a
kubectl-instrumented package that supports two new command line options:
To generate a profile, use the
Generate a visualization of the profile with
pprof. You will need to graphviz installed.