File size: 271 Bytes
1e92f2d | 1 2 3 4 5 6 | export const getMarks = (): PerformanceEntry[] =>
( window?.performance?.getEntriesByType( 'mark' ) as PerformanceEntry[] ) || [];
export const getMeasures = (): PerformanceEntry[] =>
( window?.performance?.getEntriesByType( 'measure' ) as PerformanceEntry[] ) || [];
|