1
This commit is contained in:
parent
2aae1a18f9
commit
fdef4b89b6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user