Socket
Book a DemoInstallSign in
Socket

app-memory-usage-fetcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-memory-usage-fetcher

Source
crates.io
Version
0.3.0
Version published
Maintainers
1
Created
Source

Build Lint Documentation Crates.io Version Socket.dev

Application Memory Usage Fetcher

A super simple crate which queries the supported operating system for the number of bytes used. For Unix-like systems, rusage.ru_maxrss is used. If your desired operating system isn't supported, please file an issue. Additionally, there are helper functions which return the value as Kilo-/Mega-/Giga-/Tera- bytes where the values are based on 1024 bytes = 1 kilobyte.

This crate was created after trying to find this functionality from an existing crate, and instead I found instances of people asking for it. So I decided to make it. This can be helpful, such as trying to see if code changes result in less memory usage, for example.

Operating Systems:

  • Testing: Linux, macOS, FreeBSD, Windows
  • Untested: AIX, Android, DragonFly BSD, NetBSD, OpenBSD
  • Unsupported: Haiku, Solaris, Wasi

Unsupported operating systems fail gracefully with a reported usage of None and a compiler warning.

FAQs

Package last updated on 21 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts