- 
    Type:Task 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        Query Integration
- 
        Fully Compatible
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
There are some types in the memory tracking files in src/mongo/util that are used only by query, and some that are used only by the streams module, and some items that are unused. We should move the query-related ones to src/mongo/db/memory_tracking. The items used by streams we should leave as-is but update the OWNERS.yml file so that they are owned by streams as well as Server Programmability (who owns the src/mongo/util directory). We can just delete the unused items.
The is a description of the various items and who uses them currently:
| memory_usage_tracker.h | used by | 
|---|---|
| MemoryUsageTracker | query | 
| SimpleMemoryUsageTracker | query | 
| MemoryUsageToken | query | 
| MemoryUsageHandle | streams module (move to chunked_memory_aggregator.h) | 
| concurrent_memory_aggregator | used by | 
| ConcurrentMemoryAggregator | streams module | 
| chunked_memory_aggregator | used by | 
| MemoryUsageHandle | streams module | 
| ChunkedMemoryUsageToken | unused (okay to delete) | 
- is related to
- 
                    SERVER-99820 Make streams team owner for ChunkedMemoryAggregator and ConcurrentMemoryAggregator -         
- Closed
 
-