Lines Matching refs:stats
198 mysqlnd_fill_stats_hash(const MYSQLND_STATS * const stats, const MYSQLND_STRING * names, zval *retu… in mysqlnd_fill_stats_hash() argument
202 array_init_size(return_value, stats->count); in mysqlnd_fill_stats_hash()
203 for (i = 0; i < stats->count; i++) { in mysqlnd_fill_stats_hash()
206 snprintf(tmp, sizeof(tmp), "%" PRIu64, stats->values[i]); in mysqlnd_fill_stats_hash()
215 mysqlnd_stats_init(MYSQLND_STATS ** stats, const size_t statistic_count, const bool persistent) in mysqlnd_stats_init() argument
217 *stats = pecalloc(1, sizeof(MYSQLND_STATS), persistent); in mysqlnd_stats_init()
218 (*stats)->values = pecalloc(statistic_count, sizeof(uint64_t), persistent); in mysqlnd_stats_init()
219 (*stats)->count = statistic_count; in mysqlnd_stats_init()
221 (*stats)->LOCK_access = tsrm_mutex_alloc(); in mysqlnd_stats_init()
229 mysqlnd_stats_end(MYSQLND_STATS * stats, const bool persistent) in mysqlnd_stats_end() argument
232 tsrm_mutex_free(stats->LOCK_access); in mysqlnd_stats_end()
234 pefree(stats->values, persistent); in mysqlnd_stats_end()
236 pefree(stats, persistent); in mysqlnd_stats_end()
247 MYSQLND_STATS stats; in _mysqlnd_get_client_stats() local
250 memset(&stats, 0, sizeof(stats)); in _mysqlnd_get_client_stats()
251 stats_ptr = &stats; in _mysqlnd_get_client_stats()