forked from naver/arcus-memcached
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.h
59 lines (59 loc) · 3.67 KB
/
stats.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* arcus-memcached - Arcus memory cache server
* Copyright 2010-2014 NAVER Corp.
* Copyright 2015 JaM2in Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* stats */
void stats_prefix_init(char delimiter, void (*cb_when_prefix_overflow)(void));
void stats_prefix_clear(void);
int stats_prefix_count(void);
#if 1 // NEW_PREFIX_STATS_MANAGEMENT
int stats_prefix_insert(const char *prefix, const size_t nprefix);
#endif
int stats_prefix_delete(const char *prefix, const size_t nprefix);
void stats_prefix_record_get(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_delete(const char *key, const size_t nkey);
void stats_prefix_record_set(const char *key, const size_t nkey);
void stats_prefix_record_incr(const char *key, const size_t nkey);
void stats_prefix_record_decr(const char *key, const size_t nkey);
void stats_prefix_record_lop_create(const char *key, const size_t nkey);
void stats_prefix_record_lop_insert(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_lop_delete(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_lop_get(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_sop_create(const char *key, const size_t nkey);
void stats_prefix_record_sop_insert(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_sop_delete(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_sop_get(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_sop_exist(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_mop_create(const char *key, const size_t nkey);
void stats_prefix_record_mop_insert(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_mop_update(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_mop_delete(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_mop_get(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_create(const char *key, const size_t nkey);
void stats_prefix_record_bop_insert(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_update(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_delete(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_incr(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_decr(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_get(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_count(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_position(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_pwg(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_bop_gbp(const char *key, const size_t nkey, const bool is_hit);
void stats_prefix_record_getattr(const char *key, const size_t nkey);
void stats_prefix_record_setattr(const char *key, const size_t nkey);
/*@null@*/
char *stats_prefix_dump(int *length);