2 * Copyright (C) 2006-2009 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
8 * Summary: Collect up the stats for a memcached server.
12 #ifndef __MEMCACHED_STATS_H__
13 #define __MEMCACHED_STATS_H__
19 struct memcached_stat_st
{
20 uint32_t connection_structures
;
21 uint32_t curr_connections
;
24 uint32_t pointer_size
;
25 uint32_t rusage_system_microseconds
;
26 uint32_t rusage_system_seconds
;
27 uint32_t rusage_user_microseconds
;
28 uint32_t rusage_user_seconds
;
31 uint32_t total_connections
;
36 uint64_t bytes_written
;
42 uint64_t limit_maxbytes
;
43 char version
[MEMCACHED_VERSION_STRING_LENGTH
];
48 void memcached_stat_free(memcached_st
*, memcached_stat_st
*);
51 memcached_stat_st
*memcached_stat(memcached_st
*ptr
, char *args
, memcached_return_t
*error
);
54 memcached_return_t
memcached_stat_servername(memcached_stat_st
*memc_stat
, char *args
,
55 const char *hostname
, in_port_t port
);
61 #endif /* __MEMCACHED_STATS_H__ */