Liking cljdoc? Tell your friends :D

web.performance.Performance

The Performance interface provides access to performance-related for the current page. It's part of the High Resolution Time API, is enhanced by the Performance Timeline API, the Navigation Timing the User Timing API, and the Resource Timing API.

The Performance interface provides access to performance-related
for the current page. It's part of the High Resolution Time API,
is enhanced by the Performance Timeline API, the Navigation Timing
the User Timing API, and the Resource Timing API.
raw docstring

clear-markscljs

(clear-marks this & args)

Method.

The clearMarks() method removes the named mark from the browser's entry buffer. If the method is called with no arguments, all entrieswith anentry type` of "mark" will be removed from performance entry buffer.

performance.clearMarks(); performance.clearMarks(name);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks

Method.

The clearMarks() method removes the named mark from the browser's
entry buffer. If the method is called with no arguments, all
entries` with an `entry type` of \"mark\" will be removed from
performance entry buffer.

`performance.clearMarks();
performance.clearMarks(name);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks`
sourceraw docstring

clear-measurescljs

(clear-measures this & args)

Method.

The clearMeasures() method removes the named measure from the performance entry buffer. If the method is called with no arguments, performance entries with an entry type of "measure" will removed from the performance entry buffer.

performance.clearMeasures(); performance.clearMeasures(name);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures

Method.

The clearMeasures() method removes the named measure from the
performance entry buffer. If the method is called with no arguments,
`performance entries` with an `entry type` of \"measure\" will
removed from the performance entry buffer.

`performance.clearMeasures();
performance.clearMeasures(name);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures`
sourceraw docstring

clear-resource-timingscljs

(clear-resource-timings this)

Method.

The clearResourceTimings() method removes all performance entries an entryType of "resource" from the browser's performance buffer and sets the size of the performance data buffer to zero. set the size of the browser's performance data buffer, use the method.

performance.clearResourceTimings();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings

Method.

The clearResourceTimings() method removes all `performance entries`
an `entryType` of \"resource\" from the browser's performance
buffer and sets the size of the performance data buffer to zero.
set the size of the browser's performance data buffer, use the
method.

`performance.clearResourceTimings();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings`
sourceraw docstring

get-entriescljs

(get-entries this & args)

Method.

The getEntries() method returns a list of all web.performance.PerformanceEntry for the page. The list's members (entries) can be created by performance marks or measures (for example by calling the mark() at explicit points in time. If you are only interested in performance of certain types or that have certain names, see getEntriesByType() getEntriesByName().

`General syntax:

entries = window.performance.getEntries();`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries

Method.

The getEntries() method returns a list of all `web.performance.PerformanceEntry`
for the page. The list's members (entries) can be created by
performance marks or measures (for example by calling the `mark()`
at explicit points in time. If you are only interested in performance
of certain types or that have certain names, see `getEntriesByType()`
`getEntriesByName()`.

`General syntax:



entries = window.performance.getEntries();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries`
sourceraw docstring

get-entries-by-namecljs

(get-entries-by-name this & args)

Method.

Returns a list of PerformanceEntry objects based on the given and entry type.

Method.

Returns a list of PerformanceEntry objects based on the given
and entry type.
sourceraw docstring

get-entries-by-typecljs

(get-entries-by-type this type)

Method.

The getEntriesByType() method returns a list of web.performance.PerformanceEntry for a given type. The list's members (entries) can be created making performance marks or measures (for example by calling mark() method) at explicit points in time.

entries = window.performance.getEntriesByType(type);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType

Method.

The getEntriesByType() method returns a list of `web.performance.PerformanceEntry`
for a given type. The list's members (entries) can be created
making performance marks or measures (for example by calling
`mark()` method) at explicit points in time.

`entries = window.performance.getEntriesByType(type);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType`
sourceraw docstring

markcljs

(mark this name)

Method.

The mark() method creates a timestamp in the browser's performance buffer with the given name. The application defined timestamp be retrieved by one of the web.performance.Performance interface's methods (getEntries(), getEntriesByName() or getEntriesByType()).

performance.mark(name);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark

Method.

The mark() method creates a `timestamp` in the browser's performance
buffer with the given name. The application defined timestamp
be retrieved by one of the `web.performance.Performance` interface's
methods (`getEntries()`, `getEntriesByName()` or `getEntriesByType()`).

`performance.mark(name);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark`
sourceraw docstring

measurecljs

(measure this & args)

Method.

The measure() method creates a named timestamp in the browser's entry buffer between marks, the navigation start time, or the time. When measuring between two marks, there is a start mark end mark, respectively. The named timestamp is referred to as measure.

performance.measure(name); performance.measure(name, startMark); performance.measure(name, startMark, endMark); performance.measure(name, undefined, endMark);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure

Method.

The measure() method creates a named `timestamp` in the browser's
entry buffer between marks, the navigation start time, or the
time. When measuring between two marks, there is a start mark
end mark, respectively. The named timestamp is referred to as
measure.

`performance.measure(name);
performance.measure(name, startMark);
performance.measure(name, startMark, endMark);
performance.measure(name, undefined, endMark);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure`
sourceraw docstring

memorycljs

(memory this)

Property.

[Read Only]

None.

timingInfo = performance.memory

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory

Property.

[Read Only]

None.

`timingInfo = performance.memory`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory`
sourceraw docstring

