RtcStats
- Unreal C++
更新时间不可用
通话相关的统计信息。
struct RtcStats {
unsigned int duration;
unsigned int txBytes;
unsigned int rxBytes;
unsigned int txAudioBytes;
unsigned int txVideoBytes;
unsigned int rxAudioBytes;
unsigned int rxVideoBytes;
unsigned short txKBitRate;
unsigned short rxKBitRate;
unsigned short rxAudioKBitRate;
unsigned short txAudioKBitRate;
unsigned short rxVideoKBitRate;
unsigned short txVideoKBitRate;
unsigned short lastmileDelay;
unsigned int userCount;
double cpuAppUsage;
double cpuTotalUsage;
int gatewayRtt;
double memoryAppUsageRatio;
double memoryTotalUsageRatio;
int memoryAppUsageInKbytes;
int connectTimeMs;
int txPacketLossRate;
int rxPacketLossRate;
RtcStats() :
duration(0),
txBytes(0),
rxBytes(0),
txAudioBytes(0),
txVideoBytes(0),
rxAudioBytes(0),
rxVideoBytes(0),
txKBitRate(0),
rxKBitRate(0),
rxAudioKBitRate(0),
txAudioKBitRate(0),
rxVideoKBitRate(0),
txVideoKBitRate(0),
lastmileDelay(0),
userCount(0),
cpuAppUsage(0.0),
cpuTotalUsage(0.0),
gatewayRtt(0),
memoryAppUsageRatio(0.0),
memoryTotalUsageRatio(0.0),
memoryAppUsageInKbytes(0),
connectTimeMs(0),
txPacketLossRate(0),
rxPacketLossRate(0) {}
};属性
| 参数名 | 描述 |
|---|---|
duration | |
txBytes | |
rxBytes | |
txAudioBytes | |
txVideoBytes | |
rxAudioBytes | |
rxVideoBytes | |
txKBitRate | |
rxKBitRate | |
rxAudioKBitRate | |
txAudioKBitRate | |
rxVideoKBitRate | |
txVideoKBitRate | |
lastmileDelay | |
txPacketLossRate | |
rxPacketLossRate | |
userCount | |
cpuAppUsage | 当前 App 的 CPU 使用率 (%)。 注意:
|
cpuTotalUsage | 当前系统的 CPU 使用率 (%)。 对于 Windows 平台,在多核环境中,该成员指多核 CPU 的平均使用率。 计算方式为 (100 - 任务管理中显示的系统空闲进程 CPU)/100。 注意:
|
connectTimeMs | |
gatewayRtt | |
memoryAppUsageRatio | |
memoryTotalUsageRatio | |
memoryAppUsageInKbytes |