コード例 #1
0
 /**
  * Get the Variance of all the stats that are watched, for all the stats added with add() since
  * the creation of this <tt>HammerSummaryStats</tt>
  *
  * @return The Variance of all the stats JSON.
  */
 public String getAggregateVarianceJSON() {
   String str =
       String.format(
           FakeUserStats.jsonMediaStreamStatsTemplate,
           -1, // ssrc not needed here
           aggregateDownloadJitterMs.getVariance(),
           aggregateDownloadPercentLoss.getVariance(),
           aggregateDownloadRateKiloBitPerSec.getVariance(),
           aggregateJitterBufferDelayMs.getVariance(),
           aggregateJitterBufferDelayPackets.getVariance(),
           aggregateNbDiscarded.getVariance(),
           aggregateNbDiscardedFull.getVariance(),
           aggregateNbDiscardedLate.getVariance(),
           aggregateNbDiscardedReset.getVariance(),
           aggregateNbDiscardedShrink.getVariance(),
           aggregateNbFec.getVariance(),
           aggregateNbPackets.getVariance(),
           aggregateNbPacketsLost.getVariance(),
           aggregateNbReceivedBytes.getVariance(),
           aggregateNbSentBytes.getVariance(),
           aggregatePacketQueueCountPackets.getVariance(),
           aggregatePacketQueueSize.getVariance(),
           aggregatePercentDiscarded.getVariance(),
           aggregateRttMs.getVariance(),
           aggregateUploadJitterMs.getVariance(),
           aggregateUploadPercentLoss.getVariance(),
           aggregateUploadRateKiloBitPerSec.getVariance());
   return str;
 }
コード例 #2
0
 /**
  * Create new <tt>SummaryStatistics</tt> from the <tt>AggregateSummaryStatistics</tt> for all
  * the stream's stats that are watched.
  */
 public void clear() {
   downloadJitterMs = aggregateDownloadJitterMs.createContributingStatistics();
   downloadPercentLoss = aggregateDownloadPercentLoss.createContributingStatistics();
   downloadRateKiloBitPerSec = aggregateDownloadRateKiloBitPerSec.createContributingStatistics();
   jitterBufferDelayMs = aggregateJitterBufferDelayMs.createContributingStatistics();
   jitterBufferDelayPackets = aggregateJitterBufferDelayPackets.createContributingStatistics();
   nbDiscarded = aggregateNbDiscarded.createContributingStatistics();
   nbDiscardedFull = aggregateNbDiscardedFull.createContributingStatistics();
   nbDiscardedLate = aggregateNbDiscardedLate.createContributingStatistics();
   nbDiscardedReset = aggregateNbDiscardedReset.createContributingStatistics();
   nbDiscardedShrink = aggregateNbDiscardedShrink.createContributingStatistics();
   nbFec = aggregateNbFec.createContributingStatistics();
   nbPackets = aggregateNbPackets.createContributingStatistics();
   nbPacketsLost = aggregateNbPacketsLost.createContributingStatistics();
   nbReceivedBytes = aggregateNbReceivedBytes.createContributingStatistics();
   nbSentBytes = aggregateNbSentBytes.createContributingStatistics();
   packetQueueCountPackets = aggregatePacketQueueCountPackets.createContributingStatistics();
   packetQueueSize = aggregatePacketQueueSize.createContributingStatistics();
   percentDiscarded = aggregatePercentDiscarded.createContributingStatistics();
   rttMs = aggregateRttMs.createContributingStatistics();
   uploadJitterMs = aggregateUploadJitterMs.createContributingStatistics();
   uploadPercentLoss = aggregateUploadPercentLoss.createContributingStatistics();
   uploadRateKiloBitPerSec = aggregateUploadRateKiloBitPerSec.createContributingStatistics();
 }