(navigation this)

Property.

[Read Only]

The legacy Performance.navigation read-only property returns web.deprecated.PerformanceNavigation object representing the of navigation that occurs in the given browsing context, such the number of redirections needed to fetch the resource.

navObject = performance.navigation;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation

Property.

[Read Only]

The legacy Performance.navigation read-only property returns
`web.deprecated.PerformanceNavigation` object representing the
of navigation that occurs in the given browsing context, such
the number of redirections needed to fetch the resource.

`navObject = performance.navigation;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation`
sourceraw docstring

nowcljs

(now this)

Method.

The performance.now() method returns a web.dom.DOMHighResTimeStamp, in milliseconds.

t = performance.now();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now

Method.

The performance.now() method returns a `web.dom.DOMHighResTimeStamp`,
in milliseconds.

`t = performance.now();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/now`
sourceraw docstring

onresourcetimingbufferfullcljs

(onresourcetimingbufferfull this)

Property.

The onresourcetimingbufferfull property is an event handler that be called when the resourcetimingbufferfull event is fired. This is fired when the browser's resource timing performance buffer full.

callback = performance.onresourcetimingbufferfull = buffer_full_cb;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull

Property.

The onresourcetimingbufferfull property is an event handler that
be called when the resourcetimingbufferfull event is fired. This
is fired when the browser's resource timing performance buffer
full.

`callback = performance.onresourcetimingbufferfull = buffer_full_cb;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull`
sourceraw docstring

set-onresourcetimingbufferfull!cljs

(set-onresourcetimingbufferfull! this val)

Property.

The onresourcetimingbufferfull property is an event handler that be called when the resourcetimingbufferfull event is fired. This is fired when the browser's resource timing performance buffer full.

callback = performance.onresourcetimingbufferfull = buffer_full_cb;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull

Property.

The onresourcetimingbufferfull property is an event handler that
be called when the resourcetimingbufferfull event is fired. This
is fired when the browser's resource timing performance buffer
full.

`callback = performance.onresourcetimingbufferfull = buffer_full_cb;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull`
sourceraw docstring

set-resource-timing-buffer-sizecljs

(set-resource-timing-buffer-size this max-size)

Method.

The setResourceTimingBufferSize() method sets the browser's resource buffer size to the specified number of "resource" performance type objects.

performance.setResourceTimingBufferSize(maxSize);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize

Method.

The setResourceTimingBufferSize() method sets the browser's resource
buffer size to the specified number of \"resource\" `performance
type` objects.

`performance.setResourceTimingBufferSize(maxSize);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize`
sourceraw docstring

time-origincljs

(time-origin this)

Property.

[Read Only] [Experimental]

The timeOrigin read-only property of the web.performance.Performance returns the high resolution timestamp of the start time of the measurement.

var timeOrigin = performance.timeOrigin

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin

Property.

[Read Only]
[Experimental]

The timeOrigin read-only property of the `web.performance.Performance`
returns the high resolution timestamp of the start time of the
measurement.

`var timeOrigin = performance.timeOrigin`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin`
sourceraw docstring

timingcljs

(timing this)

Property.

[Read Only] [Deprecated]

The legacy Performance.timing read-only property returns a web.deprecated.PerformanceTiming containing latency-related performance information.

timingInfo = performance.timing;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing

Property.

[Read Only]
[Deprecated]

The legacy Performance.timing read-only property returns a `web.deprecated.PerformanceTiming`
containing latency-related performance information.

`timingInfo = performance.timing;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing`
sourceraw docstring

to-jsoncljs

(to-json this)

Method.

The toJSON() method of the web.performance.Performance interface a standard serializer: it returns a JSON representation of the object's properties.

myPerf = performance.toJSON()

See also: https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON

Method.

The toJSON() method of the `web.performance.Performance` interface
a standard serializer: it returns a JSON representation of the
object's properties.

`myPerf = performance.toJSON()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close