开发者

Need kcachegrind like profiling tools for mac [closed]

开发者 https://www.devze.com 2023-01-31 07:36 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations f开发者_StackOverflowor books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve this question

Need suggestion on tools similar to kcachegrind wingrind valgrind for mac platform.

I don't think these work on mac, I already checked these.


I ended up using qcachegrind on OSX. It can be installed via brew

brew install qcachegrind

or, to enable graphviz support:

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!


Try the qcachegrind + Graphviz killer combo.

It installs quickly via brew, which is nice.

Check out these instructions, basically install it via:

brew install qcachegrind

which will download other dependencies such as qtand graphviz.


You can install KCacheGrind using MacPorts.

There are also some alternatives like:

  • WebGrind
  • qcachegrind (brew install qcachegrind)
  • XHProf: A Hierarchical Profiler for PHP (pecl install xhprof)

  • MCG premium app can analyse your application profile data natively on your Mac (released to the Mac App Store at $27)

  • Profiling Viewer, available on App Store at $25

    Older: MacCallGrind (semi-commercial alternative, free version which is limited to 3MB grind files)

    Need kcachegrind like profiling tools for mac [closed]

    Image: Homepage of MCG

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


Both valgrind and kcachegrind are available for Mac OS X.

You can install them using MacPorts:

sudo port install valgrind kcachegrind


Webgrind runs 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.


MacCallGrind is 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 WinCacheGrind in terms of functionality.


Apple supply Instruments for monitoring runtime allocation of stuff and finding leaks, Shark for explicit profiling and Guard Malloc (directly built into Xcode) for memory allocation debugging. These all come as part of the developer tools.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消