public function setUp()
{
if (!extension_loaded('xhprof')) {
return $this->markTestSkipped('profiling requires xhprof extension.');
}
if (!isset($_ENV['XHPROF_ROOT'])) {
return $this->markTestSkipped('XHPROF_ROOT environment variable must be set.');
}
if ($N = getenv('N')) {
$this->N = $N;
}
/*
if (extension_loaded('xhprof') ) {
// ini_set('xhprof.output_dir','/tmp');
}
*/
parent::setUp();
$this->startTime = microtime(true);
xhprof_enable(XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY, ['ignored_functions' => []]);
}