MCPcopy Create free account
hub / github.com/Tencent/phxqueue / ClearConsumeStat

Function ClearConsumeStat

phxqueue/consumer/freqman.cpp:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static void ClearConsumeStat(ConsumeStat_t &consume_stat, const int nhandle_id) {
97 consume_stat.nget = 0;
98 consume_stat.nhandle_tot = 0;
99 for (int i{0}; i < nhandle_id; ++i) consume_stat.handle_id_rank2nhandle[i] = 0;
100}
101
102void FreqMan::UpdateConsumeStat(const int vpid, const comm::proto::ConsumerContext &cc,
103 const vector<shared_ptr<comm::proto::QItem>> &items) {

Callers 2

UpdateConsumeStatMethod · 0.85
ClearAllConsumeStatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected