main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Span } from '../../../trace';
import type { webpack } from 'next/dist/compiled/webpack/webpack';
export declare const spans: WeakMap<webpack.Compiler | webpack.Compilation, Span>;
export declare const webpackInvalidSpans: WeakMap<any, Span>;
export declare class ProfilingPlugin {
compiler: any;
runWebpackSpan: Span;
constructor({ runWebpackSpan }: {
runWebpackSpan: Span;
});
apply(compiler: any): void;
traceHookPair(spanName: string | (() => string), startHook: any, stopHook: any, { parentSpan, attrs, onStart, onStop, }?: {
parentSpan?: (...params: any[]) => Span;
attrs?: any;
onStart?: (span: Span, ...params: any[]) => void;
onStop?: (span: Span, ...params: any[]) => void;
}): void;
traceTopLevelHooks(compiler: any): void;
traceCompilationHooks(compiler: any): void;
}