diff options
| author | zhengchao <[email protected]> | 2018-09-03 20:14:33 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-09-03 20:14:33 +0800 |
| commit | 963944fdaa645d738c20132a3ec3836fef2e3d5f (patch) | |
| tree | 6fc6683a85b682ef90966bf91cd437742e037f71 /test | |
| parent | 947aeed5b9004052f8fca8ca395062a917b1a530 (diff) | |
histogram支持动态注册
Diffstat (limited to 'test')
| -rw-r--r-- | test/fs2_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fs2_test.cpp b/test/fs2_test.cpp index 598ba71..66095b3 100644 --- a/test/fs2_test.cpp +++ b/test/fs2_test.cpp @@ -36,6 +36,9 @@ int main(int argc,char* argv[]) value=4096; FS_set_para(handle, MAX_STAT_FIELD_NUM, &value, sizeof(value)); + const char* histogram_format="10,100,200,500,1000"; + FS_set_para(handle, HISTOGRAM_GLOBAL_BINS, histogram_format, strlen(histogram_format)+1); + int status_ids[TEST_STATUS_NUM], field_ids[TEST_FIELD_NUM], line_ids[TEST_LINE_NUM+TEST_RUNTIME_REG_LINE_NUM], column_ids[TEST_COLUMN_NUM]; int histogram_ids[TEST_HISTOGRAM_NUM]; int runtime_status_ids[TEST_RUNTIME_REG_NUM]; @@ -85,8 +88,6 @@ int main(int argc,char* argv[]) FS_STYLE_COLUMN, FS_CALC_SPEED, buff); - const char* histogram_format="10,100,200,500,1000"; - FS_set_para(handle, HISTOGRAM_GENERAL_BINS, histogram_format, strlen(histogram_format)+1); FS_start(handle); while (1) |
