LithoStats
Provides global counters about Litho internals. Useful for performance analyses.
Properties
Measurements of a Layout's child answered from an earlier one in the same pass.
Layouts of a Layout's children, one per measurement.
Runs of a Layout's layout function.
Of customLayoutChildLayoutCount, the leaves laid out directly, without a Yoga pass.
Of customLayoutChildLayoutCount, the Layouts laid out directly, without a Yoga root.
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.
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.
Subtree caching counters (Phase 2).
Functions
Increment the count of all applied state updates in Litho components by {@param num}.
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).
Increment the count of mount operations (by one).
Increment the count of triggered asynchronous state updates in Litho components (by one).
Increment the count of triggered synchronous state updates in Litho components (by one).
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).
Increment the count of triggered asynchronous state updates in Litho sections (by one).
Increment the count of triggered synchronous state updates in Litho sections (by one).