RtcStats

Statistics of a call session.

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;
}

Attributes

totalDuration
Call duration of the local user in seconds, represented by an aggregate value.
txBytes
The number of bytes sent.
rxBytes
The number of bytes received.
txAudioBytes
The total number of audio bytes sent, represented by an aggregate value.
txVideoBytes
The total number of video bytes sent, represented by an aggregate value.
rxAudioBytes
The total number of audio bytes received, represented by an aggregate value.
rxVideoBytes
The total number of video bytes received, represented by an aggregate value.
txKBitRate
The actual bitrate (Kbps) while sending the local video stream.
rxKBitRate
The receiving bitrate (Kbps).
rxAudioKBitRate
The bitrate (Kbps) of receiving the audio.
txAudioKBitRate
The bitrate (Kbps) of sending the audio packet.
rxVideoKBitRate
The bitrate (Kbps) of receiving the video.
txVideoKBitRate
The bitrate (Kbps) of sending the video.
lastmileDelay
The client-to-server delay (milliseconds).
txPacketLossRate
The packet loss rate (%) from the client to the Agora server before applying the anti-packet-loss algorithm.
rxPacketLossRate
The packet loss rate (%) from the Agora server to the client before using the anti-packet-loss method.
users
The number of users in the channel.
cpuAppUsage
Application CPU usage (%).
Attention:
  • The value of cpuAppUsage is always reported as 0 in the onLeaveChannel callback.
  • As of Android 8.1, you cannot get the CPU usage from this attribute due to system limitations.
cpuTotalUsage

The system CPU usage (%).

Attention:
  • The value of cpuTotalUsage is always reported as 0 in the onLeaveChannel callback.
  • As of Android 8.1, you cannot get the CPU usage from this attribute due to system limitations.
connectTimeMs
The duration (ms) between the SDK starts connecting and the connection is established. If the value reported is 0, it means invalid.
gatewayRtt
The round-trip time delay (ms) from the client to the local router.
Note: On Android, to get gatewayRtt, ensure that you add the android.permission.ACCESS_WIFI_STATE permission after </application> in the AndroidManifest.xml file in your project.
memoryAppUsageRatio

The memory ratio occupied by the app (%).

Attention: This value is for reference only. Due to system limitations, you may not get this value.
memoryTotalUsageRatio

The memory occupied by the system (%).

Attention: This value is for reference only. Due to system limitations, you may not get this value.
memoryAppUsageInKbytes

The memory size occupied by the app (KB).

Attention: This value is for reference only. Due to system limitations, you may not get this value.