Skip to content

Commit

Permalink
Document durationThreshold in PerfObserver.observe() (mdn#21552)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 authored and mfuji09 committed Oct 20, 2022
1 parent 2f85bfd commit 8e7d1e0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions files/en-us/web/api/performanceobserver/observe/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ observe(options)

- `options`

- : A `PerformanceObserverInit` dictionary with the following possible
members:
- : An object with the following possible members:

- `buffered`
- : A boolean flag to indicate whether buffered
entries should be queued into the observer's buffer. Must be used only with the
"`type`" option.
- `durationThreshold`
- : A {{domxref("DOMHighResTimeStamp")}} defining the threshold for {{domxref("PerformanceEventTiming")}} entries. Defaults to 104ms and is rounded to the nearest of 8ms. Lowest possible threshold is 16ms.
- `entryTypes`
- : An array of string objects, each
specifying one performance entry type to observe. May not be used together with
Expand All @@ -48,10 +53,6 @@ observe(options)
- : A single string specifying exactly one
performance entry type to observe. May not be used together with the
`entryTypes` option.
- `buffered`
- : A boolean flag to indicate whether buffered
entries should be queued into the observer's buffer. Must be used only with the
"`type`" option.

See {{domxref("PerformanceEntry.entryType")}} for a list of valid performance entry
type names. Unrecognized types are ignored, though the browser may output a warning
Expand Down

0 comments on commit 8e7d1e0

Please sign in to comment.