diff options
author | Continuous Integration <ci@tangent.org> | 2014-02-16 03:31:37 -0800 |
---|---|---|
committer | Continuous Integration <ci@tangent.org> | 2014-02-16 03:31:37 -0800 |
commit | b163cbc1e82ea834b66e3b4c1e8070394ccb506d (patch) | |
tree | 999734df2e2c288d6726af31f9336beadb2a781a /docs/source/memcached_analyze.rst | |
parent | 8541a9863cffad457f4d583af6a6c3613250193d (diff) | |
parent | 37deb7fa75a0b3fbea4d58c032446213f0d5a02a (diff) | |
download | libmemcached-trunk.tar.gz |
Diffstat (limited to 'docs/source/memcached_analyze.rst')
-rw-r--r-- | docs/source/memcached_analyze.rst | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/docs/source/memcached_analyze.rst b/docs/source/memcached_analyze.rst new file mode 100644 index 00000000..88f3ad9d --- /dev/null +++ b/docs/source/memcached_analyze.rst @@ -0,0 +1,69 @@ +================= +Anaylzing servers +================= + + +Analyze server information + + +-------- +SYNOPSIS +-------- + +.. index:: object: memcached_analysis_st + + +#include <libmemcached/memcached.h> + +.. c:type:: memcached_analysis_st + +.. c:function:: memcached_analysis_st * memcached_analyze (memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error) + +Compile and link with -lmemcached + +----------- +DESCRIPTION +----------- + + +:program:`libmemcached` has the ability to query a memcached server (or +collection of servers) for their current state. Queries to find state return a +:c:type:`memcached_analysis_st` structure. You are responsible for freeing this structure. + +:c:func:`memcached_analyze` analyzes useful information based on the +provided servers and sets the result to the :c:type:`memcached_analysis_st` +structure. The return value must be freed by the calling application. + +A command line tool, :program:`memstat` with the option :option:`memstat --analyze`, +is provided so that you do not have to write an application to use this method. + + +------ +RETURN +------ + + +A pointer to the allocated :c:type:`memcached_analysis_st` structure on +success and a NULL pointer on failure. You may inspect the error detail by +checking the :c:type:`memcached_return_t` value. + +Any method returning a :c:type:`memcached_analysis_st` expects you to free the +memory allocated for it. + + +---- +HOME +---- + + +To find out more information please check: +`http://libmemcached.org/ <http://libmemcached.org/>`_ + + +-------- +SEE ALSO +-------- + + +:manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)` + |