diff options
author | theanarkh <2923878201@qq.com> | 2022-03-29 18:43:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 18:43:28 +0300 |
commit | e5200392a258f3a5d087a432ff565313e8a54bd1 (patch) | |
tree | cc22d7455874d800367ae1bedeb6eec76a6318d0 /src | |
parent | 5a927ef0c28cf1889dcb402d7edfc14861c9a450 (diff) |
net,dns: trace tcp connection and dns by perf_hooks
use the perf_hooks to trace the time spent by net.connect, dns.lookup,
dns.lookupService, dns.resolvexxx.
PR-URL: https://github.com/nodejs/node/pull/42390
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_perf_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_perf_common.h b/src/node_perf_common.h index 1fea2e4fc95..ed520e69153 100644 --- a/src/node_perf_common.h +++ b/src/node_perf_common.h @@ -34,7 +34,9 @@ extern uint64_t performance_v8_start; #define NODE_PERFORMANCE_ENTRY_TYPES(V) \ V(GC, "gc") \ V(HTTP, "http") \ - V(HTTP2, "http2") + V(HTTP2, "http2") \ + V(NET, "net") \ + V(DNS, "dns") enum PerformanceMilestone { #define V(name, _) NODE_PERFORMANCE_MILESTONE_##name, |