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