Public 属性 | |
int | totalDuration |
int | txBytes |
int | rxBytes |
int | txAudioBytes |
int | txVideoBytes |
int | rxAudioBytes |
int | rxVideoBytes |
int | txKBitRate |
int | rxKBitRate |
int | txAudioKBitRate |
int | rxAudioKBitRate |
int | txVideoKBitRate |
int | rxVideoKBitRate |
int | users |
int | lastmileDelay |
int | txPacketLossRate |
int | rxPacketLossRate |
double | cpuTotalUsage |
double | cpuAppUsage |
int | gatewayRtt |
double | memoryAppUsageRatio |
double | memoryTotalUsageRatio |
int | memoryAppUsageInKbytes |
通话相关的统计信息。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.totalDuration |
本地用户的通话时长,单位为秒,累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txBytes |
发送字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxBytes |
接收字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txAudioBytes |
发送音频字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txVideoBytes |
发送视频字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxAudioBytes |
接收音频字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxVideoBytes |
接收视频字节数(bytes),累计值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txKBitRate |
发送码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxKBitRate |
接收码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txAudioKBitRate |
音频包的发送码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxAudioKBitRate |
音频接收码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txVideoKBitRate |
视频发送码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxVideoKBitRate |
视频接收码率(Kbps),瞬时值。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.users |
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.lastmileDelay |
客户端到服务器的延迟(毫秒)。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.txPacketLossRate |
网络对抗前,本地客户端到边缘服务器的丢包率 (%)。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.rxPacketLossRate |
网络对抗前,边缘服务器到本地客户端的丢包率 (%)。
double io.agora.rtc.IRtcEngineEventHandler.RtcStats.cpuTotalUsage |
当前系统的 CPU 使用率 (%)。
onLeaveChannel
回调中报告的 cpuTotalUsage
恒为 0。double io.agora.rtc.IRtcEngineEventHandler.RtcStats.cpuAppUsage |
当前 App 的 CPU 使用率 (%)。
onLeaveChannel
回调中报告的 cpuAppUsage
恒为 0。int io.agora.rtc.IRtcEngineEventHandler.RtcStats.gatewayRtt |
客户端到本地路由器的往返时延 (ms)。
如需获取 gatewayRtt
,请确保已在项目 AndroidManifest.xml
文件的 </application>
后面 添加 android.permission.ACCESS_WIFI_STATE
权限。
double io.agora.rtc.IRtcEngineEventHandler.RtcStats.memoryAppUsageRatio |
当前 App 的内存占比 (%)。
double io.agora.rtc.IRtcEngineEventHandler.RtcStats.memoryTotalUsageRatio |
当前系统的内存占比 (%)。
int io.agora.rtc.IRtcEngineEventHandler.RtcStats.memoryAppUsageInKbytes |
当前 App 的内存大小 (KB)。