org.cip4.jdflib.util
Class MemorySpy

java.lang.Object
  extended by org.cip4.jdflib.util.MemorySpy

public class MemorySpy
extends Object

Author:
Rainer Prosi, Heidelberger Druckmaschinen *

Nested Class Summary
static class MemorySpy.MemScope
           
 
Constructor Summary
MemorySpy()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemorySpy

public MemorySpy()
Method Detail

getSizeMap

public Map<String,Long> getSizeMap()
Returns:

getHeapUsed

public long getHeapUsed(MemorySpy.MemScope scope)
Parameters:
scope -
Returns:

getNonHeapUsed

public long getNonHeapUsed(MemorySpy.MemScope scope)
Parameters:
scope -
Returns:

getPermGen

public long getPermGen(MemorySpy.MemScope scope)
Parameters:
scope -
Returns:

getMemFromPool

public long getMemFromPool(String name,
                           MemorySpy.MemScope scope)
Parameters:
name -
scope -
Returns:

getSummary

public String getSummary()
get a fast summary for debugging

Returns:

getSummaryMap

public Map<String,Long> getSummaryMap()
get a fast summary for debugging

Returns:

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()


Copyright © 2013. All Rights Reserved.