简体   繁体   English

如何使用Valgrind在Mac OS X中查找进程的CPU和内存使用情况?

[英]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 ? Valgrind中是否有特定工具可用于查找给定进程的CPU和内存使用情况? I went through the tool given in http://valgrind.org/docs/manual/manual.html . 我浏览了http://valgrind.org/docs/manual/manual.html中提供的工具。 Just not sure which tool to use for CPU and Memory Profiling. 只是不确定要用于CPU和内存分析的工具。

Use the massif tool to get memory-usage information. 使用massif工具获取内存使用信息。 I am not sure what you mean by "CPU usage", what exactly do you want to profile? 我不确定您所说的“ CPU使用率”是什么意思,您到底要配置什么? If you want to know how many chache-hits/misses you are having cachegrind is the right tool for you. 如果您想知道您有多少次缓存命中/未命中,那么cachegrind是适合您的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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