diff options
author | James M Snell <jasnell@gmail.com> | 2021-04-06 18:45:32 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-04-10 02:58:58 +0300 |
commit | 40ace4739646baf19b7f64ca56e6f1659a58393e (patch) | |
tree | caf79f6525d408af77762a2e5bdcfb452eed8c9c /src/node_perf_common.h | |
parent | d2f116c6bb99e4de7778f152a874e750e46a45a8 (diff) |
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 <jasnell@gmail.com>
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 <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_perf_common.h')
-rw-r--r-- | src/node_perf_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |