@ExcludedClass @NotStorableClass public final class MemInspector extends Object
Constructor and Description |
---|
MemInspector() |
Modifier and Type | Method and Description |
---|---|
void |
addDoNotInspectClass(Class<?> doNotInspectClass) |
void |
addDoNotInspectClass(Class<?>[] doNotInspectClasses) |
void |
addDoNotInspectClass(String doNotInspectClassName) |
void |
addDoNotInspectClass(String[] doNotInspectClassesName) |
boolean |
added() |
List<NodeForObject> |
addedList() |
void |
addExcludedClass(Class<?> excludedClass) |
void |
addExcludedClass(Class<?>[] excludedClasses) |
void |
addExcludedClass(String excludedClassName) |
void |
addExcludedClass(String[] excludedClassesName) |
void |
addExcludedField(Class<?> declaringClass,
String fieldName) |
void |
addExludedField(String declaringClassName,
String fieldName) |
void |
addIgnoredClass(Class<?> ignoredClass) |
void |
addIgnoredClass(Class<?>[] ignoredClasses) |
void |
addIgnoredClass(String ignoredClassName) |
void |
addIgnoredClass(String[] ignoredClassesName) |
List<Object> |
getInstanceOfClass(String className) |
void |
inspect(Object rootObject,
boolean markNew) |
void |
log(PrintStream stream) |
long |
memoryUsed(Object rootObject) |
Deque<NodeForObject> |
searchObject(Object object) |
void |
serialize(File outputFile) |
void |
setExcludedMainPackagesName(String[] excludedMainPackagesName) |
void |
setMainPackageName(String mainPackageName) |
void |
setMainPackageName(String[] mainPackagesName) |
void |
xmlEncode(File outputFile) |
void |
xstreamTree(File outputFile) |
public void setMainPackageName(String mainPackageName)
public void setMainPackageName(String[] mainPackagesName)
public void setExcludedMainPackagesName(String[] excludedMainPackagesName)
public void addDoNotInspectClass(String[] doNotInspectClassesName)
public void addDoNotInspectClass(Class<?> doNotInspectClass)
public void addDoNotInspectClass(Class<?>[] doNotInspectClasses)
public void addDoNotInspectClass(String doNotInspectClassName)
public void addExcludedClass(String excludedClassName)
public void addExcludedClass(String[] excludedClassesName)
public void addExcludedClass(Class<?> excludedClass)
public void addExcludedClass(Class<?>[] excludedClasses)
public void addIgnoredClass(String ignoredClassName)
public void addIgnoredClass(String[] ignoredClassesName)
public void addIgnoredClass(Class<?> ignoredClass)
public void addIgnoredClass(Class<?>[] ignoredClasses)
public void inspect(Object rootObject, boolean markNew) throws MemInspectorException
rootObject
- root object of object graphmarkNew
- true if mark differencies, false if record initial stateMemInspectorException
public long memoryUsed(Object rootObject) throws MemInspectorException
MemInspectorException
public boolean added()
public List<NodeForObject> addedList() throws MemInspectorException
MemInspectorException
public Deque<NodeForObject> searchObject(Object object) throws MemInspectorException
MemInspectorException
public void log(PrintStream stream) throws MemInspectorException
MemInspectorException
public void xstreamTree(File outputFile) throws MemInspectorException
MemInspectorException
public void xmlEncode(File outputFile) throws MemInspectorException
MemInspectorException
public void serialize(File outputFile) throws MemInspectorException
MemInspectorException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.