Source
135
135
void zbx_dc_add_history(zbx_uint64_t itemid, unsigned char item_value_type, unsigned char item_flags,
136
136
AGENT_RESULT *result, const zbx_timespec_t *ts, unsigned char state, const char *error);
137
137
void zbx_dc_add_history_variant(zbx_uint64_t itemid, unsigned char value_type, unsigned char item_flags,
138
138
zbx_variant_t *value, zbx_timespec_t ts, const zbx_pp_value_opt_t *value_opt);
139
139
size_t zbx_dc_flush_history(void);
140
140
void zbx_hc_pop_items(zbx_vector_hc_item_ptr_t *history_items);
141
141
void zbx_hc_get_item_values(zbx_dc_history_t *history, zbx_vector_hc_item_ptr_t *history_items);
142
142
void zbx_hc_push_items(zbx_vector_hc_item_ptr_t *history_items);
143
143
int zbx_hc_queue_get_size(void);
144
144
int zbx_hc_get_history_compression_age(void);
145
-
double zbx_hc_mem_pused(int withlock);
145
+
double zbx_hc_mem_pused(void);
146
+
double zbx_hc_mem_pused_lock(void);
146
147
147
148
typedef void (*zbx_history_sync_f)(int *values_num, int *triggers_num, const zbx_events_funcs_t *events_cbs,
148
149
zbx_ipc_async_socket_t *rtc, int config_history_storage_pipelines, int *more);
149
150
150
151
int zbx_init_database_cache(zbx_get_program_type_f get_program_type, zbx_history_sync_f sync_history,
151
152
zbx_uint64_t history_cache_size, zbx_uint64_t history_index_cache_size, zbx_uint64_t *trends_cache_size,
152
153
char **error);
153
154
154
155
void zbx_free_database_cache(int sync, const zbx_events_funcs_t *events_cbs, int config_history_storage_pipelines);
155
156