CDPotion.Domain.Tracing (cdpotion v0.1.0)
Summary
Functions
Stop trace events collection.
Gets supported tracing categories.
Record a clock sync marker in the trace.
Request a global memory dump.
Functions
Link to this function
end!()
Stop trace events collection.
Link to this function
get_categories()
Gets supported tracing categories.
Link to this function
record_clock_sync_marker(sync_id)
Record a clock sync marker in the trace.
Parameters:
syncId:string
: The ID of this clock sync marker
Link to this function
request_memory_dump(deterministic \\ nil, level_of_detail \\ nil)
Request a global memory dump.
Parameters:
deterministic:boolean
: (Optional) Enables more deterministic results by forcing garbage collectionlevelOfDetail:MemoryDumpLevelOfDetail
: (Optional) Specifies level of details in memory dump. Defaults to "detailed".
Link to this function
start(categories \\ nil, options \\ nil, buffer_usage_reporting_interval \\ nil, transfer_mode \\ nil, stream_format \\ nil, stream_compression \\ nil, trace_config \\ nil, perfetto_config \\ nil, tracing_backend \\ nil)
Start trace events collection.
Parameters:
categories:string
: (Optional) Category/tag filteroptions:string
: (Optional) Tracing optionsbufferUsageReportingInterval:number
: (Optional) If set, the agent will issue bufferUsage events at this interval, specified in millisecondstransferMode:string
: (Optional) Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults toReportEvents
).streamFormat:StreamFormat
: (Optional) Trace data format to use. This only applies when usingReturnAsStream
transfer mode (defaults tojson
).streamCompression:StreamCompression
: (Optional) Compression format to use. This only applies when usingReturnAsStream
transfer mode (defaults tonone
)traceConfig:TraceConfig
: (Optional) description not provided :(perfettoConfig:string
: (Optional) Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameterscategories
,options
,traceConfig
are ignored. (Encoded as a base64 string when passed over JSON)tracingBackend:TracingBackend
: (Optional) Backend type (defaults toauto
)