diff options
| author | chenzizhan <[email protected]> | 2024-07-12 16:52:25 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2024-07-12 16:52:25 +0800 |
| commit | b1bfae446ad29bf607bd0bd146dda2467f02ea72 (patch) | |
| tree | a3690af59854e63950b73f4673e8c014989b9be2 /include/fieldstat/fieldstat_easy.h | |
| parent | 58e206384b2b8e4afb63284f471a64f3b6fe424a (diff) | |
rename; add some todos
Diffstat (limited to 'include/fieldstat/fieldstat_easy.h')
| -rw-r--r-- | include/fieldstat/fieldstat_easy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fieldstat/fieldstat_easy.h b/include/fieldstat/fieldstat_easy.h index 62dd5f8..067b43f 100644 --- a/include/fieldstat/fieldstat_easy.h +++ b/include/fieldstat/fieldstat_easy.h @@ -73,7 +73,13 @@ int fieldstat_easy_output_array_and_reset(struct fieldstat_easy *fse, char ***js * @param increment: increment of the counter metric. Can be negative. * return -1 also when the thread_id is out of range.FS_ERR_INVALID_METRIC_ID metric_id is not registered. */ + 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); + /* * @brief let the value of counter metric of dimensions equal to `value`. * for other notes, see fieldstat_easy_counter_incrby. |
