AgoraChannelStats
通话相关的统计信息。
__attribute__((visibility("default"))) @interface AgoraChannelStats : NSObject @property(assign, nonatomic) NSUInteger duration; @property(assign, nonatomic) NSUInteger txBytes; @property(assign, nonatomic) NSUInteger rxBytes; @property(assign, nonatomic) NSUInteger txAudioKBitrate; @property(assign, nonatomic) NSUInteger rxAudioKBitrate; @property(assign, nonatomic) NSUInteger txVideoKBitrate; @property(assign, nonatomic) NSUInteger rxVideoKBitrate; @property(assign, nonatomic) NSUInteger txAudioBytes; @property(assign, nonatomic) NSUInteger txVideoBytes; @property(assign, nonatomic) NSUInteger rxAudioBytes; @property(assign, nonatomic) NSUInteger rxVideoBytes; @property(assign, nonatomic) NSUInteger lastmileDelay; @property(assign, nonatomic) NSUInteger userCount; @property(assign, nonatomic) double cpuAppUsage; @property(assign, nonatomic) double cpuTotalUsage; @property(assign, nonatomic) NSInteger gatewayRtt; @property(assign, nonatomic) double memoryAppUsageRatio; @property(assign, nonatomic) double memoryTotalUsageRatio; @property(assign, nonatomic) NSInteger memoryAppUsageInKbytes; @property(assign, nonatomic) NSInteger connectTimeMs; @property(assign, nonatomic) NSUInteger txKBitRate; @property(assign, nonatomic) NSUInteger rxKBitRate; @property(assign, nonatomic) NSInteger txPacketLossRate; @property(assign, nonatomic) NSInteger rxPacketLossRate; @end
属性
- duration
- 本地用户通话时长(秒),累计值。
- txBytes
- 发送字节数(bytes)。
- rxBytes
- 接收字节数(bytes)。
- txAudioBytes
- 发送音频字节数(bytes),累计值。
- txVideoBytes
- 发送视频字节数(bytes),累计值。
- rxAudioBytes
- 接收音频字节数(bytes),累计值。
- rxVideoBytes
- 接收视频字节数(bytes),累计值。
- txKBitRate
- 发送码率(Kbps)。
- rxKBitRate
- 接收码率(Kbps)。
- rxAudioKBitRate
- 音频接收码率 (Kbps)。
- txAudioKBitRate
- 音频包的发送码率 (Kbps)。
- rxVideoKBitRate
- 视频接收码率 (Kbps)。
- txVideoKBitRate
- 视频发送码率 (Kbps)。
- lastmileDelay
- 客户端-接入服务器延时 (毫秒)。
- txPacketLossRate
- 使用抗丢包技术前,客户端上行发送到服务器丢包率 (%)。
- rxPacketLossRate
- 使用抗丢包技术前,服务器下行发送到客户端丢包率 (%)。
- userCount
- 当前频道内的用户人数。
- cpuAppUsage
- 当前 App 的 CPU 使用率 (%)。
注意:
- didLeaveChannelWithStats 回调中报告的 cpuAppUsage 恒为 0。
- cpuTotalUsage
-
当前系统的 CPU 使用率 (%)。
注意:- didLeaveChannelWithStats 回调中报告的 cpuTotalUsage 恒为 0。
- connectTimeMs
- 从开始建立连接到成功连接的时间(毫秒)。如报告 0,则表示无效。
- gatewayRtt
- 客户端到本地路由器的往返时延 (ms)。
- memoryAppUsageRatio
-
当前 App 的内存占比 (%)。
注意: 该值仅作参考。受系统限制可能无法获取。 - memoryTotalUsageRatio
-
当前系统的内存占比 (%)。
注意: 该值仅作参考。受系统限制可能无法获取。 - memoryAppUsageInKbytes
-
当前 App 的内存大小 (KB)。
注意: 该值仅作参考。受系统限制可能无法获取。