Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheanarkh <2923878201@qq.com>2022-03-29 18:43:28 +0300
committerGitHub <noreply@github.com>2022-03-29 18:43:28 +0300
commite5200392a258f3a5d087a432ff565313e8a54bd1 (patch)
treecc22d7455874d800367ae1bedeb6eec76a6318d0 /src/node_perf_common.h
parent5a927ef0c28cf1889dcb402d7edfc14861c9a450 (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/node_perf_common.h')
-rw-r--r--src/node_perf_common.h4
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,