From 1a8aa8cac7c61cf38ef09292f76592815589c9ef Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 7 May 2018 04:25:54 +0200 Subject: [PATCH] lib: do not call performance hooks PR-URL: https://github.com/nodejs/node/pull/20567 Reviewed-By: Gus Caplan Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Jeremiah Senkpiel --- lib/internal/bootstrap/node.js | 1 - lib/internal/process.js | 5 ----- 2 files changed, 6 deletions(-) diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js index bdd2edce866..e23ec858f33 100644 --- a/lib/internal/bootstrap/node.js +++ b/lib/internal/bootstrap/node.js @@ -57,7 +57,6 @@ } = perf.constants; _process.setup_hrtime(); - _process.setup_performance(); _process.setup_cpuUsage(); _process.setupMemoryUsage(); _process.setupKillAndExit(); diff --git a/lib/internal/process.js b/lib/internal/process.js index cc8318cbe3c..3d02e6eb87c 100644 --- a/lib/internal/process.js +++ b/lib/internal/process.js @@ -24,10 +24,6 @@ process.assert = deprecate( 'process.assert() is deprecated. Please use the `assert` module instead.', 'DEP0100'); -function setup_performance() { - require('perf_hooks'); -} - // Set up the process.cpuUsage() function. function setup_cpuUsage() { // Get the native function, which will be replaced with a JS version. @@ -284,7 +280,6 @@ function setupUncaughtExceptionCapture(exceptionHandlerState) { } module.exports = { - setup_performance, setup_cpuUsage, setup_hrtime, setupMemoryUsage,