ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::socket_pool_stats Struct Reference

Socket连接池统计信息 More...

#include <actor_gmclient.h>

Public Attributes

uint64_t alloc_count = 0
uint64_t free_count = 0
uint64_t cache_hit = 0
uint64_t cache_miss = 0
uint64_t large_alloc = 0
uint64_t alloc_fail = 0
double hit_rate = 0.0
std::vector< bucket_infobuckets

Detailed Description

Socket连接池统计信息

Member Data Documentation

◆ alloc_count

uint64_t ngl::socket_pool_stats::alloc_count = 0

分配次数

◆ alloc_fail

uint64_t ngl::socket_pool_stats::alloc_fail = 0

分配失败次数

◆ buckets

std::vector<bucket_info> ngl::socket_pool_stats::buckets

各桶详细统计

◆ cache_hit

uint64_t ngl::socket_pool_stats::cache_hit = 0

缓存命中次数

◆ cache_miss

uint64_t ngl::socket_pool_stats::cache_miss = 0

缓存未命中次数

◆ free_count

uint64_t ngl::socket_pool_stats::free_count = 0

释放次数

◆ hit_rate

double ngl::socket_pool_stats::hit_rate = 0.0

缓存命中率(百分比)

◆ large_alloc

uint64_t ngl::socket_pool_stats::large_alloc = 0

大对象分配次数


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