From 6f6acd2e85708b9ac538ddc66a50f2de694639c1 Mon Sep 17 00:00:00 2001 From: Bomin Zhang Date: Mon, 1 Jun 2020 12:50:47 +0800 Subject: [PATCH] add log to trace timer wheel processing --- src/util/src/ttimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/src/ttimer.c b/src/util/src/ttimer.c index 68db574d82..55e7da3258 100644 --- a/src/util/src/ttimer.c +++ b/src/util/src/ttimer.c @@ -342,6 +342,7 @@ static void taosTimerLoopFunc(int signo) { int64_t now = taosGetTimestampMs(); for (int i = 0; i < tListLen(wheels); i++) { + tmrTrace("begin processing wheel %d", i); // `expried` is a temporary expire list. // expired timers are first add to this list, then move // to expired queue as a batch to improve performance. @@ -389,6 +390,7 @@ static void taosTimerLoopFunc(int signo) { } addToExpired(expired); + tmrTrace("end processing wheel %d", i); } } -- GitLab