source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue_statistics_declaration.cpp @ 73

Last change on this file since 73 was 73, checked in by rosiere, 16 years ago

add two component :

  • Write Queue (in Moore version)
  • Execute Queue

add macro to help the interface allocation : Allocation.h

File size: 1.5 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Execute_queue.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_write_unit {
17namespace write_unit {
18namespace execute_queue {
19
20
21#undef  FUNCTION
22#define FUNCTION "Execute_queue::statistics_declaration"
23  void Execute_queue::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
24  {
25    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
26
27    _stat = new Stat (static_cast<string>(_name),
28                      "Execute_queue",
29                      param_statistics);
30   
31    _stat_use_queue         = _stat->create_variable("use_queue");
32    _stat_average_use_queue = _stat->create_counter ("average_use_queue", "" , "Average by cycle of the execute_queue occupation.");
33    _stat_percent_use_queue = _stat->create_counter ("percent_use_queue", "%", "Percent of execute_queue usage.");
34
35    _stat->create_expr("average_use_queue", "/ use_queue cycle"      , false);
36    _stat->create_expr("percent_use_queue", "/ * average_use_queue 100 "+toString(_param->_size_queue), false);
37
38    log_printf(FUNC,Execute_queue,FUNCTION,"End");
39  };
40
41}; // end namespace execute_queue
42}; // end namespace write_unit
43}; // end namespace multi_write_unit
44}; // end namespace execute_loop
45}; // end namespace multi_execute_loop
46}; // end namespace core
47
48}; // end namespace behavioural
49}; // end namespace morpheo             
50#endif
Note: See TracBrowser for help on using the repository browser.