diff --git a/tests/benchmark/profile-prepend.php b/tests/benchmark/profile-prepend.php deleted file mode 100644 index f7b71cb53..000000000 --- a/tests/benchmark/profile-prepend.php +++ /dev/null @@ -1,34 +0,0 @@ -setPeriod(0.001); - $benchProfiler->setEventType(EXCIMER_REAL); - $benchProfiler->setMaxDepth(250); - $benchProfiler->start(); - - register_shutdown_function(static function () use ($benchProfiler): void { - $benchProfiler->stop(); - $label = preg_replace('/[^A-Za-z0-9_.-]/', '', (string)$_SERVER['HTTP_X_BENCH_PROFILE']); - $dir = '/tmp/bench-profiles/' . $label; - if (!is_dir($dir)) { - @mkdir($dir, 0777, true); - } - file_put_contents($dir . '/' . uniqid('', true) . '.collapsed', $benchProfiler->getLog()->formatCollapsed()); - }); -}