macos 你有 kcachegrind 之类的 Mac 分析工具吗
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4473185/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
do you have kcachegrind like profiling tools for mac
提问by indianwebdevil
Can anybody tell me about the tools you have for profiling like kcachegrind wingrind valgrind for mac platform.
任何人都可以告诉我您拥有的用于分析的工具,例如 kcachegrind wingrind valgrind for mac 平台。
I don't think these work on mac, i have also quick check on that.
我认为这些在 mac 上不起作用,我也快速检查了一下。
回答by mr-sk
I ended up using qcachegrind on OSX. It can be installed via brew
我最终在 OSX 上使用了 qcachegrind。它可以通过 brew 安装
brew install qcachegrind
or, to enable graphvizsupport:
或者,启用graphviz支持:
brew install qcachegrind --with-graphviz
What's great about this program is that I successfully loaded a 6.1GB cachegrind file on my MacBook Pro! Pretty slick!
这个程序的伟大之处在于我成功地在我的 MacBook Pro 上加载了一个 6.1GB 的 cachegrind 文件!很滑!
回答by GlennR
Try the qcachegrind + Graphviz killer combo.
试试 qcachegrind + Graphviz 杀手级组合。
It installs quickly via brew, which is nice.
它通过 brew 快速安装,这很好。
Check out theseinstructions, basically install it via:
查看这些说明,基本上通过以下方式安装它:
brew install qcachegrind
which will download other dependencies such as qt
and graphviz
.
这将下载其他依赖项,例如qt
和graphviz
。
回答by kenorb
You can install KCacheGrind using MacPorts.
您可以使用MacPorts安装 KCacheGrind 。
There are also some alternatives like:
还有一些替代方案,例如:
- WebGrind
- qcachegrind(
brew install qcachegrind
) XHProf: A Hierarchical Profiler for PHP(
pecl install xhprof
)MCGpremium app can analyse your application profile data natively on your Mac (released to the Mac App Storeat $27)
Profiling Viewer, available on App Store at $25
Older: MacCallGrind(semi-commercial alternative, free version which is limited to 3MB grind files)
Image: Homepage of MCG
- 网络研磨
- qcachegrind(
brew install qcachegrind
) XHProf:PHP 的分层分析器(
pecl install xhprof
)MCG高级应用程序可以在您的 Mac 上本地分析您的应用程序配置文件数据(发布到Mac App Store,售价 27 美元)
Profiling Viewer,可在 App Store 上以 25 美元的价格购买
旧版:MacCallGrind(半商业替代品,免费版,仅限 3MB 研磨文件)
图片:MCG 主页
See also: Is there any KCacheGrind alternative for Mac Os X outta there?
回答by raimue
回答by Jan Fabry
回答by nurikabe
MacCallGrindis a semi-commercial alternative available for the Mac. I've experimented with the free version which is limited to 3MB grind files. It's roughly equivalent to WinCacheGrindin terms of functionality.
MacCallGrind是适用于 Mac 的半商业替代品。我已经尝试过限制为 3MB 研磨文件的免费版本。它在功能上大致相当于WinCacheGrind。
回答by Tommy
Apple supply Instrumentsfor monitoring runtime allocation of stuff and finding leaks, Sharkfor explicit profiling and Guard Malloc (directly built into Xcode) for memory allocation debugging. These all come as part of the developer tools.
苹果供应仪器监测的东西运行时间分配和查找泄漏,鲨鱼的内存分配调试明确的分析和卫队的malloc(直接内置到Xcode中)。这些都是开发人员工具的一部分。
回答by shreyasva
valgrind is available for the mac. If you are building a cocoa app, you can use the tools that come with XCode such as leaks, they are very good.
valgrind 适用于 mac。如果你正在构建一个可可应用程序,你可以使用 XCode 附带的工具,例如泄漏,它们非常好。