48 lines
1.7 KiB
Go
48 lines
1.7 KiB
Go
package heapprofiler
|
|
|
|
// Code generated by chromedp-gen. DO NOT EDIT.
|
|
|
|
import (
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
)
|
|
|
|
// EventAddHeapSnapshotChunk [no description].
|
|
type EventAddHeapSnapshotChunk struct {
|
|
Chunk string `json:"chunk"`
|
|
}
|
|
|
|
// EventHeapStatsUpdate if heap objects tracking has been started then
|
|
// backend may send update for one or more fragments.
|
|
type EventHeapStatsUpdate struct {
|
|
StatsUpdate []int64 `json:"statsUpdate"` // An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
|
|
}
|
|
|
|
// EventLastSeenObjectID if heap objects tracking has been started then
|
|
// backend regularly sends a current value for last seen object id and
|
|
// corresponding timestamp. If the were changes in the heap since last event
|
|
// then one or more heapStatsUpdate events will be sent before a new
|
|
// lastSeenObjectId event.
|
|
type EventLastSeenObjectID struct {
|
|
LastSeenObjectID int64 `json:"lastSeenObjectId"`
|
|
Timestamp float64 `json:"timestamp"`
|
|
}
|
|
|
|
// EventReportHeapSnapshotProgress [no description].
|
|
type EventReportHeapSnapshotProgress struct {
|
|
Done int64 `json:"done"`
|
|
Total int64 `json:"total"`
|
|
Finished bool `json:"finished,omitempty"`
|
|
}
|
|
|
|
// EventResetProfiles [no description].
|
|
type EventResetProfiles struct{}
|
|
|
|
// EventTypes all event types in the domain.
|
|
var EventTypes = []cdp.MethodType{
|
|
cdp.EventHeapProfilerAddHeapSnapshotChunk,
|
|
cdp.EventHeapProfilerHeapStatsUpdate,
|
|
cdp.EventHeapProfilerLastSeenObjectID,
|
|
cdp.EventHeapProfilerReportHeapSnapshotProgress,
|
|
cdp.EventHeapProfilerResetProfiles,
|
|
}
|