📄 rtcycles.hh
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -