From b55f6a0f010da7f2f812b0956283a1d58ebe1ff1 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 3 Jun 2018 16:58:48 -0700 Subject: perf_hooks: remove less useful bootstrap marks While `perf_hooks` is still in experimental, remove less useful bootstrap milestones. PR-URL: https://github.com/nodejs/node/pull/21247 Reviewed-By: Anna Henningsen Reviewed-By: Tiancheng "Timothy" Gu --- lib/perf_hooks.js | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) (limited to 'lib/perf_hooks.js') diff --git a/lib/perf_hooks.js b/lib/perf_hooks.js index 9080cc7f26..f7b18816e6 100644 --- a/lib/perf_hooks.js +++ b/lib/perf_hooks.js @@ -27,15 +27,7 @@ const { NODE_PERFORMANCE_MILESTONE_LOOP_START, NODE_PERFORMANCE_MILESTONE_LOOP_EXIT, NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE, - NODE_PERFORMANCE_MILESTONE_ENVIRONMENT, - NODE_PERFORMANCE_MILESTONE_THIRD_PARTY_MAIN_START, - NODE_PERFORMANCE_MILESTONE_THIRD_PARTY_MAIN_END, - NODE_PERFORMANCE_MILESTONE_CLUSTER_SETUP_START, - NODE_PERFORMANCE_MILESTONE_CLUSTER_SETUP_END, - NODE_PERFORMANCE_MILESTONE_MODULE_LOAD_START, - NODE_PERFORMANCE_MILESTONE_MODULE_LOAD_END, - NODE_PERFORMANCE_MILESTONE_PRELOAD_MODULE_LOAD_START, - NODE_PERFORMANCE_MILESTONE_PRELOAD_MODULE_LOAD_END + NODE_PERFORMANCE_MILESTONE_ENVIRONMENT } = constants; const { AsyncResource } = require('async_hooks'); @@ -192,43 +184,6 @@ class PerformanceNodeTiming { return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE); } - get thirdPartyMainStart() { - return getMilestoneTimestamp( - NODE_PERFORMANCE_MILESTONE_THIRD_PARTY_MAIN_START); - } - - get thirdPartyMainEnd() { - return getMilestoneTimestamp( - NODE_PERFORMANCE_MILESTONE_THIRD_PARTY_MAIN_END); - } - - get clusterSetupStart() { - return getMilestoneTimestamp( - NODE_PERFORMANCE_MILESTONE_CLUSTER_SETUP_START); - } - - get clusterSetupEnd() { - return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_CLUSTER_SETUP_END); - } - - get moduleLoadStart() { - return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_MODULE_LOAD_START); - } - - get moduleLoadEnd() { - return getMilestoneTimestamp(NODE_PERFORMANCE_MILESTONE_MODULE_LOAD_END); - } - - get preloadModuleLoadStart() { - return getMilestoneTimestamp( - NODE_PERFORMANCE_MILESTONE_PRELOAD_MODULE_LOAD_START); - } - - get preloadModuleLoadEnd() { - return getMilestoneTimestamp( - NODE_PERFORMANCE_MILESTONE_PRELOAD_MODULE_LOAD_END); - } - [kInspect]() { return { name: 'node', -- cgit v1.2.3