public void reset() { logMemoryConsumption(); logger.log(Level.INFO, String.format("%s EVENTS (totalCount) %d", experimentName, timestamp)); logger.log( Level.INFO, String.format("%s MATCHES (totalCount) %d", experimentName, MatchHandler.getMatchCount())); logger.log( Level.INFO, String.format( "%s MEMORY (mean/max) %f %f", experimentName, memStats.getMean(), memStats.getMax())); logger.log( Level.INFO, String.format( "%s BINDINGS (created/collected/stored) %d %d %d", experimentName, bindingStore.getCreatedBindingsCount(), bindingStore.getCollectedBindingsCount(), bindingStore.size())); logger.log( Level.INFO, String.format("%s NODES (created) %d", experimentName, nodeManager.getCreatedCount())); logger.log( Level.INFO, String.format( "%s MONITORS (createdAlive/updated/orphaned/collected/createdDead) %d %d %d %d %d", experimentName, AbstractMonitor.getCreatedMonitorsCount(), AbstractMonitor.getUpdateddMonitorsCount(), nodeManager.getOrphanedMonitorsCount(), nodeManager.getCollectedMonitorsCount(), DeadMonitor.getCreatedMonitorsCount())); memStats.clear(); }
/** * Get the Max of all the stats that are watched, for all the stats added with add() since the * last call to clear() in JSON. * * @return The Max of all the stats since last clear() in JSON. */ public String getMaxJSON() { String str = String.format( FakeUserStats.jsonMediaStreamStatsTemplate, -1, // ssrc not needed here downloadJitterMs.getMax(), downloadPercentLoss.getMax(), downloadRateKiloBitPerSec.getMax(), jitterBufferDelayMs.getMax(), jitterBufferDelayPackets.getMax(), nbDiscarded.getMax(), nbDiscardedFull.getMax(), nbDiscardedLate.getMax(), nbDiscardedReset.getMax(), nbDiscardedShrink.getMax(), nbFec.getMax(), nbPackets.getMax(), nbPacketsLost.getMax(), nbReceivedBytes.getMax(), nbSentBytes.getMax(), packetQueueCountPackets.getMax(), packetQueueSize.getMax(), percentDiscarded.getMax(), rttMs.getMax(), uploadJitterMs.getMax(), uploadPercentLoss.getMax(), uploadRateKiloBitPerSec.getMax()); return str; }