Module api

Module api 

Source
Expand description

High-level API for async memory tracking

Provides user-friendly functions for initializing tracking, spawning tracked tasks, and retrieving memory statistics.

Structs§

AsyncMemorySnapshot
Memory usage snapshot for async tasks
TrackedFuture
Future wrapper that provides task-level memory tracking

Functions§

create_tracked
Create a tracked future wrapper
get_memory_snapshot
Get current memory usage snapshot
initialize
Initialize async memory tracking system
is_tracking_active
Check if async memory tracking is currently active
spawn_tracked
Spawn a tracked async task