diff options
| author | 彭宣正 <[email protected]> | 2020-12-02 10:34:10 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2020-12-02 10:34:10 +0800 |
| commit | 9268eab361df4c84dbce6cc9cb9049096e4f7e4f (patch) | |
| tree | b952f360063385861e13dd09bfd4aa82bda469d7 | |
| parent | 5431ea73e2eb29b7990accc75fb1867b26a61322 (diff) | |
update readme.md
| -rw-r--r-- | readme.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -125,4 +125,15 @@ hos_set_cache_size 和 hos_set_cache_count。这两个API都是作用于整个� ## fieldstat2 显示 Hos Client使用fieldstat2 进行信息监控,监控内容包括:收发的pkts和bytes,fd的使用情况,缓存的使用情况 +Hos client 通过使用hos_expand_fs2来启用fieldstat2功能。 +示例: + + fs2_path = "./log/fs2"; + int format = 0; + char fs2_serverip = "127.0.0.1"; + char fs2_serverport = 10086; + hos_expand_fs2(handle, fs2_path, format, "127.0.0.1", 10086); + +其中fs2_path为本地日志落地路径,日志以天为一个周期,如果fs2_path为空则屏显输出;format 为0表示以默认输出,1表示Json输出; +fs2_serverip 和 port表示日志需要发送去的地方。 |
