diff options
| author | chenzizhan <[email protected]> | 2023-08-22 10:42:03 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-08-22 10:42:03 +0800 |
| commit | 06a26b7d781dfe784576449d33bd2b10661e7612 (patch) | |
| tree | 04c1c478ee132c7e34f2c4ebfb8d8186a736f5f3 /include | |
| parent | 888ae31c70499d14cabedbeb78a37d1f59bb27dd (diff) | |
Try fix coredump TSG-16625: delete `const` on id_tag_array, some assert , disable optimization flagv4.1.1
Diffstat (limited to 'include')
| -rw-r--r-- | include/fieldstat/fieldstat.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h index b1917eb..c43bee0 100644 --- a/include/fieldstat/fieldstat.h +++ b/include/fieldstat/fieldstat.h @@ -17,6 +17,15 @@ enum metric_type METRIC_TYPE_HISTOGRAM, }; +// poc +// tracing +// 性能 +// 配置 +// stream +// 怎么和C 对接 +// 类型系统? + + enum fs_tag_type { TAG_INTEGER, @@ -45,6 +54,11 @@ struct fieldstat_tag { }; }; +// todo: tag 可以为NULL +// todo: 跟贺岚风说一下,cube的tag里的dev id 要放到exporter里 + + + struct fieldstat; struct fieldstat *fieldstat_new(); void fieldstat_free(struct fieldstat *instance); @@ -145,7 +159,6 @@ int fieldstat_hist_record(struct fieldstat *instance, int cube_id, int metric_id void fieldstat_reset(struct fieldstat *instance); unsigned long fieldstat_get_cell_version(const struct fieldstat *instance); - /* @brief Merge the instance. The registered cubes and metrics are merged even if there are no cells added. @return 0 if success. -1 if failed. Failed when the registered cubes or metrics between dest and src of the same keys has different types or configurations. @@ -154,7 +167,6 @@ int fieldstat_merge(struct fieldstat *instance, struct fieldstat *src); struct fieldstat *fieldstat_deserialize(const char *blob, size_t blob_size); int fieldstat_serialize(const struct fieldstat *instance, char **blob_out, size_t *blob_size_out); - /* -------------------------------------------------------------------------- */ /* query */ /* -------------------------------------------------------------------------- */ |
