How to profile pthread mutex in linux?

前端 未结 5 1440
名媛妹妹
名媛妹妹 2021-02-01 19:20

I would like to know how to profile a pthread mutex to see if there are any locking contention points in my code. (who likes contentious code, right? :) I know how to do a more

5条回答
  •  北海茫月
    2021-02-01 20:07

    Its been 6+ years, but for the reference I would like to add another link for off-cpu time tracing which supposed to show your mutex contention. http://www.brendangregg.com/offcpuanalysis.html

提交回复
热议问题