@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 932 B
TypeScript
export interface TimingEntry {
label: string;
ms: number;
}
export type TimingLabel = "main" | "extensions" | "reload" | "tui" | "switch";
export declare function resetTimings(namespace?: TimingLabel): void;
export declare function time(label: string, namespace?: TimingLabel): void;
/**
* Record a phase this module could not measure itself - a duration derived from the process clock,
* such as everything that happened before the first instrumented statement ran. The namespace's
* cursor is left untouched, so the next `time()` call still measures from where it was.
*/
export declare function recordTiming(label: string, ms: number, namespace?: TimingLabel): void;
export declare function getTimings(namespace: TimingLabel): readonly TimingEntry[];
export declare function formatTimings(namespace: TimingLabel): string | undefined;
export declare function printTimings(): void;
//# sourceMappingURL=timings.d.ts.map