You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
666 B
27 lines
666 B
2 years ago
|
import Trace = require('./Trace');
|
||
|
|
||
|
declare class Tracing {
|
||
|
constructor(options?: {
|
||
|
pid?: number;
|
||
|
tid?: number;
|
||
|
processName?: string;
|
||
|
threadName?: string;
|
||
|
});
|
||
|
start(cat?: string): void;
|
||
|
stop(): Trace.IEvent[];
|
||
|
metadata(name: string, args: any): void;
|
||
|
begin(cat: string, name: string, args?: any): void;
|
||
|
end(args?: any): void;
|
||
|
asyncBegin(cat: string, name: string, id?: string, args?: any): string;
|
||
|
asyncEnd(id: string, args?: any): void;
|
||
|
instant(
|
||
|
cat: string,
|
||
|
name: string,
|
||
|
scope?: 'g' | 'p' | 't',
|
||
|
args?: any
|
||
|
): void;
|
||
|
id(): string;
|
||
|
}
|
||
|
|
||
|
export = Tracing;
|