public static class PerfStatsTracking.MemoryPerfStatsEvent extends PerfStatsTracking.PerfStatsEvent
BUILD_FINISHED, BUILD_REPORT, BUILD_STARTED, BUILD_STATUS_EVENT, CACHE_RATE_STATS_UPDATE_EVENT, INDIVIDUAL_TEST_AWAITING_RESULTS, INSTALL_STARTED, PARSE_FINISHED, PARSE_STARTED, PROJECT_GENERATION_FINISHED, PROJECT_GENERATION_STARTED, TEST_RUN_STARTED| Constructor and Description |
|---|
MemoryPerfStatsEvent(long freeMemoryBytes,
long totalMemoryBytes,
long maxMemoryBytes,
long timeSpentInGcMs,
Map<String,Long> currentMemoryBytesUsageByPool)
Construct a new memory performance tracking object
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Long> |
getCurrentMemoryBytesUsageByPool() |
long |
getFreeMemoryBytes() |
long |
getMaxMemoryBytes() |
long |
getTimeSpentInGcMs() |
long |
getTotalMemoryBytes() |
getEventName, getValueStringconfigure, equals, getBuildId, getEventKey, getNanoTime, getThreadId, getThreadUserNanoTime, getTimestampMillis, hashCode, isConfigured, isRelatedTo, toLogMessage, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitstoreLastInstanceAndReplayForNewClientspublic MemoryPerfStatsEvent(long freeMemoryBytes,
long totalMemoryBytes,
long maxMemoryBytes,
long timeSpentInGcMs,
Map<String,Long> currentMemoryBytesUsageByPool)
freeMemoryBytes - Memory in bytes available for JVM to use for new allocationstotalMemoryBytes - Memory in bytes that JVM allocated at the moment, both used and
unusedmaxMemoryBytes - Maximum amount of memory in bytes that JVM can allocate (-Xmx
parameter)timeSpentInGcMs - Total amount of milliseconds spent doing garbage collection till nowcurrentMemoryBytesUsageByPool - A map of JVM memory pool name to the amount of memory
used by that poolpublic long getFreeMemoryBytes()
public long getTotalMemoryBytes()
public long getMaxMemoryBytes()
public long getTimeSpentInGcMs()