@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PerformanceObserver")
public class PerformanceObserver
extends java.lang.Object
| Constructor and Description |
|---|
PerformanceObserver(PerformanceObserverCallback callback)
The PerformanceObserver() constructor creates a new PerformanceObserver object with the given observer callback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
The disconnect() method of the PerformanceObserver interface is used to stop the performance observer from receiving any performance entry events.
|
void |
observe()
The observe() method of the PerformanceObserver interface is used to specify the set of performance entry types to observe.
|
void |
observe(PerformanceObserverInit options)
The observe() method of the PerformanceObserver interface is used to specify the set of performance entry types to observe.
|
static JsArray<java.lang.String> |
supportedEntryTypes() |
JsArray<PerformanceEntry> |
takeRecords()
The takeRecords() method of the PerformanceObserver interface returns the current list of performance entries stored in the performance observer, emptying it out.
|
public PerformanceObserver(@Nonnull
PerformanceObserverCallback callback)
@JsProperty(name="supportedEntryTypes") @Nonnull public static JsArray<java.lang.String> supportedEntryTypes()
public void disconnect()
public void observe(@Nonnull
PerformanceObserverInit options)
public void observe()
@Nonnull public JsArray<PerformanceEntry> takeRecords()