Function usePerformance

  • Returns {
        clearMarks: (name?: string) => void;
        clearMeasures: (name?: string) => void;
        getEntries: () => PerformanceEntryList;
        getMetrics: () => PerformanceMetrics;
        mark: (name: string) => void;
        measure: (name: string, startMark: string, endMark: string) => void;
    }