2017-01-24 15:09:23 +00:00
package heapprofiler
2017-07-09 02:05:19 +00:00
// Code generated by chromedp-gen. DO NOT EDIT.
2017-01-24 15:09:23 +00:00
import (
2017-01-26 07:28:34 +00:00
cdp "github.com/knq/chromedp/cdp"
2017-01-24 15:09:23 +00:00
)
2017-01-26 07:28:34 +00:00
// EventAddHeapSnapshotChunk [no description].
2017-01-24 15:09:23 +00:00
type EventAddHeapSnapshotChunk struct {
2017-07-02 11:44:34 +00:00
Chunk string ` json:"chunk" `
2017-01-24 15:09:23 +00:00
}
2017-01-26 07:28:34 +00:00
// EventResetProfiles [no description].
2017-01-24 15:09:23 +00:00
type EventResetProfiles struct { }
2017-01-26 07:28:34 +00:00
// EventReportHeapSnapshotProgress [no description].
2017-01-24 15:09:23 +00:00
type EventReportHeapSnapshotProgress struct {
2017-07-02 11:44:34 +00:00
Done int64 ` json:"done" `
Total int64 ` json:"total" `
2017-01-24 15:09:23 +00:00
Finished bool ` json:"finished,omitempty" `
}
// EventLastSeenObjectID if heap objects tracking has been started then
2017-03-02 03:24:35 +00:00
// backend regularly sends a current value for last seen object id and
2017-01-24 15:09:23 +00:00
// 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 {
2017-07-09 01:40:29 +00:00
LastSeenObjectID int64 ` json:"lastSeenObjectId" `
Timestamp float64 ` json:"timestamp" `
2017-01-24 15:09:23 +00:00
}
// EventHeapStatsUpdate if heap objects tracking has been started then
// backend may send update for one or more fragments.
type EventHeapStatsUpdate struct {
2017-07-02 11:44:34 +00:00
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.
2017-01-24 15:09:23 +00:00
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = [ ] cdp . MethodType {
cdp . EventHeapProfilerAddHeapSnapshotChunk ,
cdp . EventHeapProfilerResetProfiles ,
cdp . EventHeapProfilerReportHeapSnapshotProgress ,
cdp . EventHeapProfilerLastSeenObjectID ,
cdp . EventHeapProfilerHeapStatsUpdate ,
2017-01-24 15:09:23 +00:00
}