@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Performance")
public class Performance
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onresourcetimingbufferfull
The onresourcetimingbufferfull property is an event handler that will be called when the resourcetimingbufferfull event is fired.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Performance() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourcetimingbufferfullListener(EventListener callback) |
void |
addResourcetimingbufferfullListener(EventListener callback,
AddEventListenerOptions options) |
void |
addResourcetimingbufferfullListener(EventListener callback,
boolean useCapture) |
void |
clearMarks()
The clearMarks() method removes the named mark from the browser's performance entry buffer.
|
void |
clearMarks(java.lang.String markName)
The clearMarks() method removes the named mark from the browser's performance entry buffer.
|
void |
clearMeasures()
The clearMeasures() method removes the named measure from the browser's performance entry buffer.
|
void |
clearMeasures(java.lang.String measureName)
The clearMeasures() method removes the named measure from the browser's performance entry buffer.
|
void |
clearResourceTimings()
The clearResourceTimings() method removes all performance entries with an entryType of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero.
|
JsArray<PerformanceEntry> |
getEntries()
The getEntries() method returns a list of all PerformanceEntry objects for the page.
|
JsArray<PerformanceEntry> |
getEntriesByName(java.lang.String name)
The getEntriesByName() method returns a list of PerformanceEntry objects for the given name and type.
|
JsArray<PerformanceEntry> |
getEntriesByName(java.lang.String name,
java.lang.String type)
The getEntriesByName() method returns a list of PerformanceEntry objects for the given name and type.
|
JsArray<PerformanceEntry> |
getEntriesByType(java.lang.String type)
The getEntriesByType() method returns a list of PerformanceEntry objects for a given type.
|
void |
mark(java.lang.String markName)
The mark() method creates a timestamp in the browser's performance entry buffer with the given name.
|
void |
measure(java.lang.String measureName)
The measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
|
void |
measure(java.lang.String measureName,
java.lang.String startMark)
The measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
|
void |
measure(java.lang.String measureName,
java.lang.String startMark,
java.lang.String endMark)
The measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
|
PerformanceNavigation |
navigation()
The legacy Performance.navigation read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
double |
now()
The performance.now() method returns a DOMHighResTimeStamp, measured in milliseconds.
|
void |
removeResourcetimingbufferfullListener(EventListener callback) |
void |
removeResourcetimingbufferfullListener(EventListener callback,
boolean useCapture) |
void |
removeResourcetimingbufferfullListener(EventListener callback,
EventListenerOptions options) |
void |
setResourceTimingBufferSize(int maxSize)
The setResourceTimingBufferSize() method sets the browser's resource timing buffer size to the specified number of "resource" performance entry type objects.
|
double |
timeOrigin()
The timeOrigin read-only property of the Performance interface returns the high resolution timestamp of the start time of the performance measurement.
|
PerformanceTiming |
timing()
The legacy Performance.timing read-only property returns a PerformanceTiming object containing latency-related performance information.
|
JsObject |
toJSON()
The toJSON() method of the Performance interface is a standard serializer: it returns a JSON representation of the performance object's properties.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nullable public EventHandler onresourcetimingbufferfull
@JsProperty(name="navigation") @Nonnull public PerformanceNavigation navigation()
@JsProperty(name="timeOrigin") public double timeOrigin()
@JsProperty(name="timing") @Nonnull public PerformanceTiming timing()
public double now()
@Nonnull public JsObject toJSON()
@Nonnull public JsArray<PerformanceEntry> getEntries()
@Nonnull public JsArray<PerformanceEntry> getEntriesByName(@Nonnull java.lang.String name, @Nonnull java.lang.String type)
@Nonnull public JsArray<PerformanceEntry> getEntriesByName(@Nonnull java.lang.String name)
@Nonnull public JsArray<PerformanceEntry> getEntriesByType(@Nonnull java.lang.String type)
public void clearResourceTimings()
public void setResourceTimingBufferSize(int maxSize)
public void clearMarks(@Nonnull
java.lang.String markName)
public void clearMarks()
public void clearMeasures(@Nonnull
java.lang.String measureName)
public void clearMeasures()
public void mark(@Nonnull
java.lang.String markName)
public void measure(@Nonnull
java.lang.String measureName,
@Nonnull
java.lang.String startMark,
@Nonnull
java.lang.String endMark)
public void measure(@Nonnull
java.lang.String measureName,
@Nonnull
java.lang.String startMark)
public void measure(@Nonnull
java.lang.String measureName)
@JsOverlay
public final void addResourcetimingbufferfullListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addResourcetimingbufferfullListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addResourcetimingbufferfullListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeResourcetimingbufferfullListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeResourcetimingbufferfullListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeResourcetimingbufferfullListener(@Nonnull
EventListener callback)