memory_usage

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef memory_usage_h
#define memory_usage_h

#include <cstdint>

class memory_usage {
public:
  static bool is_available();
  static uint64_t allocated();
  static uint64_t deallocated();
  static uint64_t peak();
  static void reset_peak();
};

#endif  // memory_usage_h