projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add clock for counters recorder in launcher example
[anna.git]
/
source
/
core
/
oam
/
Module.cpp
diff --git
a/source/core/oam/Module.cpp
b/source/core/oam/Module.cpp
index
99b47c9
..
d45ba9f
100644
(file)
--- a/
source/core/oam/Module.cpp
+++ b/
source/core/oam/Module.cpp
@@
-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)
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 | ");
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;
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];
for(register int icounter = 0; icounter < CounterScope::MaxCounter; icounter ++) {
Counter* counter = cscope->a_counters [icounter];