2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
30 /* statistic structure of response time */
41 uint64_t period_min_time
;
42 uint64_t period_max_time
;
43 uint64_t pre_get_miss
;
45 uint64_t pre_total_time
;
47 double pre_log_product
;
50 /* initialize statistic */
51 void ms_init_stats(ms_stat_t
*stat
, const char *name
);
53 /* record one event */
54 void ms_record_event(ms_stat_t
*stat
, uint64_t time
, int get_miss
);
56 /* dump the statistics */
57 void ms_dump_stats(ms_stat_t
*stat
);
59 /* dump the format statistics */
60 void ms_dump_format_stats(ms_stat_t
*stat
, int run_time
, int freq
, int obj_size
);
66 #endif /* MS_STAT_H */