mem_node_dominator_ns() climbs nodes from dominated to dominator until a namespace is reached.

Usage,
mem_node_dominator_until(.node, .p, ..., .quiet = FALSE)

Arguments

.node

A memtools node.

.p

A predicate function applied to the objects represented by dominator nodes.

...

Arguments passed to .p.

.quiet

Whether to report how many nodes were climbed.

Value

The dominator node for which .p returned true. NULL if none were found.