mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 02:38:10 +08:00
添加对象统计接口
This commit is contained in:
@@ -14,6 +14,11 @@
|
||||
#include "Network/sockutil.h"
|
||||
#include "Network/TcpSession.h"
|
||||
using namespace toolkit;
|
||||
|
||||
namespace toolkit {
|
||||
StatisticImp(mediakit::MediaSource);
|
||||
}
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
recursive_mutex s_media_source_mtx;
|
||||
|
||||
@@ -296,6 +296,8 @@ private:
|
||||
string _app;
|
||||
string _stream_id;
|
||||
std::weak_ptr<MediaSourceEvent> _listener;
|
||||
//对象个数统计
|
||||
ObjectStatistic<MediaSource> _statistic;
|
||||
};
|
||||
|
||||
///缓存刷新策略类
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
#include <math.h>
|
||||
#include "Common/config.h"
|
||||
#include "MultiMediaSourceMuxer.h"
|
||||
|
||||
namespace toolkit {
|
||||
StatisticImp(mediakit::MultiMediaSourceMuxer);
|
||||
}
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
///////////////////////////////MultiMuxerPrivate//////////////////////////////////
|
||||
|
||||
@@ -192,6 +192,8 @@ private:
|
||||
mutex _rtp_sender_mtx;
|
||||
unordered_map<string, RtpSender::Ptr> _rtp_sender;
|
||||
#endif //ENABLE_RTPPROXY
|
||||
//对象个数统计
|
||||
ObjectStatistic<MultiMediaSourceMuxer> _statistic;
|
||||
};
|
||||
|
||||
}//namespace mediakit
|
||||
|
||||
Reference in New Issue
Block a user