-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.d.ts
51 lines (46 loc) · 1.29 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
/**
* Add search paths for looking up symbol files.
*/
export function addSymbolPath(...paths: string[]): void
/**
* Get the stack trace from `minidumpFilePath`
* The `callback` would be called with `callback(error, report)` upon completion.
*/
export function walkStack(
minidump: string,
callback: (err: Error, result: Buffer) => void,
commandArgs?: string[]
): void
export function walkStack(
minidump: string,
symbolPaths: string[],
callback: (err: Error, result: Buffer) => void,
commandArgs?: string[]
): void
/**
* Get the contents of the minidump file in somewhat readable text(not yet symbolicated).
* The `callback` would be called with `callback(error, report)` upon completion.
*/
export function dump(
minidump: string,
callback: (err: Error, result: Buffer) => void,
commandArgs?: string[],
): void
/**
* Dump debug symbols in minidump format from `binaryPath`
* The `callback` would be called with `callback(error, minidump)` upon completion.
*/
export function dumpSymbol(
binaryPath: string,
callback: (err: Error, result: string) => void
): void
type ModuleInfo = {
version: string
name: string
pdb_file_name?: string
debug_identifier?: string
}
export function moduleList(
minidump: string,
callback: (err: Error, result: ModuleInfo[]) => void
): void