Press "Enter" to skip to content

Month: December 2009

PHP Profilers – A Quick summary

More an aid to memory then anything, here’s the PHP profilers I’ve recently heard about:

XDebug by Derick Rethans
The oldest and most well known profiler. Needs modification of the server’s PHP file to run. Compatible with KCachegrind/WinCacheGrind, MacCallGrind and Webgrind and remote debugging tools. Produces quite large debug files (typically 900Kb to 10Mb compare to XHProf’s 110Kb).
XHProf by Facebook Inc (available via PECL)
Large amount of information provided and allows you to “drill down” by various sections – allows comparison of “diffs” between runs to check performance enhancements. Needs modification of the server’s PHP file to run. Also compatible with the *Grind systems. Used by Facebook and Manga High’s online maths games website, but only currently runs on Linux/FreeBSD. Seems to be preferred by iBuildings (see Profiling with XHProf) which is how I originally heard about it.
PHP Quick Profiler (PQP) by Particle tree
Needs modifications to your PHP code, but does not need the server’s PHP modifying (so it can be used on shared hosting easily). Nice and bright. Used by ParticleTree on their Wufoo product.

Snippet: Predicted Caffeine Intake

Today I’m probably going to be consuming:

  • 2x Mars Mochachino Hazlenut coffees (caffeine value unknown – one already drunk)
  • 1x Mana Health Potion (160milligrams of caffeine)
  • 1x Bawls G33k B33r (64milligrams of caffeine
  • 1x Cherry Lucozade (46milligrams of caffeine)

  • At least 1 cup of tea
  • Total: At least 270milligrams

Why? Well, just to try and keep me awake and warm. According to my other half 10grams of caffeine is lethal: so I’ll have less than a twentieth of a lethal dose (just 0.27grams).

Giggity-giggity watch me turn to goo 😉

Web: Bad eset emails

Just tried to signup for a trial of the eset antivirus from eset.co.uk and received the following useful emails…. After trying a second time, I just went to eset.com and downloaded the 64bit antivirus software without having to register…

Here’s the email:

Subject:ESET NOD32 Antivirus Home Edition – Trial Licence
Layout[‘Header’] Content[‘Generic-TrialIntroduction’]

Content[‘Generic-TrialLicenceInformation’]

Content[‘ENAHE-Instructions’]

Content[‘ENAHE-SystemRequirements’] Info[‘CustomerSupport’]
Info[‘AdditionalInformation’]
Info[‘awards’] Layout[‘Footer’]

Yep, useful!