Add flag --cpu-profile to enable pprof

To collect CPU profile information added a flag `--cpu-profile`
which is a path to file where this collected information will be
dumped.

Fixes #464

Signed-off-by: Suraj Deshmukh <surajssd009005@gmail.com>
This commit is contained in:
Suraj Deshmukh 2017-04-25 11:21:37 +05:30
parent eb257d2526
commit 2699198610
2 changed files with 18 additions and 0 deletions

View file

@ -110,6 +110,9 @@ ocid is meant to provide an integration path between OCI conformant runtimes and
**--cni-plugin-dir**=""
CNI plugin binaries directory (default: "/opt/cni/bin/")
**--cpu-profile**
Set the CPU profile file path
**--version, -v**
Print the version