carb/extras/MemoryUsage.h¶
↰ Parent directory: carb/extras/
Helper to get the memory characteristics of a program.
Source: carb/extras/MemoryUsage.h
Namespaces¶
carb: The main Carbonite namespace.
carb::extras: Common namespace for extra helper functions and classes.
Classes¶
carb::extras::SystemMemoryInfo: Stores information about memory in the system.
Enums¶
carb::extras::MemoryQueryType: The type of memory to query.
carb::extras::MemoryScaleType: Names for the different types of common memory scales.
Functions¶
carb::extras::getCurrentProcessMemoryUsage: Retrieve the physical memory usage by the current process.
carb::extras::getFriendlyMemorySize: Retrieves a friendly memory size and scale suffix for a given number of bytes.
carb::extras::getMemorySizeMultiplier: Retrieves the memory size multiplier from a value suffix.
carb::extras::getMemoryValueByName: Retrieves a memory value by its key name in ‘/proc/meminfo’ or other.
carb::extras::getPeakProcessMemoryUsage: Retrieves the peak memory usage information for the calling process.
carb::extras::getPhysicalMemory: Retrieve the physical memory available on the system.
carb::extras::getSystemMemoryInfo: Retrieves the memory usage information for the system.