Skip to content

C++ memory use monitoring and reporting library by VoxelStorm

License

Notifications You must be signed in to change notification settings

VoxelStorm-Ltd/memorystorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

MemoryStorm

Small and simple C++ memory use monitoring and reporting library by VoxelStorm.

Core functions

The main purpose of the library is to provide system memory summaries in a cross-platform manner.

namespace memorystorm {

uint64_t get_stack_available();

uint64_t get_physical_total();
uint64_t get_physical_available();
uint64_t get_physical_usage();

uint64_t get_virtual_total();
uint64_t get_virtual_available();
uint64_t get_virtual_usage();

}

Utility functions

namespace memorystorm {

std::string human_readable(uint64_t amount);
std::string get_stats();
void dump_stats();

}

The human_readable function can be called on any numerical value representing a number of bytes, and will return a human readable value in kilobytes, megabytes, gigabytes, etc.

About

C++ memory use monitoring and reporting library by VoxelStorm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published