Gopher China Go Tools

10:42 19 Jul 2018

fengzhide

go pprof

go tool pprof
go-torch
2

go tool trace

./trace > trace.out
go tool trace trace.out

需要安装Graphviz
3

GODEBUG

GODEBUG=gotrace=1 ./godebug

gc # @#s #%: #+#+# ms clock, #+#/#/#+# ms cpu, #->#-># MB, # MB goal, # P
where the fields are as follows:
gc #        the GC number, incremented at each GC
@#s         time in seconds since program start
#%          percentage of time spent in GC since program start
#+...+#     wall-clock/CPU times for the phases of the GC
#->#-># MB  heap size at GC start, at GC end, and live heap
# MB goal   goal heap size
# P         number of processors used
4

godoc

godoc -analysis pointer -http=127.0.0.1:8080 (-play)
5

go lib

logrus
cobra

Hey
json-iterator
6

Thank you

10:42 19 Jul 2018

fengzhide