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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 07:27:43  来源:igfitidea点击:

do you have kcachegrind like profiling tools for mac

macosmacportsprofiling

提问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 qtand graphviz.

这将下载其他依赖项,例如qtgraphviz

回答by kenorb

You can install KCacheGrind using MacPorts.

您可以使用MacPorts安装 KCacheGrind 。

There are also some alternatives like:

还有一些替代方案,例如:

See also: Is there any KCacheGrind alternative for Mac Os X outta there?

另请参阅:是否有适用于 Mac Os X 的 KCacheGrind 替代品?

回答by raimue

Both valgrind and kcachegrind are available for Mac OS X.

valgrind 和 kcachegrind 都可用于 Mac OS X。

You can install them using MacPorts:

您可以使用MacPorts安装它们:

sudo port install valgrind kcachegrind

回答by Jan Fabry

Webgrindruns in PHP and can read the cachegrind output of XDebug. It currently doesn't offer all the functionality of KCacheGrind, but it is super simple to install, and seems to have renewed activity.

Webgrind在 PHP 中运行,可以读取 XDebug 的 cachegrind 输出。它目前不提供 KCacheGrind 的所有功能,但安装起来超级简单,而且似乎有更新的活动。

回答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 附带的工具,例如泄漏,它们非常好。