Performance

Cette traduction est incomplète. Aidez à traduire cet article depuis l'anglais.

The Performance interface represents timing related performance information for the given page.

An object of this type can be obtained by calling the Window.performance read-only attribute.

Note: Although an object of this interface is available to Worker contexts, only a subset of the properties and methods are available. Those not available are labelled as such on this page.

Properties

The Performance interface doesn't inherit any property.

Performance.timing Lecture seule Non disponible dans les workers
Is a PerformanceTiming object containing latency-related performance information.
Performance.navigation Lecture seule Non disponible dans les workers
Is a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, like the amount of redirections needed to fetch the resource.

Methods

The Performance interface doesn't inherit any method.

Performance.now()
Returns a DOMHighResTimeStamp representing the amount of milliseconds elapsed since a reference instant.
Performance.toJSON() Non disponible dans les workers
Is a jsonizer returning a json object representing the Performance object.

Specifications

Specification Status Comment
High Resolution Time
La définition de 'Performance' dans cette spécification.
Recommendation Added the now() method.
Navigation Timing
La définition de 'Performance' dans cette spécification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (timing attribute) 6.0 7.0 (7.0) 9.0 15.0 8
navigation attribute Pas de support Pas de support 9.0 Pas de support 8
now() on regular context 20.0 webkit
24.0
15.0 (15.0) 10.0 (Oui) 8
now() in Web workers. (Oui) 34.0 (34.0) ? (Oui) ?
toJSON() Pas de support 25.0 (25.0) 9.0 Pas de support ?
Feature Android Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support Pas de support 7.0 (7.0) 1.0 (7.0) 9.0 15.0 Pas de support
navigation attribute Pas de support Pas de support Pas de support 9.0 Pas de support Pas de support
now() on regular context 20.0 webkit
24.0
15.0 (15.0) 1.0 (15.0) 10.0 Pas de support Pas de support
now() in Web workers. ? 34.0 (34.0) ? ? ? ?
toJSON() Pas de support 25.0 (25.0) 1.2 (25.0) 9.0 Pas de support Pas de support

See also

Étiquettes et contributeurs liés au document

Étiquettes : 
 Contributeurs à cette page : fscholz
 Dernière mise à jour par : fscholz,