How to profile memory usage?

后端 未结 4 1468
别那么骄傲
别那么骄傲 2020-11-29 02:44

I am aware of Valgrind, but it just detects memory management issues. What I am searching is a tool that gives me an overview, which parts of my program do consume how much

4条回答
  •  孤独总比滥情好
    2020-11-29 03:37

    Use massif, which is part of the Valgrind tools. massif-visualizer can help you graph the data or you can just use the ms_print command.

提交回复
热议问题