1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Stat the large buffer allocation

This commit is contained in:
winlin 2021-02-26 18:32:29 +08:00
parent 4cb3a18d1e
commit 6e9cb059b3
2 changed files with 7 additions and 3 deletions

View file

@ -39,6 +39,7 @@ using namespace std;
SrsPps* _srs_pps_objs_rtps = new SrsPps();
SrsPps* _srs_pps_objs_rraw = new SrsPps();
SrsPps* _srs_pps_objs_rfua = new SrsPps();
SrsPps* _srs_pps_objs_rbuf = new SrsPps();
/* @see https://tools.ietf.org/html/rfc1889#section-5.1
0 1 2 3
@ -867,6 +868,8 @@ char* SrsRtpPacket2::wrap(int size)
srs_freep(cache_buffer_);
cache_buffer_ = new SrsBuffer(buf, size);
++_srs_pps_objs_rbuf->sugar;
return buf;
}