Constructor
new TRTCStatistics(upLoss, downLoss, appCpu, systemCpu, rtt, receivedBytes, sentBytes, localStatisticsArray, localStatisticsArraySize, remoteStatisticsArray, remoteStatisticsArraySize, gatewayRtt, systemMemoryInMB, systemMemoryUsageInMB, appMemoryUsageInMB)
Parameters:
| Name | Type | Description | 
|---|---|---|
upLoss | 
                  Number | 
                    required
                    upstream packet loss rate (%) from the SDK to cloud.
                      The smaller the value, the better. If   | 
                
downLoss | 
                  Number | 
                    required
                    downstream packet loss rate (%) from cloud to the SDK.
                      The smaller the value, the better. If   | 
                
appCpu | 
                  Number | 
                    required
                    CPU utilization (%) of the current application  | 
                
systemCpu | 
                  Number | 
                    required
                    CPU utilization (%) of the current system  | 
                
rtt | 
                  Number | 
                    required
                    round-trip delay (ms) from the SDK to cloud.  | 
                
receivedBytes | 
                  Number | 
                    required
                    total number of received bytes (including signaling data and audio/video data)  | 
                
sentBytes | 
                  Number | 
                    required
                    total number of sent bytes (including signaling data and audio/video data)  | 
                
localStatisticsArray | 
                  Array.<TRTCLocalStatistics> | 
                    required
                    local audio/video statistics. As there may be three local audio/video streams (i.e., HD big image, smooth small image, and substream image), the local audio/video statistics are an array.  | 
                
localStatisticsArraySize | 
                  Number | 
                    required
                    
  | 
                
remoteStatisticsArray | 
                  Array.<TRTCRemoteStatistics> | 
                    required
                    remote audio/video statistics. As there may be multiple concurrent remote users, and each of them may have multiple concurrent audio/video streams (i.e., HD big image, smooth small image, and substream image), the remote audio/video statistics are an array.  | 
                
remoteStatisticsArraySize | 
                  Number | 
                    required
                    
  | 
                
gatewayRtt | 
                  Number | 
                    required
                    round-trip delay (ms) from the SDK to client gatewaty, unit: ms.  | 
                
systemMemoryInMB | 
                  Number | 
                    required
                    System memory size, unit: MB.  | 
                
systemMemoryUsageInMB | 
                  Number | 
                    required
                    System memory size in usage, unit: MB.  | 
                
appMemoryUsageInMB | 
                  Number | 
                    required
                    Application memory size, unit: MB.  |