简体   繁体   中英

How to find the CPU and Memory Usage of a Process in Mac OS X using Valgrind ?

Is there a specific tool in Valgrind which can be used to find the CPU and Memory usage of a given process ? I went through the tool given in http://valgrind.org/docs/manual/manual.html . Just not sure which tool to use for CPU and Memory Profiling.

Use the massif tool to get memory-usage information. I am not sure what you mean by "CPU usage", what exactly do you want to profile? If you want to know how many chache-hits/misses you are having cachegrind is the right tool for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM