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:
parent
a3a14082fc
commit
1a8aa8cac7
@ -57,7 +57,6 @@
|
|||||||
} = perf.constants;
|
} = perf.constants;
|
||||||
|
|
||||||
_process.setup_hrtime();
|
_process.setup_hrtime();
|
||||||
_process.setup_performance();
|
|
||||||
_process.setup_cpuUsage();
|
_process.setup_cpuUsage();
|
||||||
_process.setupMemoryUsage();
|
_process.setupMemoryUsage();
|
||||||
_process.setupKillAndExit();
|
_process.setupKillAndExit();
|
||||||
|
@ -24,10 +24,6 @@ process.assert = deprecate(
|
|||||||
'process.assert() is deprecated. Please use the `assert` module instead.',
|
'process.assert() is deprecated. Please use the `assert` module instead.',
|
||||||
'DEP0100');
|
'DEP0100');
|
||||||
|
|
||||||
function setup_performance() {
|
|
||||||
require('perf_hooks');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set up the process.cpuUsage() function.
|
// Set up the process.cpuUsage() function.
|
||||||
function setup_cpuUsage() {
|
function setup_cpuUsage() {
|
||||||
// Get the native function, which will be replaced with a JS version.
|
// Get the native function, which will be replaced with a JS version.
|
||||||
@ -284,7 +280,6 @@ function setupUncaughtExceptionCapture(exceptionHandlerState) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
setup_performance,
|
|
||||||
setup_cpuUsage,
|
setup_cpuUsage,
|
||||||
setup_hrtime,
|
setup_hrtime,
|
||||||
setupMemoryUsage,
|
setupMemoryUsage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user