public static RTCStatMap getPCStatOvertime(WebDriver webDriver, JsonObject getStatsConfig, int batchId, String platform)
    throws KiteTestException {
    RTCStatMap result = new RTCStatMap();
    for (JsonString pc : getStatsConfig.getJsonArray("peerConnections").getValuesAs(JsonString.class)) {
      result.put(pc.toString(), getPCStatOvertime(
        webDriver,
        pc.getString(),
        getStatsConfig.getInt("statsCollectionTime"),
        getStatsConfig.getInt("statsCollectionInterval"),
        getStatsConfig.getJsonArray("selectedStats"), batchId, platform));
    }
    return result;
  }
stat JsonObjectBuilder to add to callback result.

@param webDriver              used to execute command.
@param getStatsConfig         the getStatsConfig

@return JsonObjectBuilder of the stat object
@throws KiteTestException the kite test exception
KITE-Framework/src/main/java/org/webrtc/kite/stats/StatsUtils.java