@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
22 lines • 633 B
text/typescript
/**
* Shared performance tracking utilities for use in both main thread and worker
*/
export interface PerformanceLog {
type: 'mark' | 'measure';
name: string;
startTime: number;
duration?: number;
}
export declare class PerformanceTracker {
private logs;
private baseTime;
constructor();
mark(name: string): number;
measure(name: string, startTime: number, endTime: number): void;
getLogs(): PerformanceLog[];
clear(): void;
}
/**
* Reconstruct performance measures in the main thread from worker logs
*/
export declare function reconstructPerformanceLogs(logs: PerformanceLog[], timeOffset: number): void;