Skip to content

bootstrap: include perf_hooks in the builtin snapshot

perf_hooks: refactor perf_hooks for snapshot building

  • Move Performance and InternalPerformance to a new lib/internal/perf/performance.js
  • Move now() getMilestoneTimestamp() into lib/internal/perf/utils.js
  • Rename lib/internal/perf/perf.js to lib/internal/perf/performance_entry.js
  • Refresh time origin at startup (this means the time origins could differ between snapshot building time and snapshot creation time)

bootstrap: support perf hooks in snapshot

bootstrap: load perf_hooks eagerly during bootstrap

Refs: https://github.com/nodejs/node/issues/35711

Merge request reports

Loading