diff options
| author | yangwei <[email protected]> | 2023-09-05 10:24:33 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-09-05 10:24:33 +0800 |
| commit | 5823b435817fdbd23076709b911c191e18f3044d (patch) | |
| tree | a242da9b54f6541e8401043632fd75f2d617e140 /src/config/config_parse.cpp | |
| parent | cd2dd5c247029d6b2f40abc688899652f73879a6 (diff) | |
✨ feat(memory_used_stat_interval_s): profiling.memory下新增开关,控制两次统计prof.dump间隔
默认10s
Diffstat (limited to 'src/config/config_parse.cpp')
| -rw-r--r-- | src/config/config_parse.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp index 02ac334..05dbf76 100644 --- a/src/config/config_parse.cpp +++ b/src/config/config_parse.cpp @@ -1838,6 +1838,8 @@ int sapp_parse_config(void) tomlc99_wrap_load_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"profiling.sanity_check", (char *)"raw_pkt_broken_enabled", (int *)&pconfig->profiling.sanity_check_raw_pkt_broken_enabled, 0); tomlc99_wrap_load_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"profiling.sanity_check", (char *)"symbol_conflict_enabled", (int *)&pconfig->profiling.sanity_check_symbol_conflict_enabled, 0); + tomlc99_wrap_load_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"profiling.memory", (char *)"memory_used_stat_interval_s", (int *)&pconfig->profiling.memory_used_stat_interval_s, 10); + /************************ PROTOCOL_FEATURE **********************************/ tomlc99_wrap_load_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"PROTOCOL_FEATURE", (char *)"ipv6_decapsulation_enabled", (int *)&pconfig->protocol_feature.ipv6_decapsulation_enabled, 1); tomlc99_wrap_load_int_def(ABBR_CFG_FILE_MAIN_ENTRY, (char *)"PROTOCOL_FEATURE", (char *)"ipv6_send_packet_enabled", (int *)&pconfig->protocol_feature.ipv6_send_packet_enabled, 1); |
