--TEST-- xhprof: dont disable no memory leak --INI-- tideways_xhprof.clock_use_rdtsc=1 --SKIPIF-- ") !== false) { echo $line . PHP_EOL; } } function foo($x) { } // 1: Sanity test a simple profile run tideways_xhprof_enable(); foo("this is a test"); $output = tideways_xhprof_disable(); print_canonical($output); --EXPECTF-- string(1) "1" Clock Source => %s main() : ct= 1; wt=*; main()==>foo : ct= 1; wt=*; main()==>tideways_xhprof_disable : ct= 1; wt=*;