@typescript/analyze-trace
Version:
Analyze the output of tsc --generatetrace
23 lines (22 loc) • 505 B
TypeScript
export interface Event {
ph: string;
ts: string;
dur?: string;
name: string;
cat: string;
args?: any;
}
export interface EventSpan {
event?: Event;
start: number;
end: number;
children: EventSpan[];
}
export interface ParseResult {
minTime: number;
maxTime: number;
spans: EventSpan[];
unclosedStack: Event[];
nodeModulePaths: Map<string, string[]>;
}
export declare function parse(tracePath: string, minDuration: number): Promise<ParseResult>;