Package-level declarations

Types

Link copied to clipboard

The DebugInfoReporter is used to report debug information using the DebugEventDispatcher. These events are recorded as LITHO_DEBUG_INFO QPL events. It is recommended to gate debug logging to reduce the overhead of logging and control the sampling rate.

Link copied to clipboard
class DebugOverlay(isMainThreadLayouts: List<Boolean>) : Drawable

Draws a row of rectangles starting from the top left corner; the number of rectangles represents the number resolves. If the rectangle is red is color then that resolved results was calculated on the main thread. If the overlay is red in color then the most recent layout was on the main thread. The debug overlay tracks layout history, but doesn't show it on the overlay.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class LithoRenderPhaseEventLogger : DebugEventSubscriber, TraceListener<Unit>

A focused debug event logger that only logs Litho phase events we care about. Enabled by default in debug builds for easier debugging without drowning out other logcat messages.

Link copied to clipboard
Link copied to clipboard
value class TouchEventType(val value: Int)

Functions

Link copied to clipboard
fun formatMountSummaryByComponent(summary: Map<String, MountStats.ComponentMountStats>): String

Formats the per-component mount stats into a string for debug logging. Format: {ComponentName:m=X/u=Y/r=Z/re=W,...}

Link copied to clipboard
fun getAttribution(attribution: String?): String?
Link copied to clipboard

Uses a stack trace to find the closest stack element inside a KComponent.render method.