From e97d79fe0346ff7020f97eeb4a3a3a11ff4c3f12 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 23 Sep 2021 00:54:37 +0800 Subject: [PATCH] 111 --- http-server/Service/Http.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http-server/Service/Http.php b/http-server/Service/Http.php index 5d17d27c..d330160a 100644 --- a/http-server/Service/Http.php +++ b/http-server/Service/Http.php @@ -48,7 +48,9 @@ class Http extends \Server\Abstracts\Http implements OnClose, OnConnect public function onRequest(Request $request, Response $response): void { try { - [$PsrRequest, $PsrResponse] = $this->initRequestResponse($request); + xhprof_enable(XHPROF_FLAGS_NO_BUILTINS | XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY); + + [$PsrRequest, $PsrResponse] = $this->initRequestResponse($request); /** @var Handler $handler */ $handler = HandlerManager::get($request->server['request_uri'], $request->getMethod()); if (is_integer($handler)) {