Lines Matching defs:rsp
95 static uint32_t GetTotalLines(const StatsRsp &rsp)
100 lines += rsp.lines[i];
105 static uint64_t GetTotalLen(const StatsRsp &rsp)
110 len += rsp.len[i];
115 static void PrintStats(const StatsRsp &rsp)
118 cout << setw(FREQ_W) << setprecision(FLOAT_PRECSION) << rsp.freqMax << colCmd;
119 cout << setw(TIME_W) << TimeStr(rsp.freqMaxSec, rsp.freqMaxNsec) << colCmd;
120 cout << setw(TP_W) << setprecision(FLOAT_PRECSION) << rsp.throughputMax << colCmd;
121 cout << setw(TIME_W) << TimeStr(rsp.tpMaxSec, rsp.tpMaxNsec) << colCmd;
122 cout << setw(LINES_W) << GetTotalLines(rsp) << colCmd;
123 cout << setw(LENGTH_W) << Size2Str(GetTotalLen(rsp)) << colCmd;
124 cout << setw(DROPPED_W) << rsp.dropped << colCmd;
168 static void HilogShowDomainStatsInfo(const StatsQueryRsp& rsp)
175 for (i = 0; i < rsp.typeNum; i++) {
176 LogTypeDomainStatsRsp &ldStats = rsp.ldStats[i];
229 static void HilogShowProcStatsInfo(const StatsQueryRsp& rsp)
236 if (rsp.pStats == nullptr) {
240 SortProcList(vp, rsp.pStats, rsp.procNum);
241 for (i = 0; i < rsp.procNum; i++) {
274 void HilogShowLogStatsInfo(const StatsQueryRsp& rsp)
277 cout << "Log statistic report (Duration: " << DurationStr(rsp.durationSec, rsp.durationNsec);
278 cout << ", From: " << TimeStr(rsp.tsBeginSec, rsp.tsBeginNsec) << "):" << endl;
282 lines += rsp.totalLines[i];
283 lens += rsp.totalLens[i];
292 cout << level << " lines: " << rsp.totalLines[i];
293 cout << "(" << setprecision(FLOAT_PRECSION) << (static_cast<float>(rsp.totalLines[i] * PERCENT) / lines) <<
295 cout << ", length: " << Size2Str(rsp.totalLens[i]);
296 cout << "(" << setprecision(FLOAT_PRECSION) << (static_cast<float>(rsp.totalLens[i] * PERCENT) / lens) <<
301 HilogShowDomainStatsInfo(rsp);
303 HilogShowProcStatsInfo(rsp);