perf_hooks: remove non-existent entries from inspect

Some of the milestones was removed in PR #21247 but entries not removed
from function for inspect PerformanceNodeTiming.

PR-URL: https://github.com/nodejs/node/pull/29528
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Kirill Fomichev 2019-09-11 21:49:39 +03:00 committed by Rich Trott
parent 7c9ee6dd88
commit 39eb894099
2 changed files with 2 additions and 18 deletions

View File

@ -205,15 +205,7 @@ class PerformanceNodeTiming extends PerformanceEntry {
bootstrapComplete: this.bootstrapComplete,
environment: this.environment,
loopStart: this.loopStart,
loopExit: this.loopExit,
thirdPartyMainStart: this.thirdPartyMainStart,
thirdPartyMainEnd: this.thirdPartyMainEnd,
clusterSetupStart: this.clusterSetupStart,
clusterSetupEnd: this.clusterSetupEnd,
moduleLoadStart: this.moduleLoadStart,
moduleLoadEnd: this.moduleLoadEnd,
preloadModuleLoadStart: this.preloadModuleLoadStart,
preloadModuleLoadEnd: this.preloadModuleLoadEnd
loopExit: this.loopExit
};
}
}

View File

@ -12,15 +12,7 @@ const names = [
'v8Start',
'loopStart',
'loopExit',
'bootstrapComplete',
'thirdPartyMainStart',
'thirdPartyMainEnd',
'clusterSetupStart',
'clusterSetupEnd',
'moduleLoadStart',
'moduleLoadEnd',
'preloadModulesLoadStart',
'preloadModulesLoadEnd'
'bootstrapComplete'
];
if (process.argv[2] === 'child') {