X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4115960d4b88375610bd0a8990a5a522c9fbe003..ee146bca1b2d76b3e486c66a2d5ad15e44f2cbd0:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index 8c9864517e..2d5df44954 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -22,6 +22,8 @@ #include "wx/log.h" #include "wx/listimpl.cpp" +#define TRACE_MODULE _T("module") + WX_DEFINE_LIST(wxModuleList) IMPLEMENT_CLASS(wxModule, wxObject) @@ -54,6 +56,8 @@ void wxModule::RegisterModules() if ( classInfo->IsKindOf(CLASSINFO(wxModule)) && (classInfo != (& (wxModule::ms_classInfo))) ) { + wxLogTrace(TRACE_MODULE, wxT("Registering module %s"), + classInfo->GetClassName()); wxModule* module = (wxModule *)classInfo->CreateObject(); RegisterModule(module); } @@ -93,6 +97,8 @@ void wxModule::CleanUpModules() wxModuleList::compatibility_iterator node; for ( node = m_modules.GetFirst(); node; node = node->GetNext() ) { + wxLogTrace(TRACE_MODULE, wxT("Cleanup module %s"), + node->GetData()->GetClassInfo()->GetClassName()); node->GetData()->Exit(); }