提交 860fc3e2 编写于 作者: J Johannes Rieken

jsdoc

上级 e0705fd2
......@@ -12,6 +12,18 @@ export interface PerformanceEntry {
export function mark(name: string): void;
export function measure(name: string, from?: string, to?: string): void;
/**
* Time something, shorthant for `mark` and `measure`
*/
export function time(name: string): { stop(): void };
/**
* All entries filtered by type and sorted by `startTime`.
*/
export function getEntries(type?: 'mark' | 'measure'): PerformanceEntry[];
/**
* Import entries
*/
export function importEntries(entries: PerformanceEntry[]): void;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册