Package io.webfolder.cdp.command
Interface TracingAsync
public interface TracingAsync
-
Method Summary
Modifier and TypeMethodDescriptionend()
Stop trace events collection.Gets supported tracing categories.recordClockSyncMarker
(String syncId) Record a clock sync marker in the trace.Request a global memory dump.requestMemoryDump
(Boolean deterministic, MemoryDumpLevelOfDetail levelOfDetail) Request a global memory dump.start()
Start trace events collection.start
(String categories, String options, Double bufferUsageReportingInterval, TracingTransferMode transferMode, StreamFormat streamFormat, StreamCompression streamCompression, TraceConfig traceConfig, String perfettoConfig, TracingBackend tracingBackend) Start trace events collection.
-
Method Details
-
end
CompletableFuture<Void> end()Stop trace events collection. -
getCategories
CompletableFuture<List<String>> getCategories()Gets supported tracing categories.- Returns:
- A list of supported tracing categories.
-
recordClockSyncMarker
Record a clock sync marker in the trace.- Parameters:
syncId
- The ID of this clock sync marker
-
requestMemoryDump
CompletableFuture<RequestMemoryDumpResult> requestMemoryDump()Request a global memory dump.- Returns:
- RequestMemoryDumpResult
-
requestMemoryDump
CompletableFuture<RequestMemoryDumpResult> requestMemoryDump(Boolean deterministic, MemoryDumpLevelOfDetail levelOfDetail) Request a global memory dump.- Parameters:
deterministic
- Enables more deterministic results by forcing garbage collectionlevelOfDetail
- Specifies level of details in memory dump. Defaults to "detailed".- Returns:
- RequestMemoryDumpResult
-
start
CompletableFuture<Void> start()Start trace events collection. -
start
CompletableFuture<Void> start(@Deprecated String categories, @Deprecated String options, Double bufferUsageReportingInterval, TracingTransferMode transferMode, StreamFormat streamFormat, StreamCompression streamCompression, TraceConfig traceConfig, String perfettoConfig, TracingBackend tracingBackend) Start trace events collection.- Parameters:
categories
- Category/tag filteroptions
- Tracing optionsbufferUsageReportingInterval
- If set, the agent will issue bufferUsage events at this interval, specified in millisecondstransferMode
- 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)perfettoConfig
- Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored. (Encoded as a base64 string when passed over JSON)tracingBackend
- Backend type (defaults to auto)
-