chore(server): raise perf log thresholds to reduce noise

This commit is contained in:
itsRevela
2026-04-30 10:47:08 -05:00
parent 5c90744677
commit bddcc13bff
4 changed files with 6 additions and 6 deletions

View File

@@ -1839,7 +1839,7 @@ void MinecraftServer::run(int64_t seed, void *lpParameter)
int64_t iter_t3 = System::currentTimeMillis();
int64_t iter_total = iter_t3 - iter_t0;
outerIterTickWork += iter_total;
if (iter_total > 60)
if (iter_total > 200)
{
ServerRuntime::LogInfof("perf",
"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",
"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
// 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;
int64_t tickStart = System::currentTimeMillis();
int64_t lvlTickMs[kMaxLevelsRecorded] = {0};

View File

@@ -379,7 +379,7 @@ void PlayerChunkMap::tick()
{
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
// 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();
int cm_addReqStart = (int)addRequests.size();
g_findUsAccum = 0;

View File

@@ -189,7 +189,7 @@ void ServerConnection::tick()
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
int64_t sc_loopTotal = System::currentTimeMillis() - sc_loopT0;
if (sc_loopTotal > 50)
if (sc_loopTotal > 150)
{
ServerRuntime::LogInfof("perf",
"conn playerLoop total=%lldms players=%d chunkUs=%lld tickUs=%lld flushUs=%lld | avg chunk=%lld tick=%lld flush=%lld",

View File

@@ -201,7 +201,7 @@ void ServerLevel::tick()
#if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)
// ts[N] = wall-clock at substep N. Logged when level total exceeds
// 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];
ts[0] = System::currentTimeMillis();
#endif