Module memory

Source
Expand description

Metrics related to memory analytics.

Modulesยง

reporter ๐Ÿ”’
All the related memory reporting metrics to the Prometheus service are inside this module.

Staticsยง

GLOBAL ๐Ÿ”’
Use the instrumented allocator for gathering allocation statistics. Note: This wraps the global allocator. All structs that use the global allocator can be tracked.
IS_INITIALIZED ๐Ÿ”’
This is to prevent the init function from accidentally being called multiple times.

Functionsยง

init_metrics_reporter ๐Ÿ”’
Starts a background thread to periodically update memory metrics.