Registry / observability / memory-stats

memory-stats

JSON →
library1.2.0rscratesunverified

A cross-platform memory profiler for Rust.

# Cargo.toml [dependencies] memory-stats = "1.2.0"
INSTALL
IMPORT
SIG · MEMORY-STATS
M
memory-stats
observabilityrustv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

memory_stats
use memory_stats::memory_stats;

Prints current physical memory usage.

use memory_stats::memory_stats; fn main() { if let Some(usage) = memory_stats() { println!("Current memory usage: {} bytes", usage.physical_mem); } }
Debug
Known issues
gotchaMay return `None` on unsupported platforms.
fix
Check for `None` and handle gracefully.
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
8
OpenAI (training)
2
Amazon
1
Resources
memory-stats — cargo add memory-stats · libregistry