getMeasures method
Returns performance measures and their associated duration values.
![]() |
Syntax
var retVal = performance.getMeasures(measureName);Parameters
- measureName [in, optional]
-
Type: DOMString
Name of measure(s) to return.
- retVal [out, retval]
-
Type: any
An array of performance measure names and their associated timings.
Return value
Type: any
An array of performance measure names and their associated timings.
Standards information
Remarks
If a value for the measureName parameter is specified, only measures matching that name are returned. If there are no measures with the specified name, this method returns an empty array.
See also
Show:
