Skip to content

Commit

Permalink
doc: remove buffered flag from performance hooks examples
Browse files Browse the repository at this point in the history
PR-URL: #52607
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
pavel-romanov8 authored and targos committed Feb 25, 2025
1 parent 315244e commit 587112c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ const obs = new PerformanceObserver((list, observer) => {
performance.clearMeasures();
observer.disconnect();
});
obs.observe({ entryTypes: ['measure'], buffered: true });
obs.observe({ entryTypes: ['measure'] });

setTimeout(() => {}, 1000);
```
Expand Down Expand Up @@ -2154,7 +2154,7 @@ const obs = new PerformanceObserver((list) => {
performance.clearMeasures();
obs.disconnect();
});
obs.observe({ entryTypes: ['function'], buffered: true });
obs.observe({ entryTypes: ['function'] });

require('some-module');
```
Expand Down

0 comments on commit 587112c

Please # to comment.