How to profile memory usage of a C program

前端 未结 4 442
鱼传尺愫
鱼传尺愫 2021-01-02 17:13

I need to figure out which part of a linux program that I am running, is taking how much (either percentage, or absolute) memory. I need to create a profile of multiple such

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 17:43

    Beside Valgrind, there exists a lot of other memory debugger/profiler. All the following seems to support MIPS (but I've not tried them on that architecture) :

    jemalloc, CCMALLOC, mpatrol, NJAMD, Dmalloc, and even Google's own google-perftools.

提交回复
热议问题