forked from chromedp/chromedp
/
types.go
26 lines (20 loc) · 879 Bytes
/
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
package heapprofiler
import "github.com/knq/chromedp/cdp/runtime"
// Code generated by chromedp-gen. DO NOT EDIT.
// HeapSnapshotObjectID heap snapshot object id.
type HeapSnapshotObjectID string
// String returns the HeapSnapshotObjectID as string value.
func (t HeapSnapshotObjectID) String() string {
return string(t)
}
// 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.
Children []*SamplingHeapProfileNode `json:"children"` // Child nodes.
}
// SamplingHeapProfile Profile.
type SamplingHeapProfile struct {
Head *SamplingHeapProfileNode `json:"head"`
}