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 */
36 uint64_t period_min_time
;
37 uint64_t period_max_time
;
38 uint64_t pre_get_miss
;
40 uint64_t pre_total_time
;
42 double pre_log_product
;
45 /* initialize statistic */
46 void ms_init_stats(ms_stat_t
*stat
, const char *name
);
48 /* record one event */
49 void ms_record_event(ms_stat_t
*stat
, uint64_t time
, int get_miss
);
51 /* dump the statistics */
52 void ms_dump_stats(ms_stat_t
*stat
);
54 /* dump the format statistics */
55 void ms_dump_format_stats(ms_stat_t
*stat
, int run_time
,
56 int freq
, int obj_size
);
62 #endif /* MS_STAT_H */