This commit is contained in:
aozhiwei 2019-06-17 13:34:20 +08:00
parent 2aae1a18f9
commit fdef4b89b6
3 changed files with 8 additions and 1 deletions

View File

@ -130,3 +130,8 @@ void GGListener::MarkClient(int sockhandle, bool is_active)
{
tcp_listener_->MarkClient(sockhandle, is_active);
}
long long GGListener::GetSendNodeNum()
{
return tcp_listener_->send_node_num;
}

View File

@ -40,6 +40,7 @@ class GGListener : public a8::Singleton<GGListener>
void ForceCloseClient(int sockhandle);
void MarkClient(int sockhandle, bool is_active);
long long GetSendNodeNum();
private:
a8::TcpListener *tcp_listener_ = nullptr;

View File

@ -61,7 +61,7 @@ static void SavePerfLog()
PlayerMgr::Instance()->OnlineNum()
});
if (App::Instance()->HasFlag(4)) {
a8::XPrintf("mainloop_time:%d netmsg_time:%d room:%d over_room:%d online:%d bullet:%d grid_chg_times:%d test_times:%d ray_times:%d ray_time:%d\n",
a8::XPrintf("mainloop_time:%d netmsg_time:%d room:%d over_room:%d online:%d bullet:%d grid_chg_times:%d test_times:%d ray_times:%d ray_time:%d send_node_num:%d\n",
{
App::Instance()->perf.max_run_delay_time,
App::Instance()->perf.max_dispatchmsg_time,
@ -73,6 +73,7 @@ static void SavePerfLog()
App::Instance()->perf.test_times,
App::Instance()->perf.ray_times,
App::Instance()->perf.ray_time,
GGListener::Instance()->GetSendNodeNum()
});
a8::XPrintf("params[0]:%d params[1]:%d params[2]:%d params[3]:%d params[4]:%d params[5]:%d params[6]:%d\n",
{