Posted in

为什么pprof cpu profile显示100%用户态,但top却显示sys高达45%?——Go syscall封装层锁竞争封顶揭秘

第一章:现象还原与问题定位 某日 … 为什么pprof cpu profile显示100%用户态,但top却显示sys高达45%?——Go syscall封装层锁竞争封顶揭秘Read more

Posted in

Go函数性能瓶颈定位三板斧:pprof CPU profile + trace + go tool compile -S 函数汇编指令交叉验证法

第一章:Go函数性能瓶颈定位三板 … Go函数性能瓶颈定位三板斧:pprof CPU profile + trace + go tool compile -S 函数汇编指令交叉验证法Read more

Posted in

【Go编辑器性能调优七步法】:从pprof CPU profile→trace goroutine block→优化chan缓冲→最终P99延迟降至8.3ms

第一章:Go语言文本编辑器的性能 … 【Go编辑器性能调优七步法】:从pprof CPU profile→trace goroutine block→优化chan缓冲→最终P99延迟降至8.3msRead more