Expand description
Thread registry for managing thread-local memory trackers and data aggregation.
This module provides a global registry that tracks all thread-local memory trackers for data aggregation purposes. It enables the unified tracking system to collect data from all tracking modes: track_var!, lockfree, and async_memory.
Structs§
- Aggregated
Tracking Data - Data aggregation result from all tracking modes
- Cached
Thread Data - Cached tracking data from a completed thread
- Combined
Tracker Stats - Combined statistics from a single tracker (can be track_var!, lockfree, or async)
- Thread
Registry Stats - Statistics about the thread registry for monitoring and debugging
Functions§
- cleanup_
registry - Clean up dead references from the registry.
- collect_
all_ trackers - Collect all currently active thread-local memory trackers.
- collect_
unified_ tracking_ data - Collect and aggregate data from all tracking modes.
- enable_
performance_ tracking - Enable performance tracking mode for production use.
- enable_
precise_ tracking - Enable precise tracking mode for maximum accuracy.
- get_
cached_ thread_ data - Get cached thread data from completed threads.
- get_
registry_ stats - Get statistics about the thread registry.
- has_
active_ trackers - Check if the registry has any active trackers.
- register_
current_ thread_ tracker - Register the current thread’s tracker with the global registry.