aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-polyfills/src/types/v8heapsnapshot.d.ts
blob: ed39cad065424346c3ce9f8f92587eaf143d9694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
interface V8HeapSnapshot {
    snapshot: {
        meta: {
            node_fields: string[],
            node_types: [string[], ...string[]],
            edge_fields: string[],
            edge_types: [string[], ...string[]],
            trace_function_info_fields: string[],
            trace_node_fields: string[],
            sample_fields: string[],
            location_fields: string[]
        },
        node_count: number,
        edge_count: number,
        trace_function_count: number
    },
    nodes: number[],
    edges: number[],
    trace_function_infos: unknown[],
    trace_tree: unknown[],
    samples: unknown[],
    locations: number[],
    strings: string[]
}