UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

30 lines 1.23 kB
export declare function logPerformance(entry: PerformanceEntry, notableMs: number, showWrapperMeasures: boolean, filterContext?: string): void; export declare function createPerformanceLogger(notableMs: number, showWrapperMeasures: boolean, filterContext?: string): PerformanceObserverCallback; export declare function nameMark(functionName: string, event: string, context: string[], wrapper?: boolean): string; /** * Helper to create a performance mark and measure in one call. * * @param startMark - Optional start mark name for the measure (typically currentMark) * @param names - Object with mark and measure names * @param context - Array of context strings [functionName, ...context] * @param wrapper - Whether this is a wrapper measure (uses pipe delimiter) * @returns The mark name that was created * * @example * ```ts * currentMark = performanceMeasure( * currentMark, * { mark: 'processed', measure: 'processing' }, * [functionName, relativePath], * true, * ); * ``` */ export declare function performanceMeasure(startMark: string | undefined, names: { mark: string; measure: string; } | { prefix?: string; mark: string; measure: string; }, context: string[], wrapper?: boolean): string;