-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
54 lines (47 loc) · 1.3 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
declare module 'v8-inspect-profiler' {
export interface ProfileResult {
profile: Profile;
}
export interface Profile {
nodes: ProfileNode[];
samples?: number[];
timeDeltas?: number[];
startTime: number;
endTime: number;
}
export interface ProfileNode {
id: number;
hitCount?: number;
children?: number[];
callFrame: {
url: string;
scriptId: string;
functionName: string;
lineNumber: number;
columnNumber: number;
};
deoptReason?: string;
positionTicks?: { line: number; ticks: number }[];
}
export interface ProfilingSession {
stop(afterDelay?: number): PromiseLike<ProfileResult>;
}
export interface Target {
description: string;
devtoolsFrontendUrl: string;
id: string;
title: string;
type: string;
url: string;
webSocketDebuggerUrl: string;
}
export interface StartOptions {
host?: string;
port: number;
tries?: number;
retyWait?: number;
checkForPaused?: boolean;
target?: (targets: Target[]) => Target
}
export function startProfiling(options: StartOptions): PromiseLike<ProfilingSession>;
}