Class TracingImpl

java.lang.Object
io.webfolder.cdp.command.TracingImpl
All Implemented Interfaces:
Tracing

public class TracingImpl
extends java.lang.Object
implements Tracing
  • Constructor Details

  • Method Details

    • end

      public void end()
      Description copied from interface: Tracing
      Stop trace events collection.
      Specified by:
      end in interface Tracing
    • getCategories

      public java.util.List<java.lang.String> getCategories()
      Description copied from interface: Tracing
      Gets supported tracing categories.
      Specified by:
      getCategories in interface Tracing
      Returns:
      A list of supported tracing categories.
    • recordClockSyncMarker

      public void recordClockSyncMarker​(java.lang.String syncId)
      Description copied from interface: Tracing
      Record a clock sync marker in the trace.
      Specified by:
      recordClockSyncMarker in interface Tracing
      Parameters:
      syncId - The ID of this clock sync marker
    • requestMemoryDump

      public RequestMemoryDumpResult requestMemoryDump​(java.lang.Boolean deterministic)
      Description copied from interface: Tracing
      Request a global memory dump.
      Specified by:
      requestMemoryDump in interface Tracing
      Parameters:
      deterministic - Enables more deterministic results by forcing garbage collection
      Returns:
      RequestMemoryDumpResult
    • start

      public void start​(java.lang.String categories, java.lang.String options, java.lang.Double bufferUsageReportingInterval, TransferMode transferMode, StreamFormat streamFormat, StreamCompression streamCompression, TraceConfig traceConfig)
      Description copied from interface: Tracing
      Start trace events collection.
      Specified by:
      start in interface Tracing
      Parameters:
      categories - Category/tag filter
      options - Tracing options
      bufferUsageReportingInterval - If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
      transferMode - Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to `ReportEvents`).
      streamFormat - Trace data format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `json`).
      streamCompression - Compression format to use. This only applies when using `ReturnAsStream` transfer mode (defaults to `none`)
    • requestMemoryDump

      public RequestMemoryDumpResult requestMemoryDump()
      Description copied from interface: Tracing
      Request a global memory dump.
      Specified by:
      requestMemoryDump in interface Tracing
      Returns:
      RequestMemoryDumpResult
    • start

      public void start()
      Description copied from interface: Tracing
      Start trace events collection.
      Specified by:
      start in interface Tracing