Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
type JSSelfProfileSampleMarker = 'script' | 'gc' | 'style' | 'layout' | 'paint' | 'other';
|
|
export type JSSelfProfileSample = {
|
|
timestamp: number;
|
|
stackId?: number;
|
|
marker?: JSSelfProfileSampleMarker;
|
|
};
|
|
export type JSSelfProfileStack = {
|
|
frameId: number;
|
|
parentId?: number;
|
|
};
|
|
export type JSSelfProfileFrame = {
|
|
name: string;
|
|
resourceId?: number;
|
|
line?: number;
|
|
column?: number;
|
|
};
|
|
export type JSSelfProfile = {
|
|
resources: string[];
|
|
frames: JSSelfProfileFrame[];
|
|
stacks: JSSelfProfileStack[];
|
|
samples: JSSelfProfileSample[];
|
|
};
|
|
export interface JSSelfProfiler {
|
|
sampleInterval: number;
|
|
stopped: boolean;
|
|
stop: () => Promise<JSSelfProfile>;
|
|
addEventListener(event: 'samplebufferfull', callback: (trace: JSSelfProfile) => void): void;
|
|
}
|
|
export declare const JSSelfProfilerConstructor: {
|
|
new (options: {
|
|
sampleInterval: number;
|
|
maxBufferSize: number;
|
|
}): JSSelfProfiler;
|
|
};
|
|
declare global {
|
|
interface Window {
|
|
Profiler: typeof JSSelfProfilerConstructor | undefined;
|
|
}
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=jsSelfProfiling.d.ts.map |