mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-14 07:48:21 +00:00
Remove trailing whitespace
This commit is contained in:
+32
-32
@@ -58,7 +58,7 @@ public:
|
||||
count = _count;
|
||||
dur = _dur;
|
||||
}
|
||||
|
||||
|
||||
const char *str;
|
||||
unsigned long long count;
|
||||
double dur;
|
||||
@@ -86,31 +86,31 @@ const char *__cp_names[CommonProfiler::MaxCommonProfilerId] = {
|
||||
"Database_DBLoadItems",
|
||||
"Database_GetWaypoints",
|
||||
"Database_DBLoadNPCFactionLists",
|
||||
|
||||
|
||||
"DBcore_RunQuery",
|
||||
|
||||
|
||||
"DBAsync_ProcessWork",
|
||||
"DBAsync_DispatchWork",
|
||||
"DBAsyncLoop_loop",
|
||||
|
||||
|
||||
"EQStreamServer_Process",
|
||||
|
||||
|
||||
"EQStream_Process",
|
||||
|
||||
|
||||
"EQStreamServerLoop",
|
||||
"EQStreamInLoop",
|
||||
"EQStreamOutLoop",
|
||||
"TCPServerLoop",
|
||||
"TCPConnectionLoop",
|
||||
|
||||
|
||||
"Inventory_GetItem",
|
||||
"Inventory_HasItem",
|
||||
|
||||
|
||||
"MakeRandomFloat",
|
||||
|
||||
|
||||
"Mutex_lock",
|
||||
"Timer_Check",
|
||||
|
||||
|
||||
"WorldConnection_Process"
|
||||
};
|
||||
#endif
|
||||
@@ -126,15 +126,15 @@ const char *__zp_names[ZoneProfiler::MaxZoneProfilerId] = {
|
||||
"Client_GetFactionLevel",
|
||||
"Client_SetFactionLevel",
|
||||
"Client_SetFactionLevel2",
|
||||
|
||||
|
||||
"NPC_Attack",
|
||||
"NPC_GetReverseFactionCon",
|
||||
"NPC_Process",
|
||||
"NPC_Death",
|
||||
"NPC_Death",
|
||||
#ifdef EQBOTS
|
||||
"NPC_BotAttackMelee",
|
||||
#endif
|
||||
|
||||
|
||||
"EntityList_TrapProcess",
|
||||
"EntityList_GroupProcess",
|
||||
"EntityList_QueueToGroupsForNPCHealthAA",
|
||||
@@ -153,7 +153,7 @@ const char *__zp_names[ZoneProfiler::MaxZoneProfilerId] = {
|
||||
#ifdef EQBOTS
|
||||
"EntityList_Bot_AICheckCloseBeneficialSpells",
|
||||
#endif
|
||||
|
||||
|
||||
"HateList_Find",
|
||||
"HateList_GetDamageTop",
|
||||
"HateList_GetClosest",
|
||||
@@ -161,7 +161,7 @@ const char *__zp_names[ZoneProfiler::MaxZoneProfilerId] = {
|
||||
"HateList_GetTop",
|
||||
"HateList_IsEmpty",
|
||||
"HateList_GetMostHate",
|
||||
|
||||
|
||||
"Mob_CheckWillAggro",
|
||||
"Mob_CheckLosFN",
|
||||
"Mob_Dist",
|
||||
@@ -219,19 +219,19 @@ const char *__zp_names[ZoneProfiler::MaxZoneProfilerId] = {
|
||||
"Bot_AI_Process_engaged_cast",
|
||||
"NPC_Bot_AI_IdleCastCheck",
|
||||
#endif
|
||||
|
||||
|
||||
"Database_AddLootTableToNPC",
|
||||
|
||||
|
||||
"Zone_Bootup",
|
||||
"Zone_Process",
|
||||
|
||||
|
||||
"WorldServer_Process",
|
||||
|
||||
|
||||
"Spawn2_Process",
|
||||
|
||||
|
||||
"PerlembParser_SendCommands",
|
||||
"PerlXSParser_SendCommands",
|
||||
|
||||
|
||||
"command_realdispatch",
|
||||
"net_main"
|
||||
};
|
||||
@@ -241,16 +241,16 @@ void DumpZoneProfile() {
|
||||
__DZP_timer.stop();
|
||||
time_t aclock;
|
||||
struct tm *newtime;
|
||||
|
||||
|
||||
time( &aclock ); /* Get time in seconds */
|
||||
newtime = localtime( &aclock ); /* Convert time to struct */
|
||||
LogFile->write(EQEMuLog::Debug, "Profiling dump at: [%02d/%02d - %02d:%02d:%02d] (%.2f ms of data)",
|
||||
LogFile->write(EQEMuLog::Debug, "Profiling dump at: [%02d/%02d - %02d:%02d:%02d] (%.2f ms of data)",
|
||||
newtime->tm_mon+1, newtime->tm_mday, newtime->tm_hour, newtime->tm_min, newtime->tm_sec,
|
||||
__DZP_timer.getTotalDuration());
|
||||
|
||||
|
||||
vector<_DZP_Data> data;
|
||||
|
||||
|
||||
|
||||
|
||||
int r;
|
||||
#ifdef COMMON_PROFILE
|
||||
//Dump common profile
|
||||
@@ -258,28 +258,28 @@ void DumpZoneProfile() {
|
||||
data.push_back(_DZP_Data(__cp_names[r], _cp.getCount(r), _cp.getTotalDuration(r)));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ZONE_PROFILE
|
||||
//Dump zone profile
|
||||
for(r = 0; r < ZoneProfiler::MaxZoneProfilerId; r++) {
|
||||
data.push_back(_DZP_Data(__zp_names[r], _zp.getCount(r), _zp.getTotalDuration(r)));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
sort(data.begin(), data.end());
|
||||
|
||||
|
||||
vector<_DZP_Data>::iterator cur,end;
|
||||
cur = data.begin();
|
||||
end = data.end();
|
||||
|
||||
|
||||
for(; cur != end; cur++) {
|
||||
if(cur->count == 0)
|
||||
continue; //dont print empty timers.
|
||||
|
||||
|
||||
LogFile->write(EQEMuLog::Debug, "..%s: %llu calls, %.4fms", cur->str, (unsigned long long)cur->count, cur->dur);
|
||||
}
|
||||
|
||||
LogFile->write(EQEMuLog::Debug, "End Profiling dump at: [%02d/%02d - %02d:%02d:%02d] (%.2f ms of data)",
|
||||
LogFile->write(EQEMuLog::Debug, "End Profiling dump at: [%02d/%02d - %02d:%02d:%02d] (%.2f ms of data)",
|
||||
newtime->tm_mon+1, newtime->tm_mday, newtime->tm_hour, newtime->tm_min, newtime->tm_sec,
|
||||
__DZP_timer.getTotalDuration());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user