42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import type { LightPlugin, LightClient } from '../types';
|
|
declare class PerformancePlugin implements LightPlugin {
|
|
name: string;
|
|
version: string;
|
|
private client;
|
|
private config;
|
|
private observers;
|
|
private onLoad?;
|
|
private navLoadTimer;
|
|
private totalBlockingTime;
|
|
private fcpTime;
|
|
private lastLongTaskEndTime;
|
|
private ttiReported;
|
|
private ttiTimer;
|
|
private pageLoadTransaction;
|
|
private measurements;
|
|
private resourceSpanCount;
|
|
setup(client: LightClient): void;
|
|
private startPageLoadTransaction;
|
|
private loadConfig;
|
|
private shouldSample;
|
|
private observeWebVitals;
|
|
private observePaint;
|
|
private observeLCP;
|
|
private observeFID;
|
|
private observeCLS;
|
|
private observeTTFB;
|
|
private observeLongTasks;
|
|
private scheduleTTI;
|
|
private observeNavigation;
|
|
private buildNavigationSpans;
|
|
private finishPageLoadTransaction;
|
|
private observeResources;
|
|
private getRating;
|
|
private reportMetric;
|
|
private recordMeasurement;
|
|
private createNavigationSpan;
|
|
private createResourceSpan;
|
|
destroy(): void;
|
|
}
|
|
export default PerformancePlugin;
|