-
Notifications
You must be signed in to change notification settings - Fork 48
/
types.go
32 lines (26 loc) · 1.42 KB
/
types.go
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
// Code generated by cdpgen. DO NOT EDIT.
package heapprofiler
import (
"github.com/mafredri/cdp/protocol/runtime"
)
// HeapSnapshotObjectID Heap snapshot object id.
type HeapSnapshotObjectID string
// SamplingHeapProfileNode Sampling Heap Profile node. Holds callsite
// information, allocation statistics and child nodes.
type SamplingHeapProfileNode struct {
CallFrame runtime.CallFrame `json:"callFrame"` // Function location.
SelfSize float64 `json:"selfSize"` // Allocations size in bytes for the node excluding children.
ID int `json:"id"` // Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
Children []SamplingHeapProfileNode `json:"children"` // Child nodes.
}
// SamplingHeapProfileSample A single sample from a sampling profile.
type SamplingHeapProfileSample struct {
Size float64 `json:"size"` // Allocation size in bytes attributed to the sample.
NodeID int `json:"nodeId"` // Id of the corresponding profile tree node.
Ordinal float64 `json:"ordinal"` // Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling.
}
// SamplingHeapProfile Sampling profile.
type SamplingHeapProfile struct {
Head SamplingHeapProfileNode `json:"head"` // No description.
Samples []SamplingHeapProfileSample `json:"samples"` // No description.
}