diff options
| author | George Kuan <commonlisp@gmail.com> | 2015-04-26 19:37:14 -0700 |
|---|---|---|
| committer | George Kuan <commonlisp@gmail.com> | 2015-04-26 19:37:14 -0700 |
| commit | eb7b52f95ad2af7378be8ca2ab3bbba8b1a00f34 (patch) | |
| tree | 7d1636f0eac6bb135ba0d6ca2b4b6fd6da62dd18 /profiling.md | |
| parent | 77e469b2870d2fda54fa2555d63edf5965cc26b8 (diff) | |
Corrected some typos
Diffstat (limited to 'profiling.md')
| -rw-r--r-- | profiling.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profiling.md b/profiling.md index 1e14b5c4..03b17766 100644 --- a/profiling.md +++ b/profiling.md @@ -4,7 +4,7 @@ This document explain how to plug in profiler and how to profile Kubernetes serv ## Profiling library -Go comes with inbuilt 'net/http/pprof' profiling library and profiling web service. The way service works is binding debug/pprof/ subtree on a running webserver to the profiler. Reading from subpages of debug/pprof returns pprof-formated profiles of the running binary. The output can be processed offline by the tool of choice, or used as an input to handy 'go tool pprof', which can graphically represent the result. +Go comes with inbuilt 'net/http/pprof' profiling library and profiling web service. The way service works is binding debug/pprof/ subtree on a running webserver to the profiler. Reading from subpages of debug/pprof returns pprof-formatted profiles of the running binary. The output can be processed offline by the tool of choice, or used as an input to handy 'go tool pprof', which can graphically represent the result. ## Adding profiling to services to APIserver. @@ -31,4 +31,4 @@ to get 30 sec. CPU profile. ## Contention profiling -To enable contetion profiling you need to add line ```rt.SetBlockProfileRate(1)``` in addition to ```m.mux.HandleFunc(...)``` added before (```rt``` stands for ```runtime``` in ```master.go```). This enables 'debug/pprof/block' subpage, which can be used as an input to ```go tool pprof```. +To enable contention profiling you need to add line ```rt.SetBlockProfileRate(1)``` in addition to ```m.mux.HandleFunc(...)``` added before (```rt``` stands for ```runtime``` in ```master.go```). This enables 'debug/pprof/block' subpage, which can be used as an input to ```go tool pprof```. |
