summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tomas@whalegate.ndb.mysql.com>2007-05-28 16:31:31 +0200
committerunknown <tomas@whalegate.ndb.mysql.com>2007-05-28 16:31:31 +0200
commit07524c35f8cc6962b8be558cf8bb1731e3cbd349 (patch)
tree9d19c65aa5577ffed831e033d43aa21126043d79 /ndb
parentf4c75aefb2f064dbca40e83e96f29dcf1fb0b9c1 (diff)
downloadmariadb-git-07524c35f8cc6962b8be558cf8bb1731e3cbd349.tar.gz
print user and system time at watchdog check
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/vm/WatchDog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ndb/src/kernel/vm/WatchDog.cpp b/ndb/src/kernel/vm/WatchDog.cpp
index d1abb709b1e..2e24a5eaa6c 100644
--- a/ndb/src/kernel/vm/WatchDog.cpp
+++ b/ndb/src/kernel/vm/WatchDog.cpp
@@ -16,6 +16,7 @@
#include <ndb_global.h>
#include <my_pthread.h>
+#include <sys/times.h>
#include "WatchDog.hpp"
#include "GlobalData.hpp"
@@ -129,6 +130,13 @@ WatchDog::run(){
break;
}//switch
g_eventLogger.warning("Ndb kernel is stuck in: %s", last_stuck_action);
+ {
+ struct tms my_tms;
+ times(&my_tms);
+ g_eventLogger.info("User time: %llu System time: %llu",
+ (Uint64)my_tms.tms_utime,
+ (Uint64)my_tms.tms_stime);
+ }
if(alerts == 3){
shutdownSystem(last_stuck_action);
}