From 497e5f85175faf78758f84f9198ac3c615bfaf4d Mon Sep 17 00:00:00 2001 From: legendecas Date: Sun, 25 Jul 2021 23:53:21 +0800 Subject: [PATCH] doc: add PerformanceObserver `buffered` document The option buffered is not about queueing the PerformanceEntrys with an event loop task or not. The option buffered in the spec is about filling the observer with the global PerformanceEntry buffer. The current (and the spec) behavior is different with Node.js version <= v16.0.0. PR-URL: https://github.com/nodejs/node/pull/39514 Refs: https://w3c.github.io/performance-timeline/#observe-method Refs: https://nodejs.org/dist/latest-v14.x/docs/api/perf_hooks.html#perf_hooks_performanceobserver_observe_options Refs: https://github.com/nodejs/node/pull/39297 Reviewed-By: Antoine du Hamel Reviewed-By: Benjamin Gruenbaum --- doc/api/perf_hooks.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 80a3c46f36a281..750c2bbc692097 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -585,6 +585,10 @@ Disconnects the `PerformanceObserver` instance from all notifications.