Add clock for counters recorder in launcher example
[anna.git] / source / core / oam / Module.cpp
index 99b47c9..d45ba9f 100644 (file)
@@ -527,7 +527,7 @@ void anna::oam::Module::recordCounters() throw(anna::RuntimeException) {
   LOGMETHOD(anna::TraceMethod tttm("anna::oam::Module", "recordCounters", ANNA_FILE_LOCATION));
 
   if(a_counterRecorder == NULL)
-    throw RuntimeException("anna::oam::CounterManager has no counter recorder associated", ANNA_FILE_LOCATION);
+    throw RuntimeException("anna::oam::Module has no counter recorder associated", ANNA_FILE_LOCATION);
 
   LOGDEBUG(
     std::string msg("Recording counters | ");
@@ -545,9 +545,7 @@ void anna::oam::Module::recordCounters() throw(anna::RuntimeException) {
       cscope = scope(scope_it);
       if(cscope == NULL) continue;
 
-      //CounterScope& counterScope(*scope);
-      //Guard csGuard(counterScope, "oam::CounterScope from oam::CounterManager::record");
-      Guard csGuard(cscope, "oam::CounterScope from oam::CounterManager::record");
+      Guard csGuard(cscope, "oam::CounterScope from oam::Module::record");
 
       for(register int icounter = 0; icounter < CounterScope::MaxCounter; icounter ++) {
         Counter* counter = cscope->a_counters [icounter];