Fixes for pprof support in 14.6.md

This commit is contained in:
Anchor
2015-03-04 23:05:39 -08:00
committed by James Miranda
parent b3a9efbe7e
commit 1995a18ca7

View File

@@ -8,9 +8,9 @@ A great feature of Go's standard library is its code performance monitoring tool
In fact, `net/http/pprof` simply exposes runtime profiling data from the `runtime/pprof` package on an HTTP port.
## Beego support pprof
## pprof support in Beego
Currently beego framework adds pprof, this feature is not turned on by default, if you need to test performance, view the execution goroutine such information, in fact, Go's default package "net/http/pprof" already has this feature, and if Go manner in accordance with the default Web, you can use the default, but because beego repackaged ServHTTP function, so if you can not open the default includes this feature, so the need for internal reform beego support pprof.
The Beego framework currently supports pprof, however it is not not turned on by default. If you need to test the performance of your application, (for instance by viewing the execution goroutine such information, in fact, Go's default package "net/http/pprof" already has this feature, and if Go manner in accordance with the default Web, you can use the default, but because beego repackaged ServHTTP function, so if you can not open the default includes this feature, so the need for internal reform beego support pprof.
- First in beego.Run function automatically according to whether the variable load performance pack