7 #include <libmemcached/memcached.h>
8 Compile and link with -lmemcached
10 .. type:: struct memcached_analysis_st memcached_analysis_st
12 .. function:: memcached_analysis_st *memcached_analyze(memcached_st *ptr, memcached_stat_st *stat, memcached_return_t *error)
14 :param ptr: pointer to initialized `memcached_st` struct
15 :param stat: pointer to a `memcached_stat_st` struct to fill
16 :param error: pointer to `memcached_return_t` indicating success
17 :returns: pointer to an allocated and filled out `memcached_analysis_t` struct
22 `libmemcached` has the ability to query a memcached server (or collection of
23 servers) for their current state. Queries to find state return a
24 `memcached_analysis_st` structure. You are responsible for freeing this
27 `memcached_analyze` analyzes useful information based on the provided servers
28 and sets the result to the `memcached_analysis_st` structure. The return value
29 must be freed by the calling application.
31 .. seealso:: :option:`memstat --analyze`
32 A command line tool to analyze a memcached server.
38 A pointer to the allocated `memcached_analysis_st` structure on success and a
39 NULL pointer on failure. You may inspect the error detail by checking the
40 `memcached_return_t` value.
42 Any method returning a `memcached_analysis_st` expects you to free the memory
50 :manpage:`memcached(1)`
51 :manpage:`libmemcached(3)`
52 :manpage:`memcached_strerror(3)`
56 * :manpage:`memcached(1)`
57 * :doc:`../libmemcached`
58 * :doc:`memcached_strerror`