Module thread_registry

Module thread_registry 

Source
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§

AggregatedTrackingData
Data aggregation result from all tracking modes
CachedThreadData
Cached tracking data from a completed thread
CombinedTrackerStats
Combined statistics from a single tracker (can be track_var!, lockfree, or async)
ThreadRegistryStats
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.