DebugTraceUtil
@UnstableApi
class DebugTraceUtil
A debugging tracing utility. Debug logging is disabled at compile time by default.
Summary
Nested types |
|---|
@DocumentedComponents logged by logEvent. |
@DocumentedEvents logged by logEvent. |
Public constructors |
|---|
Public functions |
|
|---|---|
synchronized java-static Unit |
Dumps all the logged events to the |
synchronized java-static String! |
Generate a summary of the logged events, containing the total number of times an event happened and the detailed log of a window of the oldest and newest events. |
synchronized java-static Unit |
logCodecEvent(Logs an |
synchronized java-static Unit |
logEvent(Logs a new event, if debug logging is enabled. |
synchronized java-static Unit |
logEvent( |
synchronized java-static Unit |
logEvent(Logs a new event, if debug logging is enabled. |
synchronized java-static Unit |
reset() |
Public properties |
|
|---|---|
java-static Boolean |
Whether to store tracing events for debug logging. |
Constants
COMPONENT_BITMAP_TEXTURE_MANAGER
const val COMPONENT_BITMAP_TEXTURE_MANAGER = "BitmapTextureManager": String!
COMPONENT_EXTERNAL_TEXTURE_MANAGER
const val COMPONENT_EXTERNAL_TEXTURE_MANAGER = "ExternalTextureManager": String!
COMPONENT_TEX_ID_TEXTURE_MANAGER
const val COMPONENT_TEX_ID_TEXTURE_MANAGER = "TexIdTextureManager": String!
COMPONENT_TRANSFORMER_INTERNAL
const val COMPONENT_TRANSFORMER_INTERNAL = "TransformerInternal": String!
EVENT_OUTPUT_TEXTURE_RENDERED
const val EVENT_OUTPUT_TEXTURE_RENDERED = "OutputTextureRendered": String!
EVENT_RECEIVE_END_OF_ALL_INPUT
const val EVENT_RECEIVE_END_OF_ALL_INPUT = "ReceiveEndOfAllInput": String!
EVENT_REGISTER_NEW_INPUT_STREAM
const val EVENT_REGISTER_NEW_INPUT_STREAM = "RegisterNewInputStream": String!
EVENT_RENDERED_TO_OUTPUT_SURFACE
const val EVENT_RENDERED_TO_OUTPUT_SURFACE = "RenderedToOutputSurface": String!
EVENT_SURFACE_TEXTURE_TRANSFORM_FIX
const val EVENT_SURFACE_TEXTURE_TRANSFORM_FIX = "SurfaceTextureTransformFix": String!
Public constructors
Public functions
dumpTsv
synchronized java-static fun dumpTsv(writer: Writer!): Unit
Dumps all the logged events to the Writer as tab separated values (tsv).
| Throws | |
|---|---|
java.io.IOException |
generateTraceSummary
synchronized java-static fun generateTraceSummary(): String!
Generate a summary of the logged events, containing the total number of times an event happened and the detailed log of a window of the oldest and newest events.
logCodecEvent
synchronized java-static fun logCodecEvent(
isDecoder: Boolean,
isVideo: Boolean,
@DebugTraceUtil.Event eventName: @DebugTraceUtil.Event String!,
presentationTimeUs: Long,
extraFormat: String!,
extraArgs: Array<Any!>!
): Unit
Logs an Event for a codec, if debug logging is enabled.
| Parameters | |
|---|---|
isDecoder: Boolean |
Whether the codec is a decoder. |
isVideo: Boolean |
Whether the codec is for video. |
@DebugTraceUtil.Event eventName: @DebugTraceUtil.Event String! |
The |
presentationTimeUs: Long |
The current presentation time of the media. Use |
extraFormat: String! |
Format string for optional extra information. See |
extraArgs: Array<Any!>! |
Arguments for optional extra information. |
logEvent
synchronized java-static fun logEvent(
@DebugTraceUtil.Component component: @DebugTraceUtil.Component String!,
@DebugTraceUtil.Event event: @DebugTraceUtil.Event String!,
presentationTimeUs: Long
): Unit
Logs a new event, if debug logging is enabled.
| Parameters | |
|---|---|
@DebugTraceUtil.Component component: @DebugTraceUtil.Component String! |
The |
@DebugTraceUtil.Event event: @DebugTraceUtil.Event String! |
The |
presentationTimeUs: Long |
The current presentation time of the media. Use |
logEvent
synchronized java-static fun logEvent(
@DebugTraceUtil.Component component: @DebugTraceUtil.Component String!,
@DebugTraceUtil.Event event: @DebugTraceUtil.Event String!,
presentationTimeUs: Long,
jsonObject: JSONObject!
): Unit
logEvent
synchronized java-static fun logEvent(
@DebugTraceUtil.Component component: @DebugTraceUtil.Component String!,
@DebugTraceUtil.Event event: @DebugTraceUtil.Event String!,
presentationTimeUs: Long,
extraFormat: String!,
extraArgs: Array<Any!>!
): Unit
Logs a new event, if debug logging is enabled.
| Parameters | |
|---|---|
@DebugTraceUtil.Component component: @DebugTraceUtil.Component String! |
The |
@DebugTraceUtil.Event event: @DebugTraceUtil.Event String! |
The |
presentationTimeUs: Long |
The current presentation time of the media. Use |
extraFormat: String! |
Format string for optional extra information. See |
extraArgs: Array<Any!>! |
Arguments for optional extra information. |
Public properties
enableTracing
java-static val enableTracing: Boolean
Whether to store tracing events for debug logging. Should be set to true for testing and debugging purposes only.