ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::buff_pool< TINITBYTES, TCOUNT > Class Template Reference

Public Member Functions

 buff_pool (const std::array< int32_t, TCOUNT > &acounts)
char * malloc_private (int32_t abytes)
void free_private (char *abuff)
const std::array< int32_t, TCOUNT > & get_counts () const
void print_stats () const

Static Public Member Functions

static void track_alloc (holder &aholder, int16_t aindex)
static void maybe_flush (holder &aholder)
static bucket_stats aggregate_global_stats ()
static bucket_stats aggregate_bucket_stats (int abucket_idx)
static std::vector< uint64_t > get_bucket_peak_per_thread (int abucket_idx)
static constexpr std::array< int32_t, TCOUNT > get_bytes ()

The documentation for this class was generated from the following file: