How to profile memory usage?

后端 未结 4 1470
别那么骄傲
别那么骄傲 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:39

    A "newer" option is HeapTrack. Contrary to massif, it is an instrumented version of malloc/free that stores all the calls and dumps a log.

    The GUI is nice (but requires Qt5 IIRC) and the results timings (because you may want to track time as well) are less biased than valgrind (as they are not emulated).

提交回复
热议问题