lib: do not call performance hooks

PR-URL: https://github.com/nodejs/node/pull/20567
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
Ruben Bridgewater 2018-05-07 04:25:54 +02:00
parent a3a14082fc
commit 1a8aa8cac7
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
2 changed files with 0 additions and 6 deletions

View File

@ -57,7 +57,6 @@
} = perf.constants;
_process.setup_hrtime();
_process.setup_performance();
_process.setup_cpuUsage();
_process.setupMemoryUsage();
_process.setupKillAndExit();

View File

@ -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,