summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-12-18 10:36:10 +0800
committerchenzizhan <[email protected]>2023-12-18 10:36:10 +0800
commitc19b0d08be3ce70641c1c5707d3e67fa3c50c72e (patch)
tree79be6982308e69ccd35b905536dc0fe79edc47d9 /include
parenta3bd4934eb46e67d76489e2fec597e9cb30a84de (diff)
feat: fieldstat easy resetv4.4.4
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat_easy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fieldstat/fieldstat_easy.h b/include/fieldstat/fieldstat_easy.h
index b222644..8b12780 100644
--- a/include/fieldstat/fieldstat_easy.h
+++ b/include/fieldstat/fieldstat_easy.h
@@ -21,6 +21,10 @@ struct fieldstat_easy *fieldstat_easy_new(int max_thread_num, const char *name,
*/
void fieldstat_easy_free(struct fieldstat_easy *fse);
/*
+ * reset the instance. Will fail and return -1 if fieldstat_easy_enable_auto_output is called, since the behavior is hard to define.
+*/
+int fieldstat_easy_reset(struct fieldstat_easy *fse);
+/*
* enable auto output. both data of accumulated and delta will be output.
* @param output_path: output file path. Should be identical to the one in python config.
* @param interval_second: output interval in second.