3 * Author: Mingqiang Zhuang
5 * Created on March 25, 2009
7 * (c) Copyright 2009, Schooner Information Technology, Inc.
8 * http://www.schoonerinfotech.com/
25 /* statistic structure of response time */
37 uint64_t period_min_time
;
38 uint64_t period_max_time
;
39 uint64_t pre_get_miss
;
41 uint64_t pre_total_time
;
43 double pre_log_product
;
46 /* initialize statistic */
47 void ms_init_stats(ms_stat_t
*stat
, const char *name
);
50 /* record one event */
51 void ms_record_event(ms_stat_t
*stat
, uint64_t time
, int get_miss
);
54 /* dump the statistics */
55 void ms_dump_stats(ms_stat_t
*stat
);
58 /* dump the format statistics */
59 void ms_dump_format_stats(ms_stat_t
*stat
,
69 #endif /* MS_STAT_H */