forked from chromedp/cdproto
/
types.go
28 lines (22 loc) · 887 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
27
28
package heapprofiler
// Code generated by chromedp-gen. DO NOT EDIT.
import (
"github.com/jbegley1995/cdproto/runtime"
)
// 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"`
}