mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine stat for GSO
This commit is contained in:
parent
5b406d68d6
commit
03a03e4174
6 changed files with 31 additions and 64 deletions
|
@ -609,6 +609,8 @@ srs_error_t SrsRtcSenderThread::cycle()
|
|||
SrsPithyPrint* pprint = SrsPithyPrint::create_rtc_play();
|
||||
SrsAutoFree(SrsPithyPrint, pprint);
|
||||
|
||||
SrsStatistic* stat = SrsStatistic::instance();
|
||||
|
||||
while (true) {
|
||||
if ((err = trd->pull()) != srs_success) {
|
||||
return srs_error_wrap(err, "rtc sender thread");
|
||||
|
@ -647,6 +649,8 @@ srs_error_t SrsRtcSenderThread::cycle()
|
|||
srs_freep(msg);
|
||||
}
|
||||
|
||||
stat->perf_mw_on_msgs(msg_count, pkts.nn_bytes, pkts.nn_rtp_pkts);
|
||||
|
||||
pprint->elapse();
|
||||
if (pprint->can_print()) {
|
||||
// TODO: FIXME: Print stat like frame/s, packet/s, loss_packets.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue