Skip to content

perf_hooks: reset prev_ before starting ELD timer

reset ELDHistogram.prev_ before staring timer to ensure that start timer doesn't leak across disable() enable() calls.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@jasnell I have seen this nit late during review of #26556 and it's not directly related to your changes. But feel free to integrate it into your PR to avoid a later on merge conflict.

Merge request reports

Loading