Skip to content

Commit

Permalink
lib: do not call performance hooks
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
BridgeAR authored and MylesBorins committed May 22, 2018
1 parent 9feca3e commit e0fd80c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/internal/bootstrap/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
} = perf.constants;

_process.setup_hrtime();
_process.setup_performance();
_process.setup_cpuUsage();
_process.setupMemoryUsage();
_process.setupKillAndExit();
Expand Down
5 changes: 0 additions & 5 deletions lib/internal/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -284,7 +280,6 @@ function setupUncaughtExceptionCapture(exceptionHandlerState) {
}

module.exports = {
setup_performance,
setup_cpuUsage,
setup_hrtime,
setupMemoryUsage,
Expand Down

0 comments on commit e0fd80c

Please sign in to comment.