View xdebug cachegrind files on Mac OS

Xdebug is key when it comes to optimizing PHP code. Today, I heard my colleague boot up a Windows machine just to run an application that could interpret a cachegrind file generated by our development server… surely there must be a Mac equivalent! The following instructions will let you interpret cachegrind files locally on your Mac. You’ll still have to download the cachegrind file locally from your server.

Note that I’m doing this on Mavericks 10.9.2. I will not explain how to install Xdebug on your server or how to create the cachegrind file.

First, install Homebrew on your machine. From your terminal, run :
[shell]
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
[/shell]

Then, run :
[shell]
brew install qcachegrind
brew install graphviz
[/shell]

Then, download your cachegrind file locally to your machine and, to view the output, simply execute

[shell]qcachegrind cachegrind.out.26620[/shell]

You will get something that looks like this :

Screenshot of what qcachegrind produces.
Screenshot of what qcachegrind produces.

Optimize away!

PS: For live debugging via xdebug, I use codebugapp.com.

167 thoughts on “View xdebug cachegrind files on Mac OS”

  1. Pingback: crash test dev
  2. Great blog right here! Additionally your website so much up fast! What web host are you the usage of? Can I get your affiliate link for your host? I wish my website loaded up as quickly as yours lol|

  3. Hello! I’ve been reading your web site for some time now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to mention keep up the excellent work!|

  4. Hi, Neat post. There is a problem with your site in internet explorer, might test this? IE nonetheless is the market leader and a large section of folks will leave out your magnificent writing because of this problem.|

  5. May I just say what a comfort to uncover someone who actually understands what they are discussing online. You certainly understand how to bring an issue to light and make it important. More and more people have to read this and understand this side of your story. I was surprised that you are not more popular since you definitely possess the gift.|

  6. Its such as you read my thoughts! You seem to grasp so much approximately this, like you wrote the e-book in it or something. I believe that you simply can do with some percent to force the message house a bit, however other than that, this is wonderful blog. A fantastic read. I’ll certainly be back.|

  7. Great weblog right here! Also your site rather a lot up very fast! What web host are you the use of? Can I get your associate hyperlink in your host? I want my web site loaded up as fast as yours lol|

  8. I am extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it is rare to see a nice blog like this one nowadays.|

  9. I really like your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to know where u got this from. cheers|

  10. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is fantastic blog. A great read. I will definitely be back.|

  11. Right here is the right webpage for anybody who hopes to find out about this topic. You understand so much its almost tough to argue with you (not that I really would want to…HaHa). You definitely put a fresh spin on a topic that has been written about for many years. Wonderful stuff, just great!|

  12. Just wish to say your article is as surprising. The clearness on your publish is just spectacular and i could think you’re a professional on this subject. Fine together with your permission let me to grab your feed to keep up to date with imminent post. Thank you a million and please continue the rewarding work.|

  13. Hello there, simply turned into aware of your blog through Google, and found that it is truly informative. I’m going to watch out for brussels. I will appreciate for those who continue this in future. Numerous people will likely be benefited from your writing. Cheers!|

  14. Hello there, There’s no doubt that your site could be having internet browser compatibility problems. When I look at your website in Safari, it looks fine however, when opening in IE, it has some overlapping issues. I simply wanted to give you a quick heads up! Aside from that, excellent website!|

  15. What i don’t realize is actually how you’re not really a lot more well-preferred than you may be right now. You are so intelligent. You realize therefore significantly relating to this subject, produced me individually imagine it from numerous varied angles. Its like men and women aren’t interested until it’s one thing to do with Girl gaga! Your personal stuffs great. All the time handle it up!|

  16. Whats up this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be enormously appreciated!|

  17. I was wondering if you ever thought of changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two pictures. Maybe you could space it out better?|

  18. Wonderful beat ! I would like to apprentice even as you amend your website, how can i subscribe for a weblog site? The account helped me a acceptable deal. I were tiny bit acquainted of this your broadcast offered shiny clear concept|

  19. I’m really inspired together with your writing talents and also with the layout in your blog. Is that this a paid subject or did you modify it yourself? Either way stay up the excellent high quality writing, it is rare to peer a nice blog like this one today..|

  20. Hey There. I found your weblog using msn. That is a very smartly written article. I’ll make sure to bookmark it and return to learn extra of your helpful information. Thank you for the post. I will certainly return.|

  21. The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a 40 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is totally off topic but I had to share it with someone!|

  22. Howdy! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Thank you for sharing!|

  23. First of all I would like to say great blog! I had a quick question that I’d like to ask if you do not mind. I was interested to find out how you center yourself and clear your mind before writing. I have had a hard time clearing my mind in getting my ideas out there. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any recommendations or hints? Thank you!|

  24. Hello there, just became aware of your blog through Google, and found that it’s truly informative. I am gonna watch out for brussels. I will appreciate if you continue this in future. Numerous people will be benefited from your writing. Cheers!|

  25. It is appropriate time to make some plans for the longer term and it is time to be happy. I’ve learn this publish and if I could I wish to recommend you some interesting issues or advice. Maybe you can write subsequent articles relating to this article. I wish to learn even more issues approximately it!|

  26. We stumbled over here from a different web page and thought I might as well check things out. I like what I see so i am just following you. Look forward to looking into your web page yet again.|

  27. I was curious if you ever thought of changing the page layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 images. Maybe you could space it out better?|

  28. I don’t know whether it’s just me or if perhaps everyone else experiencing issues with your blog. It looks like some of the written text on your posts are running off the screen. Can somebody else please comment and let me know if this is happening to them too? This may be a issue with my internet browser because I’ve had this happen before. Thank you|

  29. Hello just wanted to give you a quick heads up. The words in your article seem to be running off the screen in Ie. I’m not sure if this is a formatting issue or something to do with browser compatibility but I thought I’d post to let you know. The layout look great though! Hope you get the problem solved soon. Cheers|

  30. Undeniably believe that that you stated. Your favourite reason appeared to be at the internet the easiest factor to take note of. I say to you, I certainly get irked whilst other people consider worries that they just don’t recognize about. You controlled to hit the nail upon the top and also outlined out the entire thing without having side-effects , folks could take a signal. Will likely be back to get more. Thank you|

  31. I will right away grab your rss feed as I can not in finding your e-mail subscription link or newsletter service. Do you have any? Please let me realize so that I may just subscribe. Thanks.|

  32. Woah! I’m really loving the template/theme of this website. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between usability and appearance. I must say that you’ve done a awesome job with this. In addition, the blog loads very quick for me on Safari. Excellent Blog!|

  33. Hmm it looks like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to everything. Do you have any tips and hints for beginner blog writers? I’d certainly appreciate it.|

  34. You are so interesting! I don’t believe I’ve read something like this before. So nice to find somebody with some unique thoughts on this subject matter. Seriously.. many thanks for starting this up. This web site is something that is required on the internet, someone with a little originality!|

  35. hi!,I really like your writing very so much! percentage we be in contact more about your article on AOL? I require an expert in this space to unravel my problem. May be that’s you! Having a look forward to peer you. |

  36. Hey there, I think your website might be having browser compatibility issues. When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, excellent blog!|

  37. This design is wicked! You definitely know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you presented it. Too cool!|

  38. Pingback: Google
  39. Pingback: Google
  40. Pingback: cannabidiol oil
  41. Pingback: cbd oil
  42. Pingback: Vape hardware
  43. Pingback: forex trading
  44. Pingback: vibrator
  45. Pingback: Marijuana Strains
  46. Pingback: THC Vape Cartridge
  47. Pingback: Hydrocodone
  48. Pingback: Get it now
  49. Pingback: Agen Poker Pulsa
  50. Pingback: apple headquarters
  51. Pingback: satta king 686
  52. Pingback: firdous lawn
  53. Pingback: urdu dramas
  54. Pingback: gifts
  55. Pingback: butt plug
  56. Pingback: couples sex toys
  57. Pingback: increase DR fast
  58. Pingback: link referencyjny
  59. Pingback: viagra
  60. Pingback: viagra
  61. Pingback: viagra
  62. Pingback: Klik Disini
  63. Pingback: viagra
  64. Pingback: Almeta Hoefler
  65. Pingback: viagra
  66. Pingback: cbd for pain
  67. Pingback: marijuana
  68. Pingback: cananbis oil
  69. Pingback: LuckyCrush
  70. Pingback: Grand Daddy Purple
  71. Pingback: Vape Shops Near Me
  72. Pingback: 1P-LSD Blotters
  73. Pingback: Benefits of Vaping
  74. Pingback: Weed Wax
  75. Pingback: reshp xxx
  76. Pingback: learn more
  77. Pingback: adam and eve
  78. Pingback: Cherry Pie Strain
  79. Pingback: Joel Osteen Wife
  80. Pingback: نقل عفش
  81. Pingback: cannabidiol
  82. Pingback: cours de guitare
  83. Pingback: cbd oil
  84. Pingback: cannabidiol
  85. Pingback: pure cbd oil
  86. Pingback: cbd oil
  87. Pingback: cbd oil
  88. Pingback: SEO
  89. Pingback: fda registration
  90. Pingback: Jewelry

Leave a Reply to suman Cancel reply

Your email address will not be published. Required fields are marked *