Last change
on this file since 94 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.2 KB
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Front_end_statistics_allocation.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/include/Front_end.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Front_end::statistics_allocation" |
---|
20 | void Front_end::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
21 | { |
---|
22 | log_begin(Front_end,FUNCTION); |
---|
23 | |
---|
24 | _stat = new Stat (static_cast<std::string>(_name), |
---|
25 | "Front_end", |
---|
26 | param_statistics); |
---|
27 | |
---|
28 | for (uint32_t i=0; i<_param->_nb_context; ++i) |
---|
29 | _stat->add_stat(_component_ifetch_unit [i] ->_stat); |
---|
30 | _stat->add_stat(_component_prediction_unit ->_stat); |
---|
31 | _stat->add_stat(_component_context_state ->_stat); |
---|
32 | for (uint32_t i=0; i<_param->_nb_decod_unit; ++i) |
---|
33 | _stat->add_stat(_component_decod_unit [i] ->_stat); |
---|
34 | _stat->add_stat(_component_glue ->_stat); |
---|
35 | |
---|
36 | |
---|
37 | log_end(Front_end,FUNCTION); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace front_end |
---|
41 | }; // end namespace multi_front_end |
---|
42 | }; // end namespace core |
---|
43 | |
---|
44 | }; // end namespace behavioural |
---|
45 | }; // end namespace morpheo |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.