From 40ace4739646baf19b7f64ca56e6f1659a58393e Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 6 Apr 2021 08:45:32 -0700 Subject: http: fixup perf regression Only call into hrtime if there's an observer Also, fix up some previously missed changes from the original refactor Signed-off-by: James M Snell Refs: https://github.com/nodejs/node/issues/37937 Refs: https://github.com/nodejs/node/pull/37136 PR-URL: https://github.com/nodejs/node/pull/38110 Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: Benjamin Gruenbaum --- src/node_perf_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node_perf_common.h') diff --git a/src/node_perf_common.h b/src/node_perf_common.h index 4015a1adb70..1fea2e4fc95 100644 --- a/src/node_perf_common.h +++ b/src/node_perf_common.h @@ -33,6 +33,7 @@ extern uint64_t performance_v8_start; #define NODE_PERFORMANCE_ENTRY_TYPES(V) \ V(GC, "gc") \ + V(HTTP, "http") \ V(HTTP2, "http2") enum PerformanceMilestone { -- cgit v1.2.3