aboutsummaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2019-03-09 09:28:04 +0100
committerJames M Snell <jasnell@gmail.com>2019-03-12 14:19:36 +0000
commitf9ddbb6b2f2ff61bb62a4ee8a8819d561322c9e8 (patch)
tree3e761d0fd70523fbf801520fa1e3863548f32169 /lib/net.js
parentf2064dfc1fee2daa0537bc27d79d5aa0f734faaf (diff)
downloadandroid-node-v8-f9ddbb6b2f2ff61bb62a4ee8a8819d561322c9e8.tar.gz
android-node-v8-f9ddbb6b2f2ff61bb62a4ee8a8819d561322c9e8.tar.bz2
android-node-v8-f9ddbb6b2f2ff61bb62a4ee8a8819d561322c9e8.zip
lib: move DTRACE_* probes out of global scope
The DTRACE_* probes have been global for no really good reason. Move those into an internalBinding. PR-URL: https://github.com/nodejs/node/pull/26541 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net.js b/lib/net.js
index 8d69cbaf81..0e68e95400 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -85,6 +85,10 @@ const {
} = require('internal/errors');
const { validateInt32, validateString } = require('internal/validators');
const kLastWriteQueueSize = Symbol('lastWriteQueueSize');
+const {
+ DTRACE_NET_SERVER_CONNECTION,
+ DTRACE_NET_STREAM_END
+} = require('internal/dtrace');
// Lazy loaded to improve startup performance.
let cluster;