Memory size informational functions. More...
#include <cstdlib>
#include <type_traits>
#include <vector>
#include <array>
#include <utility>
#include <string>
#include <unordered_map>
#include <map>
#include <variant>
Namespaces | |
namespace | syten |
Syten namespace. | |
namespace | syten::MemoryUsage |
Memory usage reporting with allocSize(), totalSize() and stackSize() | |
Functions | |
template<typename T > | |
constexpr MemorySize | syten::MemoryUsage::allocSize (T const &obj) |
Returns the amount of memory dynamically allocated by obj and its children. More... | |
std::ostream & | syten::MemoryUsage::operator<< (std::ostream &out, MemorySize value) |
Pretty-prints a MemorySize object. More... | |
template<typename T > | |
constexpr MemorySize | syten::MemoryUsage::stackSize (T const &obj) |
Returns the amount of stack memory required by obj and its members. More... | |
template<typename T > | |
constexpr MemorySize | syten::MemoryUsage::totalSize (T const &obj) |
Returns the amount of total memory required by obj and its members. More... | |
Memory size informational functions.