# RtcStats (/zh-CN/api-reference/rtc/android/class-rtcstats)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```java
public static class RtcStats {
public int totalDuration;
public int txBytes;
public int rxBytes;
public int txKBitRate;
public int txAudioBytes;
public int rxAudioBytes;
public int txVideoBytes;
public int rxVideoBytes;
public int rxKBitRate;
public int txAudioKBitRate;
public int rxAudioKBitRate;
public int txVideoKBitRate;
public int rxVideoKBitRate;
public int lastmileDelay;
public double cpuTotalUsage;
public int gatewayRtt;
public double cpuAppUsage;
public int users;
public int connectTimeMs;
public int txPacketLossRate;
public int rxPacketLossRate;
public double memoryAppUsageRatio;
public double memoryTotalUsageRatio;
public int memoryAppUsageInKbytes;
public int lanAccelerateState;
}
```
## 属性 [#属性]
本地用户的通话时长(秒),以累计值表示。
已发送的字节数。
已接收的字节数。
发送本地视频流的实际码率(Kbps)。
发送的音频字节总数,以累计值表示。
接收的音频字节总数,以累计值表示。
发送的视频字节总数,以累计值表示。
接收的视频字节总数,以累计值表示。
接收码率(Kbps)。
音频发送码率(Kbps)。
音频接收码率(Kbps)。
视频发送码率(Kbps)。
视频接收码率(Kbps)。
客户端到服务器的延迟(毫秒)。
系统 CPU 使用率(%)。
:::note
注:
- 在 [onLeaveChannel](/zh-CN/api-reference/rtc/android/channel#callback_irtcengineeventhandler_onleavechannel) 回调中,该值始终为 0。
- 从 Android 8.1 开始,受系统限制无法获取该值。
:::
客户端到本地路由器的往返时延(毫秒)。
:::note
注: 在 Android 上,如需获取该值,请确保在项目的 `AndroidManifest.xml` 文件中,在 `` 后添加权限 `android.permission.ACCESS_WIFI_STATE`。
:::
应用的 CPU 使用率(%)。
:::note
注:
- 在 [onLeaveChannel](/zh-CN/api-reference/rtc/android/channel#callback_irtcengineeventhandler_onleavechannel) 回调中,该值始终为 0。
- 从 Android 8.1 开始,受系统限制无法获取该值。
:::
频道中的用户人数。
SDK 开始连接到连接建立之间的时长(毫秒)。若值为 0,表示无效。
客户端发送到声网服务器的丢包率(%),为应用抗丢包机制前的值。
声网服务器发送到客户端前,未使用抗丢包机制时的丢包率(%)。
应用占用的内存比例(%)。
:::note
注: 该值仅供参考,因系统限制可能无法获取。
:::
系统占用的内存比例(%)。
:::note
注: 该值仅供参考,因系统限制可能无法获取。
:::
应用占用的内存大小(KB)。
:::note
注: 该值仅供参考,因系统限制可能无法获取。
:::