Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Query a supported operating system to get the amount of memory used by the current Rust application.

License

NotificationsYou must be signed in to change notification settings

rjzak/app-memory-usage-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuildLintDocumentationCrates.io Version

Application Memory Usage Fetcher

A super simple crate which queries the supported operating system for the number of bytes used. ReturnsNone for unsupported operating systems. If your desired operating system isn't supported, pleasefile 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 = 1kilobyte.

This crate was created after trying to find this functionality from an existing crate, and instead I foundinstancesofpeopleasking 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, Solaris

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

About

Query a supported operating system to get the amount of memory used by the current Rust application.

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp