~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statistics_variables.h

  • Committer: Brian Aker
  • Date: 2010-06-02 06:19:59 UTC
  • mto: (1578.6.10 explain-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1589.
  • Revision ID: brian@gir-2.local-20100602061959-buxitsrzet3z43l1
Modify cache to be a vector.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 */
33
33
typedef struct global_counters
34
34
{
35
 
  uint64_t max_used_connections;
36
 
  uint64_t connections;
37
 
  uint64_t locks_immediate;
38
 
  uint64_t locks_waited;
 
35
  uint64_t aborted_threads;
 
36
  uint64_t aborted_connects;
 
37
  uint32_t max_used_connections;
 
38
  uint32_t locks_immediate;
 
39
  uint32_t locks_waited;
39
40
} global_counters;
40
41
 
41
42
/* 
45
46
 */
46
47
typedef struct system_status_var
47
48
{
48
 
  uint64_t aborted_connects;
49
 
  uint64_t aborted_threads;
50
 
  uint64_t access_denied;
51
49
  uint64_t bytes_received;
52
50
  uint64_t bytes_sent;
53
 
  uint64_t com_other;
54
 
  uint64_t created_tmp_disk_tables;
55
 
  uint64_t created_tmp_tables;
56
 
  uint64_t ha_commit_count;
57
 
  uint64_t ha_delete_count;
58
 
  uint64_t ha_read_first_count;
59
 
  uint64_t ha_read_last_count;
60
 
  uint64_t ha_read_key_count;
61
 
  uint64_t ha_read_next_count;
62
 
  uint64_t ha_read_prev_count;
63
 
  uint64_t ha_read_rnd_count;
64
 
  uint64_t ha_read_rnd_next_count;
65
 
  uint64_t ha_rollback_count;
66
 
  uint64_t ha_update_count;
67
 
  uint64_t ha_write_count;
68
 
  uint64_t ha_prepare_count;
69
 
  uint64_t ha_savepoint_count;
70
 
  uint64_t ha_savepoint_rollback_count;
71
 
 
72
 
  uint64_t select_full_join_count;
73
 
  uint64_t select_full_range_join_count;
74
 
  uint64_t select_range_count;
75
 
  uint64_t select_range_check_count;
76
 
  uint64_t select_scan_count;
77
 
  uint64_t long_query_count;
78
 
  uint64_t filesort_merge_passes;
79
 
  uint64_t filesort_range_count;
80
 
  uint64_t filesort_rows;
81
 
  uint64_t filesort_scan_count;
82
 
  uint64_t connection_time;
83
 
  uint64_t execution_time_nsec;
84
 
  uint64_t updated_row_count;
85
 
  uint64_t deleted_row_count;
86
 
  uint64_t inserted_row_count;
 
51
  ulong com_other;
 
52
  ulong created_tmp_disk_tables;
 
53
  ulong created_tmp_tables;
 
54
  ulong ha_commit_count;
 
55
  ulong ha_delete_count;
 
56
  ulong ha_read_first_count;
 
57
  ulong ha_read_last_count;
 
58
  ulong ha_read_key_count;
 
59
  ulong ha_read_next_count;
 
60
  ulong ha_read_prev_count;
 
61
  ulong ha_read_rnd_count;
 
62
  ulong ha_read_rnd_next_count;
 
63
  ulong ha_rollback_count;
 
64
  ulong ha_update_count;
 
65
  ulong ha_write_count;
 
66
  ulong ha_prepare_count;
 
67
  ulong ha_savepoint_count;
 
68
  ulong ha_savepoint_rollback_count;
 
69
 
 
70
  /* KEY_CACHE parts. These are copies of the original */
 
71
  ulong key_blocks_changed;
 
72
  ulong key_blocks_used;
 
73
  ulong key_cache_r_requests;
 
74
  ulong key_cache_read;
 
75
  ulong key_cache_w_requests;
 
76
  ulong key_cache_write;
 
77
  /* END OF KEY_CACHE parts */
 
78
 
 
79
  ulong select_full_join_count;
 
80
  ulong select_full_range_join_count;
 
81
  ulong select_range_count;
 
82
  ulong select_range_check_count;
 
83
  ulong select_scan_count;
 
84
  ulong long_query_count;
 
85
  ulong filesort_merge_passes;
 
86
  ulong filesort_range_count;
 
87
  ulong filesort_rows;
 
88
  ulong filesort_scan_count;
87
89
  /*
88
90
    Number of statements sent from the client
89
91
  */
90
 
  uint64_t questions;
 
92
  ulong questions;
91
93
  /*
92
94
    IMPORTANT!
93
95
    SEE last_system_status_var DEFINITION BELOW.