summaryrefslogtreecommitdiff
path: root/src/fieldstat_easy.c
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-07-18 18:03:05 +0800
committerchenzizhan <[email protected]>2024-07-18 18:03:05 +0800
commit7f415b4385607dcc29babe80356c2c973c301097 (patch)
tree14045d840ca574bf9d3a5ff971d7142cf02279a4 /src/fieldstat_easy.c
parent5f25467142e9bf1dfae083edcd4dc29195105b1b (diff)
fieldstat easy output flat when called actively
Diffstat (limited to 'src/fieldstat_easy.c')
-rw-r--r--src/fieldstat_easy.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/fieldstat_easy.c b/src/fieldstat_easy.c
index 46133f4..f32dbd9 100644
--- a/src/fieldstat_easy.c
+++ b/src/fieldstat_easy.c
@@ -275,7 +275,7 @@ void fieldstat_easy_output(struct fieldstat_easy *fse, char **buff, size_t *buff
struct fieldstat *dest = merge_all_instance(fse);
struct timeval timestamp = get_current_timestamp();
- *buff = fieldstat_json_exporter_export(fse->exporter, dest, &timestamp);
+ *buff = fieldstat_json_exporter_export_flat(fse->exporter, dest, &timestamp);
if (*buff == NULL) {
*buff = strdup("[]");
}
@@ -289,7 +289,7 @@ void fieldstat_easy_output_array(struct fieldstat_easy *fse, char ***json_object
struct timeval timestamp = get_current_timestamp();
struct fieldstat *dest = merge_all_instance(fse);
- fieldstat_json_exporter_export_array(fse->exporter, dest, &timestamp, json_objects, n_object);
+ fieldstat_json_exporter_export_flat_array(fse->exporter, dest, &timestamp, json_objects, n_object);
fieldstat_free(dest);
}
@@ -307,7 +307,7 @@ int fieldstat_easy_output_array_and_reset(struct fieldstat_easy *fse, char ***js
}
struct timeval timestamp = get_current_timestamp();
- fieldstat_json_exporter_export_array(fse->exporter, dest, &timestamp, json_objects, n_object);
+ fieldstat_json_exporter_export_flat_array(fse->exporter, dest, &timestamp, json_objects, n_object);
fieldstat_free(dest);
return 0;
@@ -360,8 +360,3 @@ int fieldstat_easy_histogram_record(struct fieldstat_easy *fse, int thread_id, i
return ret;
}
-
-void fieldstat_easy_enable_delta_in_active_output(struct fieldstat_easy *fse)
-{
- fieldstat_json_exporter_enable_delta(fse->exporter);
-} \ No newline at end of file