Skip to content

Commit e0fd80c

Browse files
BridgeARMylesBorins
authored andcommitted
lib: do not call performance hooks
PR-URL: #20567 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent 9feca3e commit e0fd80c

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/internal/bootstrap/node.js

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
} = perf.constants;
5757

5858
_process.setup_hrtime();
59-
_process.setup_performance();
6059
_process.setup_cpuUsage();
6160
_process.setupMemoryUsage();
6261
_process.setupKillAndExit();

lib/internal/process.js

-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ process.assert = deprecate(
2424
'process.assert() is deprecated. Please use the `assert` module instead.',
2525
'DEP0100');
2626

27-
function setup_performance() {
28-
require('perf_hooks');
29-
}
30-
3127
// Set up the process.cpuUsage() function.
3228
function setup_cpuUsage() {
3329
// Get the native function, which will be replaced with a JS version.
@@ -284,7 +280,6 @@ function setupUncaughtExceptionCapture(exceptionHandlerState) {
284280
}
285281

286282
module.exports = {
287-
setup_performance,
288283
setup_cpuUsage,
289284
setup_hrtime,
290285
setupMemoryUsage,

0 commit comments

Comments
 (0)