Last change
on this file since 132 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[88] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Core_statistics_allocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/include/Core.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Core::statistics_allocation" |
---|
| 18 | void Core::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
| 19 | { |
---|
| 20 | log_begin(Core,FUNCTION); |
---|
| 21 | |
---|
| 22 | _stat = new Stat (static_cast<std::string>(_name), |
---|
| 23 | "Core", |
---|
| 24 | param_statistics); |
---|
| 25 | |
---|
| 26 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 27 | _stat->add_stat(_component_front_end [i]->_stat); |
---|
| 28 | for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i) |
---|
| 29 | _stat->add_stat(_component_ooo_engine [i]->_stat); |
---|
| 30 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 31 | _stat->add_stat(_component_execute_loop [i]->_stat); |
---|
| 32 | _stat->add_stat(_component_icache_access->_stat); |
---|
| 33 | _stat->add_stat(_component_dcache_access->_stat); |
---|
| 34 | _stat->add_stat(_component_glue->_stat); |
---|
| 35 | |
---|
| 36 | log_end(Core,FUNCTION); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace core |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.