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

📄 setperfcount.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef SETPERFCOUNT_HH#define SETPERFCOUNT_HH#include "elements/linuxmodule/perfcountuser.hh"/* * =c * SetPerfCount(TYPE) * =s profiling * stores Pentium Pro performance metric in annotation * =d * * Stores information about the Pentium Pro performance metric TYPE in each * packet. In combination with PerfCountAccum, this lets you measure how the * metric changes over the packet's lifetime. * * =n * * A packet has room for either exactly one cycle count or exactly one * performance metric. * * Valid performance metric names are C<BUS_TRAN_INVAL>, C<BUS_TRAN_MEM>, * C<DCU_MISS_OUTSTANDING>, C<IFU_FETCH>, C<IFU_FETCH_MISS>, C<IFU_MEM_STALL>, * C<INST_RETIRED>, C<L2_IFETCH>, C<L2_LD>, C<L2_LINES_IN>, C<L2_LINES_OUT>, * C<L2_LINES_OUTM>, and C<L2_RQSTS>. *  * =a PerfCountAccum, SetCycleCount, CycleCountAccum */class SetPerfCount : public PerfCountUser { public:    SetPerfCount();  ~SetPerfCount();    const char *class_name() const		{ return "SetPerfCount"; }  void *cast(const char *);  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);    inline void smaction(Packet *);  void push(int, Packet *p);  Packet *pull(int); private:    int _which;};#endif

⌨️ 快捷键说明

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