Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e0fd80c

Browse filesBrowse files
BridgeARMylesBorins
authored andcommitted
lib: do not call performance hooks
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>
1 parent 9feca3e commit e0fd80c
Copy full SHA for e0fd80c

File tree

Expand file treeCollapse file tree

2 files changed

+0
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-6
lines changed
Open diff view settings
Collapse file

‎lib/internal/bootstrap/node.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js
-1Lines changed: 0 additions & 1 deletion
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();
Collapse file

‎lib/internal/process.js‎

Copy file name to clipboardExpand all lines: lib/internal/process.js
-5Lines changed: 0 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.