debugLastPreviewTargetIterationCount property
Debug-only: number of visible-order slots examined by the last setReorderPreview target computation. -1 when the computation has never run (calls that exit before the target loop leave it unchanged). Pins the loop's O(visibleNodeCount) contract, the order buffer is grow-only, so an unbounded loop would silently scan the stale capacity tail after a high-water mark.
Implementation
int debugLastPreviewTargetIterationCount = -1;