chore(server): raise perf log thresholds to reduce noise
This commit is contained in:
1 parent
5c90744677
commit
bddcc13bff
4 files changed
+6
-6
No files matched your search
@@ -1839,7 +1839,7 @@ void MinecraftServer::run(int64_t seed, void *lpParameter)
|
|||||||
int64_t iter_t3 = System::currentTimeMillis();
|
int64_t iter_t3 = System::currentTimeMillis();
|
||||||
int64_t iter_total = iter_t3 - iter_t0;
|
int64_t iter_total = iter_t3 - iter_t0;
|
||||||
outerIterTickWork += iter_total;
|
outerIterTickWork += iter_total;
|
||||||
if (iter_total > 60)
|
if (iter_total > 200)
|
||||||
{
|
{
|
||||||
ServerRuntime::LogInfof("perf",
|
ServerRuntime::LogInfof("perf",
|
||||||
"iter total=%lldms pre=%lld tick=%lld post=%lld",
|
"iter total=%lldms pre=%lld tick=%lld post=%lld",
|
||||||
@@ -2198,7 +2198,7 @@ void MinecraftServer::run(int64_t seed, void *lpParameter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outerIterTotal > 60)
|
if (outerIterTotal > 200)
|
||||||
{
|
{
|
||||||
ServerRuntime::LogInfof("perf",
|
ServerRuntime::LogInfof("perf",
|
||||||
"outerIter total=%lldms tickWork=%lld postTickOverhead=%lld",
|
"outerIter total=%lldms tickWork=%lld postTickOverhead=%lld",
|
||||||
@@ -2263,7 +2263,7 @@ void MinecraftServer::tick()
|
|||||||
{
|
{
|
||||||
// Per-substep wall-clock timing. Logs one summary line when total tick
|
// Per-substep wall-clock timing. Logs one summary line when total tick
|
||||||
// exceeds TICK_SLOW_THRESHOLD_MS.
|
// exceeds TICK_SLOW_THRESHOLD_MS.
|
||||||
const int64_t TICK_SLOW_THRESHOLD_MS = 60;
|
const int64_t TICK_SLOW_THRESHOLD_MS = 200;
|
||||||
const int kMaxLevelsRecorded = 8;
|
const int kMaxLevelsRecorded = 8;
|
||||||
int64_t tickStart = System::currentTimeMillis();
|
int64_t tickStart = System::currentTimeMillis();
|
||||||
int64_t lvlTickMs[kMaxLevelsRecorded] = {0};
|
int64_t lvlTickMs[kMaxLevelsRecorded] = {0};
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ void PlayerChunkMap::tick()
|
|||||||
{
|
{
|
||||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||||
// Substep timing for slow chunkMap diagnostics.
|
// Substep timing for slow chunkMap diagnostics.
|
||||||
const int64_t CHUNKMAP_SLOW_THRESHOLD_MS = 50;
|
const int64_t CHUNKMAP_SLOW_THRESHOLD_MS = 150;
|
||||||
int64_t cm_t0 = System::currentTimeMillis();
|
int64_t cm_t0 = System::currentTimeMillis();
|
||||||
int cm_addReqStart = (int)addRequests.size();
|
int cm_addReqStart = (int)addRequests.size();
|
||||||
g_findUsAccum = 0;
|
g_findUsAccum = 0;
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ void ServerConnection::tick()
|
|||||||
|
|
||||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||||
int64_t sc_loopTotal = System::currentTimeMillis() - sc_loopT0;
|
int64_t sc_loopTotal = System::currentTimeMillis() - sc_loopT0;
|
||||||
if (sc_loopTotal > 50)
|
if (sc_loopTotal > 150)
|
||||||
{
|
{
|
||||||
ServerRuntime::LogInfof("perf",
|
ServerRuntime::LogInfof("perf",
|
||||||
"conn playerLoop total=%lldms players=%d chunkUs=%lld tickUs=%lld flushUs=%lld | avg chunk=%lld tick=%lld flush=%lld",
|
"conn playerLoop total=%lldms players=%d chunkUs=%lld tickUs=%lld flushUs=%lld | avg chunk=%lld tick=%lld flush=%lld",
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ void ServerLevel::tick()
|
|||||||
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
|
||||||
// ts[N] = wall-clock at substep N. Logged when level total exceeds
|
// ts[N] = wall-clock at substep N. Logged when level total exceeds
|
||||||
// LEVEL_SLOW_THRESHOLD_MS to pinpoint the dominant substep.
|
// LEVEL_SLOW_THRESHOLD_MS to pinpoint the dominant substep.
|
||||||
const int64_t LEVEL_SLOW_THRESHOLD_MS = 50;
|
const int64_t LEVEL_SLOW_THRESHOLD_MS = 150;
|
||||||
int64_t ts[13];
|
int64_t ts[13];
|
||||||
ts[0] = System::currentTimeMillis();
|
ts[0] = System::currentTimeMillis();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user