Analyze running performance and time consumption of beego with golang pprof
Go has a package name pprof that we can use directly to analyze the performance of go app, include beego. The report of pprof tells will tell us CPU cost, Memory cost, Time (CPU) cost an so on. 1 Turn on pprof Add a new controller to collect analyze data: package analyze import ( "github.com/astaxie/beego&…