]> git.saurik.com Git - wxWidgets.git/commitdiff
Trace module initialization and cleanup.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 25 Sep 2005 14:26:38 +0000 (14:26 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 25 Sep 2005 14:26:38 +0000 (14:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/module.cpp

index 8c9864517ebfb21a7fd0776433bb5f42ef5690fa..2d5df449544f039f5695dc06765977f91ba074d5 100644 (file)
@@ -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();
     }