http://perfcap.blogspot.com/2011/03/understanding-and-using-...
Somewhere there's an HN discussion for it too.