From 09ff9252575e076375d1e414126466459c21e6d3 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 17 Nov 2010 19:12:08 +0000 Subject: Aggregate Timer warnings. The Timer code logs a warning if a timer callback is started late or overruns the start time for the next callback. In cases where there are a lot of these warnings, the time taken to do the logging itself severly worsens the situation. This commit aggregates timer warnings and give a statistical report every 5 seconds at most. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1036169 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Timer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/qpid/sys/Timer.h') diff --git a/cpp/src/qpid/sys/Timer.h b/cpp/src/qpid/sys/Timer.h index 531bae0f52..98ba39ce38 100644 --- a/cpp/src/qpid/sys/Timer.h +++ b/cpp/src/qpid/sys/Timer.h @@ -21,6 +21,7 @@ #ifndef sys_Timer #define sys_Timer +#include "qpid/sys/TimerWarnings.h" #include "qpid/sys/Monitor.h" #include "qpid/sys/Mutex.h" #include "qpid/sys/Thread.h" @@ -96,6 +97,7 @@ class Timer : private Runnable { Duration late; Duration overran; Duration lateCancel; + TimerWarnings warn; }; -- cgit v1.2.1