https://pingcap.com/blog-cn/flame-graph/

https://pingcap.com/blog-cn/flame-graph/  

因为 TiKV 是自己内部使用了 jemalloc,并没有用系统的 malloc,所以我们不能直接用 perf 来探查系统的 malloc 函数。幸运的是,perf 能支持动态添加探针,我们将 TiKV 的 malloc 加入:

perf probe -x /deploy/bin/tikv-server -a malloc  
posted @ 2019-11-09 17:02  papering  阅读(272)  评论(0编辑  收藏  举报