Last change
on this file since 134 was
110,
checked in by rosiere, 16 years ago
|
1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
800 bytes
|
Rev | Line | |
---|
[71] | 1 | #ifdef STATISTICS |
---|
| 2 | #include "Behavioural/include/Stat.h" |
---|
| 3 | |
---|
| 4 | namespace morpheo { |
---|
| 5 | namespace behavioural { |
---|
[110] | 6 | |
---|
| 7 | #undef FUNCTION |
---|
| 8 | #define FUNCTION "Stat::alloc_operand" |
---|
[71] | 9 | counter_t * Stat::alloc_operand (counter_type_t type, std::string varname, std::string unit, std::string description) |
---|
| 10 | { |
---|
| 11 | if (not is_valid_var (varname)) |
---|
[110] | 12 | throw(ERRORMORPHEO(FUNCTION,toString(_("<%s> : Variable \"%s\" is not valid."),_name_instance.c_str(),varname.c_str()))); |
---|
[71] | 13 | |
---|
| 14 | counter_t * counter = new counter_t; |
---|
| 15 | var_t var; |
---|
| 16 | |
---|
| 17 | var.counter = counter; |
---|
| 18 | var.type = type; |
---|
| 19 | var.name = varname; |
---|
| 20 | var.unit = unit; |
---|
| 21 | var.description = description; |
---|
| 22 | |
---|
| 23 | // insertion dans la table |
---|
| 24 | (*_list_operand) [varname] = var; |
---|
| 25 | |
---|
| 26 | *counter = 0; |
---|
| 27 | |
---|
| 28 | return counter; |
---|
| 29 | } |
---|
| 30 | }; |
---|
| 31 | }; |
---|
| 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.