Liking cljdoc? Tell your friends :D

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 anweb.entry type` of "mark" will be removed the 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 `web.entry type` of \"mark\" will be removed
the 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, web.performance entries with an web.entry type of "measure" be 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,
`web.performance entries` with an `web.entry type` of \"measure\"
be 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 web.performance with anweb.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 `web.performance
with an `web.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 performance.PerformanceEntry for the page. The list's members (entries) can be created by performance marks or measures (for example by calling the web.mark() at explicit points in time. If you are only interested in performance of certain types or that have certain names, see web.getEntriesByType() web.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 `performance.PerformanceEntry`
for the page. The list's members (entries) can be created by
performance marks or measures (for example by calling the `web.mark()`
at explicit points in time. If you are only interested in performance
of certain types or that have certain names, see `web.getEntriesByType()`
`web.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 name type)

Method.

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

entries = window.performance.getEntriesByName(name, type);

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

Method.

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

`entries = window.performance.getEntriesByName(name, type);`

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

get-entries-by-typecljs

(get-entries-by-type this type)

Method.

The getEntriesByType() method returns a list of performance.PerformanceEntry for a given type. The list's members (entries) can be created making performance marks or measures (for example by calling web.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 `performance.PerformanceEntry`
for a given type. The list's members (entries) can be created
making performance marks or measures (for example by calling
`web.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 web.timestamp in the browser's entry buffer with the given name. The application defined timestamp be retrieved by one of the performance.Performance interface's methods (web.getEntries(), web.getEntriesByName() or web.getEntriesByType()).

performance.mark(name);

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

Method.

The mark() method creates a `web.timestamp` in the browser's
entry buffer with the given name. The application defined timestamp
be retrieved by one of the `performance.Performance` interface's
methods (`web.getEntries()`, `web.getEntriesByName()` or `web.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 web.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 `web.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.

None.

timingInfo = performance.memory

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

Property.

None.

`timingInfo = performance.memory`

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

(navigation this)

Property.

The legacy Performance.navigation read-only property returns performance.PerformanceNavigation object representing the type navigation that occurs in the given browsing context, such as 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.

The legacy Performance.navigation read-only property returns
`performance.PerformanceNavigation` object representing the type
navigation that occurs in the given browsing context, such as
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 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 `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-memory!cljs

(set-memory! this val)

Property.

None.

timingInfo = performance.memory

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

Property.

None.

`timingInfo = performance.memory`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory`
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" web.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\" `web.performance
type` objects.

`performance.setResourceTimingBufferSize(maxSize);`

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

set-time-origin!cljs

(set-time-origin! this val)

Property.

The timeOrigin read-only property of the 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.

The timeOrigin read-only property of the `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

time-origincljs

(time-origin this)

Property.

The timeOrigin read-only property of the 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.

The timeOrigin read-only property of the `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.

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

timingInfo = performance.timing;

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

Property.

The legacy Performance.timing read-only property returns a `performance.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 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 `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