15size_t heap_allocated_mb()
18 struct mallinfo2
info = mallinfo2();
19 return info.uordblks / (1024ULL * 1024ULL);
20#elif defined(__wasm__)
68 msgpack::object_handle oh = msgpack::unpack(
buffer.data(),
buffer.size());
std::unique_ptr< uint8_t[]> buffer
std::size_t peak_rss_bytes()
MemoryProfile GLOBAL_MEMORY_PROFILE
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
void add_checkpoint(const std::string &stage)
size_t current_circuit_index
std::vector< MemoryCheckpoint > checkpoints
void serialize_json(std::ostream &os) const
std::string current_circuit_name
void set_circuit_name(const std::string &name)