events.go 1.8 KB

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