LithoStats

object LithoStats

Provides global counters about Litho internals. Useful for performance analyses.

Properties

Link copied to clipboard
Link copied to clipboard

Measurements of a Layout's child answered from an earlier one in the same pass.

Link copied to clipboard

Layouts of a Layout's children, one per measurement.

Link copied to clipboard

Runs of a Layout's layout function.

Link copied to clipboard

Of customLayoutChildLayoutCount, the leaves laid out directly, without a Yoga pass.

Link copied to clipboard

Of customLayoutChildLayoutCount, the Layouts laid out directly, without a Yoga root.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Subset of subtreeCacheGateRejectCount: counts rejections (recording-time + splice-time) where the subtree's recording window walked through a DeferredLithoLayoutResult descendant. Used to quantify the cache-skip blast radius on RenderWithConstraints-rooted screens — every ancestor subtree above the deferred loses caching, so this counter is the canonical signal for whether the conservative gate is dominating cache-eligible records on a given workload.

Link copied to clipboard

Number of cached subtrees rejected by the splice gate (directChildSizesMatch). Counts only true rejections — nodes that were recorded as subtree roots in the previous pass but whose direct-child sizes changed in this pass (typically a flex-grow cascade). Nodes that were never recorded as subtree roots (e.g. below MIN_SUBTREE_SCOPES) are NOT counted here, since they were never eligible to splice in the first place.

Link copied to clipboard

Subtree caching counters (Phase 2).

Functions

Increment the count of all applied state updates in Litho components by {@param num}.

Link copied to clipboard

Increment the count of layout calculations in Litho components (by one).

Increment the count of UI Thread executed layout calculations in Litho components (by one).

Link copied to clipboard

Increment the count of mount operations (by one).

Link copied to clipboard

Increment the count of triggered asynchronous state updates in Litho components (by one).

Link copied to clipboard

Increment the count of triggered synchronous state updates in Litho components (by one).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Increment the count of all applied state updates in Litho sections by {@param num}.

Increment the count of new changeset calculations in Litho sections (by one).

Increment the count of UI Thread executed new changeset calculations in Litho sections (by one).

Link copied to clipboard

Increment the count of triggered asynchronous state updates in Litho sections (by one).

Link copied to clipboard

Increment the count of triggered synchronous state updates in Litho sections (by one).