This adds a failing test case for the bug discussed in https://github.com/phacility/xhprof/pull/33.
It also adds a bin/xhprofile script which makes it easier to test stuff like this, by invoking the profiler on some other script. This isn't hugely useful in production but is valuable diagnostically, and helped me reduce this test case.