1
This commit is contained in:
parent
9f5c849671
commit
b4204e577e
@ -154,6 +154,11 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
std::shared_ptr<a8::Args> init_args,
|
std::shared_ptr<a8::Args> init_args,
|
||||||
std::shared_ptr<std::vector<float>> buff_vars)
|
std::shared_ptr<std::vector<float>> buff_vars)
|
||||||
{
|
{
|
||||||
|
#ifdef MYDEBUG
|
||||||
|
if (room->IsDestorying()) {
|
||||||
|
A8_ABORT();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
if (GetHeroMeta()->id() == 60100) {
|
if (GetHeroMeta()->id() == 60100) {
|
||||||
room->BroadcastDebugMsg(a8::Format("add boss buff %d %d",
|
room->BroadcastDebugMsg(a8::Format("add boss buff %d %d",
|
||||||
|
@ -25,7 +25,7 @@ void Perf::UnInit()
|
|||||||
void Perf::Output()
|
void Perf::Output()
|
||||||
{
|
{
|
||||||
f8::UdpLog::Instance()->Info
|
f8::UdpLog::Instance()->Info
|
||||||
("perf entity:%d buff:%d bt_co:%d agent:%d c_w_c:%d c_w:%d o_w_c:%d o_w:%d e_w_c:%d e_c:%d",
|
("perf entity:%d buff:%d bt_co:%d agent:%d c_w_c:%d c_w:%d o_w_c:%d o_w:%d e_w_c:%d e_c:%d e_h:%d",
|
||||||
{
|
{
|
||||||
entity_num,
|
entity_num,
|
||||||
buff_num,
|
buff_num,
|
||||||
@ -36,6 +36,7 @@ void Perf::Output()
|
|||||||
o_wptr_chunk_num,
|
o_wptr_chunk_num,
|
||||||
o_wptr_num,
|
o_wptr_num,
|
||||||
e_wptr_chunk_num,
|
e_wptr_chunk_num,
|
||||||
e_wptr_num
|
e_wptr_num,
|
||||||
|
event_handler_num
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ private:
|
|||||||
long long o_wptr_num = 0;
|
long long o_wptr_num = 0;
|
||||||
long long e_wptr_chunk_num = 0;
|
long long e_wptr_chunk_num = 0;
|
||||||
long long e_wptr_num = 0;
|
long long e_wptr_num = 0;
|
||||||
|
long long event_handler_num = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Output();
|
void Output();
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "buff.h"
|
#include "buff.h"
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "team.h"
|
#include "team.h"
|
||||||
|
#include "perf.h"
|
||||||
|
|
||||||
#include "mt/Buff.h"
|
#include "mt/Buff.h"
|
||||||
#include "mt/Skill.h"
|
#include "mt/Skill.h"
|
||||||
@ -24,6 +25,17 @@ public:
|
|||||||
a8::CommonCbProc cb;
|
a8::CommonCbProc cb;
|
||||||
list_head entry;
|
list_head entry;
|
||||||
std::shared_ptr<EventHandler> holder;
|
std::shared_ptr<EventHandler> holder;
|
||||||
|
|
||||||
|
EventHandler()
|
||||||
|
{
|
||||||
|
++Perf::Instance()->event_handler_num;
|
||||||
|
}
|
||||||
|
|
||||||
|
~EventHandler()
|
||||||
|
{
|
||||||
|
--Perf::Instance()->event_handler_num;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void Trigger::Init()
|
void Trigger::Init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user