12#ifndef SST_CORE_MEMPOOL_H
13#define SST_CORE_MEMPOOL_H
15#include "sst/core/serialization/serializable.h"
30 static size_t getArenaSize(
size_t size);
35 static size_t getNumArenas(
size_t size);
39 static uint64_t getBytesMemUsedBy(
size_t size);
45 static void getMemPoolUsage(uint64_t& bytes, uint64_t& active_entries);
48 static void initializeGlobalData(
int num_threads);
51 static void initializeLocalData(
int thread);
66 void*
operator new(std::size_t size)
noexcept;
69 void operator delete(
void* ptr);
80 virtual std::string
toString()
const;
83 virtual void print(
const std::string& header,
Output& out)
const;
virtual std::string toString() const
Get a string represenation of the entry.
Definition: mempool.cc:453
Definition: serializable.h:119
Output object provides consistent method for outputting data to stdout, stderr and/or sst debug file.
Definition: output.h:52