diff options
| author | chenzizhan <[email protected]> | 2023-09-05 15:57:15 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-09-05 15:57:15 +0800 |
| commit | 2aeda94a7c2e459718293776cb64da4ad554c671 (patch) | |
| tree | dad09e011c8487d298d987c000bb4b3af5eb21c2 /src/exporter | |
| parent | 75a466cbe7f3d27c997a019f2b279b534c3d8549 (diff) | |
faster hdr export
Diffstat (limited to 'src/exporter')
| -rw-r--r-- | src/exporter/cjson_exporter.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/exporter/cjson_exporter.c b/src/exporter/cjson_exporter.c index f45619d..6639d8f 100644 --- a/src/exporter/cjson_exporter.c +++ b/src/exporter/cjson_exporter.c @@ -377,10 +377,6 @@ struct json_tag_field_pair *read_tag_and_field(const struct fieldstat *instance, struct cell_iter *iter = cell_iter_new(instance); struct json_tag_field_pair *tag_field_pair = calloc(n_cell_total, sizeof(struct json_tag_field_pair)); int i = 0; - // clock_t prepare_end = clock(); - // printf("[czz]prepare time: %ld us\n", prepare_end - prepare_start); - // clock_t read_start = clock(); - // int next_num = 0; while (cell_iter_next(iter)) { // next_num++; if (cjson_map_add(&tag_field_pair[i], iter) == 0) { @@ -388,11 +384,8 @@ struct json_tag_field_pair *read_tag_and_field(const struct fieldstat *instance, } i++; } - // clock_t read_end = clock(); - // printf("[czz]read time: %ld us\n", read_end - read_start); *n_pair_out = i; - // printf("[czz] total cell: %zu, the valid cell: %d, loop num%d\n", n_cell_total, i, next_num); cell_iter_free(iter); return tag_field_pair; |
