mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-28 21:52:22 +08:00
添加对象统计接口
This commit is contained in:
@@ -122,6 +122,10 @@ public:
|
||||
* 返回可缓存的frame
|
||||
*/
|
||||
static Ptr getCacheAbleFrame(const Ptr &frame);
|
||||
|
||||
private:
|
||||
//对象个数统计
|
||||
ObjectStatistic<Frame> _statistic;
|
||||
};
|
||||
|
||||
class FrameImp : public Frame {
|
||||
@@ -166,6 +170,8 @@ public:
|
||||
uint32_t _pts = 0;
|
||||
size_t _prefix_size = 0;
|
||||
BufferLikeString _buffer;
|
||||
//对象个数统计
|
||||
ObjectStatistic<FrameImp> _statistic;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user