Files
kubernetes/pkg/kubectl/cmd
Damien Lespiau 5d634e7db6 Add go profile instrumentation to kubectl
This commit adds two new global options to kubectl: --profile and
--profile-output, writing out go profiles to disk to debug interesting and
unexpected kubectl behaviour.

As an example, here is how to capture a block file, eg. for how long are we
blocked on I/O and where?

$ kubectl get nodes --profile=mutex -v6
$ go tool pprof -png ./profile.pprof > out.png
$ google-chrome out.png

Fixes: #68679
2018-09-18 18:28:43 +01:00
..
2018-09-03 15:34:50 +02:00
2018-07-16 15:16:32 +08:00
2018-08-21 17:08:30 +02:00
2018-06-21 14:42:33 +08:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00