| 1 | package heapprofiler |
| 2 | |
| 3 | // Code generated by cdproto-gen. DO NOT EDIT. |
| 4 | |
| 5 | // EventAddHeapSnapshotChunk [no description]. |
| 6 | // |
| 7 | // See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-addHeapSnapshotChunk |
| 8 | type EventAddHeapSnapshotChunk struct { |
| 9 | Chunk string `json:"chunk"` |
| 10 | } |
| 11 | |
| 12 | // EventHeapStatsUpdate if heap objects tracking has been started then |
| 13 | // backend may send update for one or more fragments. |
| 14 | // |
| 15 | // See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-heapStatsUpdate |
| 16 | type EventHeapStatsUpdate struct { |
| 17 | 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. |
| 18 | } |
| 19 | |
| 20 | // EventLastSeenObjectID if heap objects tracking has been started then |
| 21 | // backend regularly sends a current value for last seen object id and |
| 22 | // corresponding timestamp. If the were changes in the heap since last event |
| 23 | // then one or more heapStatsUpdate events will be sent before a new |
| 24 | // lastSeenObjectId event. |
| 25 | // |
| 26 | // See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-lastSeenObjectId |
| 27 | type EventLastSeenObjectID struct { |
| 28 | LastSeenObjectID int64 `json:"lastSeenObjectId"` |
| 29 | Timestamp float64 `json:"timestamp"` |
| 30 | } |
| 31 | |
| 32 | // EventReportHeapSnapshotProgress [no description]. |
| 33 | // |
| 34 | // See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-reportHeapSnapshotProgress |
| 35 | type EventReportHeapSnapshotProgress struct { |
| 36 | Done int64 `json:"done"` |
| 37 | Total int64 `json:"total"` |
| 38 | Finished bool `json:"finished"` |
| 39 | } |
| 40 | |
| 41 | // EventResetProfiles [no description]. |
| 42 | // |
| 43 | // See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-resetProfiles |
| 44 | type EventResetProfiles struct{} |