SERVER-112895Backlog

MemoryUsageTokenWith utility has problems

The memory usage tracking provides a few utilities to make memory tracking easier: * a [token class|https://github.com/10gen/mongo/blob/580332adc410237402b54ffe42c16d7a53987661/src/mongo/db/memory_tracking/memory_usage_tracker.h#L306] that increments memory in the constructor and decrements in the destructor * a ["token with" helper class|https://github.com/10gen/mongo/blob/580332adc410237402b54ffe42c16d7a53987661/src/mongo/db/memory_tracking/memory_usage_tracker.h#L367] that bundles a type in

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-observabilityquick-tech-debt