public class MemorySpy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MemorySpy.MemScope |
| Constructor and Description |
|---|
MemorySpy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCurrentMem()
get the currently used memory
|
long |
getHeapUsed(MemorySpy.MemScope scope) |
long |
getMemFromPool(String name,
MemorySpy.MemScope scope) |
long |
getNonHeapUsed(MemorySpy.MemScope scope) |
long |
getPermGen(MemorySpy.MemScope scope) |
Map<String,Long> |
getSizeMap() |
String |
getSummary()
get a fast summary for debugging
|
Map<String,Long> |
getSummaryMap()
get a fast summary for debugging
|
String |
toString() |
public long getHeapUsed(MemorySpy.MemScope scope)
scope - public long getNonHeapUsed(MemorySpy.MemScope scope)
scope - public long getPermGen(MemorySpy.MemScope scope)
scope - public long getMemFromPool(String name, MemorySpy.MemScope scope)
name - scope - public String getSummary()
public long getCurrentMem()
public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.