From 93a78a57ada6d5dab410c2bd3c4b02f4fa15684c Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 18 Oct 2009 01:40:26 +0000 Subject: Add more debug logging of object lifetimes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11900 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/base.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/base.cpp') diff --git a/src/base.cpp b/src/base.cpp index 2e2dbfb28..15a642eb4 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -11,24 +11,32 @@ * --------------------------------------------------- */ -/* $Core */ - #include "inspircd_config.h" #include "base.h" #include #include "inspircd.h" +#include classbase::classbase() { + if (ServerInstance && ServerInstance->Logs) + ServerInstance->Logs->Log("CULLLIST", DEBUG, "classbase::+%s @%p", + typeid(*this).name(), (void*)this); } CullResult classbase::cull() { + if (ServerInstance && ServerInstance->Logs) + ServerInstance->Logs->Log("CULLLIST", DEBUG, "classbase::-%s @%p", + typeid(*this).name(), (void*)this); return CullResult(); } classbase::~classbase() { + if (ServerInstance && ServerInstance->Logs) + ServerInstance->Logs->Log("CULLLIST", DEBUG, "classbase::~%s @%p", + typeid(*this).name(), (void*)this); } CullResult::CullResult() -- cgit v1.3.1-10-gc9f91