⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tglobalstats.h

📁 noxim系统的软件实现
💻 H
字号:
/*****************************************************************************  TGlobalStats.h -- Global Statistics definition *****************************************************************************//* Copyright 2005-2007      Fabrizio Fazzino <fabrizio.fazzino@diit.unict.it>    Maurizio Palesi <mpalesi@diit.unict.it>    Davide Patti <dpatti@diit.unict.it> *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#ifndef __TGLOBAL_STATS_H__#define __TGLOBAL_STATS_H__//---------------------------------------------------------------------------#include <iostream>#include <vector>#include "TNoC.h"#include "TTile.h"//---------------------------------------------------------------------------class TGlobalStats{public:  TGlobalStats(const TNoC* _noc);    // Returns the aggragated average delay (cycles)  double getAverageDelay();    // Returns the aggragated average delay (cycles) for communication  // src_id->dst_id  double getAverageDelay(const int src_id, const int dst_id);  // Returns the max delay  double getMaxDelay();  // Returns the max delay (cycles) experimented by destination  // node_id. Returns -1 if node_id is not destination of any  // communication  double getMaxDelay(const int node_id);  // Returns the max delay (cycles) for communication src_id->dst_id  double getMaxDelay(const int src_id, const int dst_id);    // Returns tha matrix of max delay for any node of the network  vector<vector<double> > getMaxDelayMtx();  // Returns the aggragated average throughput (flits/cycles)  double getAverageThroughput();  // Returns the aggragated average throughput (flits/cycles) for  // communication src_id->dst_id  double getAverageThroughput(const int src_id, const int dst_id);  // Returns the total number of received packets  unsigned int getReceivedPackets();  // Returns the total number of received flits  unsigned int getReceivedFlits();  // Returns the maximum value of the accepted traffic  double getThroughput();  // Returns the number of routed flits for each router  vector<vector<unsigned long> > getRoutedFlitsMtx();  // Returns the total power  double getPower();  // Shows global statistics  void showStats(std::ostream& out = std::cout, bool detailed = false);#ifdef TESTING  unsigned int drained_total;#endifprivate:  const TNoC* noc;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -