Maybe it would be useful to use the ignored_functions option? During my hackathon project, I had a hard-coded list of functions that caused a lot of noise: https://github.com/Wikia/app/blob/xhprof-hack/includes/wikia/profiler/Xhprof.class.php