Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Profiler
  4. samplebufferfull

Profiler: samplebufferfull event

Thesamplebufferfull event of theProfiler interface is fired when the number of samples the profiler has recorded matches themaxBufferSize value passed to the profiler's constructor.

After this event fires, the profiler will not record any more samples.

This event is not cancelable and does not bubble.

Syntax

Use the event name in methods likeaddEventListener(), or set an event handler property.

js
addEventListener("samplebufferfull", (event) => { })onsamplebufferfull = (event) => { }

Event type

AnEvent.

Examples

js
const profiler = new Profiler({ sampleInterval: 10, maxBufferSize: 100 });profiler.addEventListener("samplebufferfull", async () => {  console.log("Sample buffer full!");  const trace = await profiler.stop();  console.log(JSON.stringify(trace));});

Specifications

This feature does not appear to be defined in any specification.

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp