mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
支持线程内存malloc统计 (#1317)
This commit is contained in:
@@ -202,12 +202,12 @@ static void reportServerKeepalive() {
|
||||
|
||||
GET_CONFIG(float, alive_interval, Hook::kAliveInterval);
|
||||
g_keepalive_timer = std::make_shared<Timer>(alive_interval, []() {
|
||||
ArgsType body;
|
||||
body["data"] = getStatisticJson();
|
||||
|
||||
//执行hook
|
||||
do_http_hook(hook_server_keepalive, body, nullptr);
|
||||
|
||||
getStatisticJson([](const Value &data) mutable {
|
||||
ArgsType body;
|
||||
body["data"] = data;
|
||||
//执行hook
|
||||
do_http_hook(hook_server_keepalive, body, nullptr);
|
||||
});
|
||||
return true;
|
||||
}, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user