events.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package profiler
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. import (
  4. "github.com/chromedp/cdproto/debugger"
  5. )
  6. // EventConsoleProfileFinished [no description].
  7. //
  8. // See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileFinished
  9. type EventConsoleProfileFinished struct {
  10. ID string `json:"id"`
  11. Location *debugger.Location `json:"location"` // Location of console.profileEnd().
  12. Profile *Profile `json:"profile"`
  13. Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
  14. }
  15. // EventConsoleProfileStarted sent when new profile recording is started
  16. // using console.profile() call.
  17. //
  18. // See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileStarted
  19. type EventConsoleProfileStarted struct {
  20. ID string `json:"id"`
  21. Location *debugger.Location `json:"location"` // Location of console.profile().
  22. Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
  23. }
  24. // EventPreciseCoverageDeltaUpdate reports coverage delta since the last poll
  25. // (either from an event like this, or from takePreciseCoverage for the current
  26. // isolate. May only be sent if precise code coverage has been started. This
  27. // event can be trigged by the embedder to, for example, trigger collection of
  28. // coverage data immediately at a certain point in time.
  29. //
  30. // See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-preciseCoverageDeltaUpdate
  31. type EventPreciseCoverageDeltaUpdate struct {
  32. Timestamp float64 `json:"timestamp"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
  33. Occasion string `json:"occasion"` // Identifier for distinguishing coverage events.
  34. Result []*ScriptCoverage `json:"result"` // Coverage data for the current isolate.
  35. }