From 1995a18ca737ed83b9779c903672cb88d751f8b4 Mon Sep 17 00:00:00 2001 From: Anchor Date: Wed, 4 Mar 2015 23:05:39 -0800 Subject: [PATCH] Fixes for pprof support in 14.6.md --- en/14.6.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/14.6.md b/en/14.6.md index 2d9888c0..0a493472 100644 --- a/en/14.6.md +++ b/en/14.6.md @@ -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