rtcycles.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 48 行

HH
48
字号
#ifndef RTCYCLES_HH#define RTCYCLES_HH#include <click/element.hh>/* * =c * RoundTripCycleCount() * * =s profiling * measures round trip cycles on a push or pull path *  * =d * * Measures the number of CPU cycles it takes for a push or pull to come back * to the element. This is a good indication of how much CPU is spent on the * Click path after or before this element. * * =h packets read-only * Returns the number of packets that have passed. * * =h cycles read-only * Returns the accumulated round-trip cycles for all passing packets. * * =h reset_counts write-only * Resets C<packets> and C<cycles> counters to zero when written. * * =a SetCycleCount, CycleCountAccum, SetPerfCount, PerfCountAccum */class RTCycles : public Element { public:    RTCycles();  ~RTCycles();    const char *class_name() const	{ return "RoundTripCycleCount"; }  const char *processing() const	{ return AGNOSTIC; }  void push(int, Packet *p);  Packet *pull(int);  void add_handlers();    uint64_t _accum;  uint64_t _npackets;  };#endif

⌨️ 快捷键说明

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