diff options
| author | chenzizhan <[email protected]> | 2023-11-14 14:56:03 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-11-14 14:56:03 +0800 |
| commit | 706e5dc7a2615cec0dc2a1bf9eddcff9a391855c (patch) | |
| tree | 51aa2294b9ed76567ddff3f6ca1a8e82f6113d96 /include/fieldstat/fieldstat_easy.h | |
| parent | a619037a074dd57398d185cd2e2154bb991d2c2b (diff) | |
fieldstat easy name
Diffstat (limited to 'include/fieldstat/fieldstat_easy.h')
| -rw-r--r-- | include/fieldstat/fieldstat_easy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/fieldstat/fieldstat_easy.h b/include/fieldstat/fieldstat_easy.h index 2770844..b222644 100644 --- a/include/fieldstat/fieldstat_easy.h +++ b/include/fieldstat/fieldstat_easy.h @@ -12,9 +12,10 @@ struct fieldstat_easy; /* * new a fieldstat_easy instance. * @param max_thread_num: max thread number of this instance. - * @param tags: tags of this instance. Will appear in output json. + * @param name: name of this instance. Will appear in output json. Can be NULL. + * @param tags: tags of this instance. Will appear in output json. Can be NULL. */ -struct fieldstat_easy *fieldstat_easy_new(int max_thread_num, const struct fieldstat_tag *tags, size_t n_tag); +struct fieldstat_easy *fieldstat_easy_new(int max_thread_num, const char *name, const struct fieldstat_tag *tags, size_t n_tag); /* * free a fieldstat_easy instance. */ |
