Last change
on this file since 146 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Register_unit_statistics_declaration.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_execute_loop { |
---|
15 | namespace execute_loop { |
---|
16 | namespace register_unit { |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Register_unit::statistics_declaration" |
---|
20 | void Register_unit::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
21 | { |
---|
22 | log_printf(FUNC,Register_unit,FUNCTION,"Begin"); |
---|
23 | |
---|
24 | _stat = new Stat (static_cast<std::string>(_name), |
---|
25 | "Register_unit", |
---|
26 | param_statistics); |
---|
27 | |
---|
28 | for (uint32_t i=0; i<_param->_nb_ooo_engine; i++) |
---|
29 | { |
---|
30 | _stat->add_stat(component_gpr [i]->_stat); |
---|
31 | _stat->add_stat(component_gpr_status[i]->_stat); |
---|
32 | _stat->add_stat(component_spr [i]->_stat); |
---|
33 | _stat->add_stat(component_spr_status[i]->_stat); |
---|
34 | } |
---|
35 | _stat->add_stat(component_glue->_stat); |
---|
36 | |
---|
37 | log_printf(FUNC,Register_unit,FUNCTION,"End"); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace register_unit |
---|
41 | }; // end namespace execute_loop |
---|
42 | }; // end namespace multi_execute_loop |
---|
43 | }; // end namespace core |
---|
44 | |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.