getMarks

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.

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

performance

 

 

Show:
© 2017 Microsoft