summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-10-16 15:29:28 +0800
committerchenzizhan <[email protected]>2024-10-16 15:29:28 +0800
commit7a81c67ec9534772fc3041a8ba9212f11038627d (patch)
tree8c16833d6d7516b3d776db656d565e66ad28d450 /include
parent0881c354b6ea011f6213c0f0af237e9260ca798a (diff)
fieldstat_easy_counter_incrby_batch
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat.h3
-rw-r--r--include/fieldstat/fieldstat_easy.h5
2 files changed, 2 insertions, 6 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h
index f47fb2d..b539ab8 100644
--- a/include/fieldstat/fieldstat.h
+++ b/include/fieldstat/fieldstat.h
@@ -130,8 +130,7 @@ int fieldstat_counter_incrby(struct fieldstat *instance, int cube_id, int metric
* @param n_metrics: the length of metric_ids and increments.
* @return Error codes. Or just assert fail if the parameters are invalid.
*/
-int fieldstat_counter_incrby_batch(struct fieldstat *instance, int cube_id, const struct field *cell_dimensions, size_t n_dimensions, int metric_ids[], long long increments[], size_t n_metrics);
-
+int fieldstat_counter_incrby_batch(struct fieldstat *instance, int cube_id, const struct field *cell_dimensions, size_t n_dimensions, const int metric_ids[], const long long increments[], size_t n_metrics);
/*
* @brief let the value of counter metric equal to value. Must be called on non-primary metric. Other annotations refer to fieldstat_counter_incrby.
diff --git a/include/fieldstat/fieldstat_easy.h b/include/fieldstat/fieldstat_easy.h
index 97d7394..4074c70 100644
--- a/include/fieldstat/fieldstat_easy.h
+++ b/include/fieldstat/fieldstat_easy.h
@@ -65,10 +65,7 @@ int fieldstat_easy_output_array_and_reset(struct fieldstat_easy *fse, char ***js
*/
int fieldstat_easy_counter_incrby(struct fieldstat_easy *fse, int thread_id, int metric_id, const struct field *dimensions, size_t n_dimensions, long long increment);
-
-// TODO: easy 的加速使用,跟其他人对接一下。包括如何在不改变fieldstat.h 的基础上再来一套接口。
-// int fieldstat_easy_counter_incrby(struct fieldstat_easy *fse, int thread_id, int metric_id, int cell_id, long long increment);
-// int fieldstat_easy_add_cell(struct fieldstat_easy *fse,const struct field *dimensions, size_t n_dimensions);
+int fieldstat_easy_counter_incrby_batch(struct fieldstat_easy *fse, int thread_id, int metric_ids[], const struct field *dimensions, size_t n_dimensions, const long long *increments, size_t n_metrics);
/*
* @brief let the value of counter metric of dimensions equal to `value`.