~dave-terei/libmemcached/sasl-fixes

« back to all changes in this revision

Viewing changes to clients/ms_stats.h

  • Committer: Jake Moilanen
  • Date: 2009-11-30 16:43:20 UTC
  • mto: This revision was merged to the branch mainline in revision 623.
  • Revision ID: moilanen@method-20091130164320-az7r0hvhuqz8r5su
Uncrustify

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#endif
24
24
 
25
25
/* statistic structure of response time */
26
 
typedef struct {
27
 
    char *      name;
28
 
    uint64_t    total_time;
29
 
    uint64_t    min_time;
30
 
    uint64_t    max_time;
31
 
    uint64_t    get_miss;
32
 
    uint64_t    dist[65];
33
 
    double      squares;
34
 
    double      log_product;
 
26
typedef struct
 
27
{
 
28
  char *name;
 
29
  uint64_t total_time;
 
30
  uint64_t min_time;
 
31
  uint64_t max_time;
 
32
  uint64_t get_miss;
 
33
  uint64_t dist[65];
 
34
  double squares;
 
35
  double log_product;
35
36
 
36
 
    uint64_t    period_min_time;
37
 
    uint64_t    period_max_time;
38
 
    uint64_t    pre_get_miss;
39
 
    uint64_t    pre_events;
40
 
    uint64_t    pre_total_time;
41
 
    uint64_t    pre_squares;
42
 
    double      pre_log_product;
 
37
  uint64_t period_min_time;
 
38
  uint64_t period_max_time;
 
39
  uint64_t pre_get_miss;
 
40
  uint64_t pre_events;
 
41
  uint64_t pre_total_time;
 
42
  uint64_t pre_squares;
 
43
  double pre_log_product;
43
44
} ms_stat_t;
44
45
 
45
46
/* initialize statistic */
46
47
void ms_init_stats(ms_stat_t *stat, const char *name);
47
48
 
 
49
 
48
50
/* record one event */
49
51
void ms_record_event(ms_stat_t *stat, uint64_t time, int get_miss);
50
52
 
 
53
 
51
54
/* dump the statistics */
52
55
void ms_dump_stats(ms_stat_t *stat);
53
56
 
 
57
 
54
58
/* dump the format statistics */
55
 
void ms_dump_format_stats(ms_stat_t *stat, int run_time,
56
 
                          int freq, int obj_size);
 
59
void ms_dump_format_stats(ms_stat_t *stat,
 
60
                          int run_time,
 
61
                          int freq,
 
62
                          int obj_size);
 
63
 
57
64
 
58
65
#ifdef __cplusplus
59
66
}