Add cpu-profiling to kpod

Add a global flag for cpu-profiling to allow us to
profile kpod for performance issues.

To parse its results, use:

go tool pprof --text <profile_path>

Signed-off-by: baude <bbaude@redhat.com>

Closes: #36
Approved by: mheon
This commit is contained in:
baude
2017-11-09 09:29:15 -06:00
committed by Atomic Bot
parent a0476f6529
commit 55c9cfb80e
3 changed files with 23 additions and 1 deletions

View File

@ -26,6 +26,9 @@ has the capability to debug pods/images created by crio.
**--config value, -c**=**"config.file"**
Path of a config file detailing container server configuration options
**--cpu-profile**
Path to where the cpu performance results should be written
**--log-level**
log messages above specified level: debug, info, warn, error (default), fatal or panic