portholeNode

Counts recompositions of the composable that applies it, and stamps the node id into semantics so the two trees line up.

It is a @Composable extension on purpose: the SideEffect lands in the calling scope, so what gets counted is the caller's recomposition, which is the number you actually want.