Last change
on this file since 146 was
141,
checked in by rosiere, 14 years ago
|
Add statistics in stage IFETCH, DECODE and COMMIT (insert, retire and commit)
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Decod_statistics_allocation.cpp 141 2010-08-02 18:56:05Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Decod.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace decod_unit { |
---|
17 | namespace decod { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Decod::statistics_allocation" |
---|
22 | void Decod::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
23 | { |
---|
24 | log_printf(FUNC,Decod,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | _stat = new Stat (static_cast<std::string>(_name), |
---|
27 | "Decod", |
---|
28 | param_statistics); |
---|
29 | |
---|
30 | _stat_nb_inst_decod = _stat->create_counters("nb_inst_decod",_param->_nb_inst_decod,"", |
---|
31 | _("Cycle number with %d decoded instruction(s)."), |
---|
32 | _("Percent of cycle number with %d decoded instruction(s)."), |
---|
33 | _("Average of decoded instructions.") |
---|
34 | ); |
---|
35 | |
---|
36 | log_printf(FUNC,Decod,FUNCTION,"End"); |
---|
37 | }; |
---|
38 | |
---|
39 | }; // end namespace decod |
---|
40 | }; // end namespace decod_unit |
---|
41 | }; // end namespace front_end |
---|
42 | }; // end namespace multi_front_end |
---|
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.