diff --git a/dist/javadoc/allclasses-frame.html b/dist/javadoc/allclasses-frame.html new file mode 100644 index 0000000..0cda464 --- /dev/null +++ b/dist/javadoc/allclasses-frame.html @@ -0,0 +1,48 @@ + + + + + + + +All Classes (MemoryMeasurer) + + + + + + + + + + + +All Classes +
+ + + + + +
Chain +
+InstrumentationGrabber +
+MemoryMeasurer +
+ObjectExplorer +
+ObjectExplorer.Feature +
+ObjectGraphMeasurer +
+ObjectGraphMeasurer.Footprint +
+ObjectVisitor +
+ObjectVisitor.Traversal +
+
+ + + diff --git a/dist/javadoc/allclasses-noframe.html b/dist/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..268e1e7 --- /dev/null +++ b/dist/javadoc/allclasses-noframe.html @@ -0,0 +1,48 @@ + + + + + + + +All Classes (MemoryMeasurer) + + + + + + + + + + + +All Classes +
+ + + + + +
Chain +
+InstrumentationGrabber +
+MemoryMeasurer +
+ObjectExplorer +
+ObjectExplorer.Feature +
+ObjectGraphMeasurer +
+ObjectGraphMeasurer.Footprint +
+ObjectVisitor +
+ObjectVisitor.Traversal +
+
+ + + diff --git a/dist/javadoc/constant-values.html b/dist/javadoc/constant-values.html new file mode 100644 index 0000000..b02b522 --- /dev/null +++ b/dist/javadoc/constant-values.html @@ -0,0 +1,145 @@ + + + + + + + +Constant Field Values (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/deprecated-list.html b/dist/javadoc/deprecated-list.html new file mode 100644 index 0000000..285392e --- /dev/null +++ b/dist/javadoc/deprecated-list.html @@ -0,0 +1,145 @@ + + + + + + + +Deprecated List (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/help-doc.html b/dist/javadoc/help-doc.html new file mode 100644 index 0000000..08eea5f --- /dev/null +++ b/dist/javadoc/help-doc.html @@ -0,0 +1,216 @@ + + + + + + + +API Help (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/index-files/index-1.html b/dist/javadoc/index-files/index-1.html new file mode 100644 index 0000000..244cea3 --- /dev/null +++ b/dist/javadoc/index-files/index-1.html @@ -0,0 +1,142 @@ + + + + + + + +C-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+C

+
+
Chain - Class in objectexplorer
A chain of references, which starts at a root object and leads to a particular value + (either an object or a primitive).
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-10.html b/dist/javadoc/index-files/index-10.html new file mode 100644 index 0000000..1b75261 --- /dev/null +++ b/dist/javadoc/index-files/index-10.html @@ -0,0 +1,147 @@ + + + + + + + +T-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+T

+
+
toString() - +Method in class objectexplorer.Chain +
  +
toString() - +Method in class objectexplorer.ObjectGraphMeasurer.Footprint +
  +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-11.html b/dist/javadoc/index-files/index-11.html new file mode 100644 index 0000000..c7828b8 --- /dev/null +++ b/dist/javadoc/index-files/index-11.html @@ -0,0 +1,160 @@ + + + + + + + +V-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+V

+
+
valueOf(String) - +Static method in enum objectexplorer.ObjectExplorer.Feature +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum objectexplorer.ObjectVisitor.Traversal +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum objectexplorer.ObjectExplorer.Feature +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum objectexplorer.ObjectVisitor.Traversal +
Returns an array containing the constants of this enum type, in +the order they are declared. +
visit(Chain) - +Method in interface objectexplorer.ObjectVisitor +
Visits an explored value (the whole chain from the root object + leading to the value is provided), and decides whether to continue + the exploration of that value. +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-2.html b/dist/javadoc/index-files/index-2.html new file mode 100644 index 0000000..586233c --- /dev/null +++ b/dist/javadoc/index-files/index-2.html @@ -0,0 +1,151 @@ + + + + + + + +E-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+E

+
+
exploreObject(Object, ObjectVisitor<T>) - +Static method in class objectexplorer.ObjectExplorer +
Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value. +
exploreObject(Object, ObjectVisitor<T>, EnumSet<ObjectExplorer.Feature>) - +Static method in class objectexplorer.ObjectExplorer +
Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value. +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-3.html b/dist/javadoc/index-files/index-3.html new file mode 100644 index 0000000..56e675e --- /dev/null +++ b/dist/javadoc/index-files/index-3.html @@ -0,0 +1,164 @@ + + + + + + + +G-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+G

+
+
getObjects() - +Method in class objectexplorer.ObjectGraphMeasurer.Footprint +
Returns the number of objects of this footprint. +
getParent() - +Method in class objectexplorer.Chain +
Returns the parent chain, from which this chain was created. +
getPrimitives() - +Method in class objectexplorer.ObjectGraphMeasurer.Footprint +
Returns the number of primitives of this footprint + (represented by the respective primitive classes, + e.g. int.class etc). +
getReferences() - +Method in class objectexplorer.ObjectGraphMeasurer.Footprint +
Returns the number of references of this footprint. +
getRoot() - +Method in class objectexplorer.Chain +
Returns the root object of this chain. +
getValue() - +Method in class objectexplorer.Chain +
Returns the value that this chain leads to. +
getValueType() - +Method in class objectexplorer.Chain +
  +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-4.html b/dist/javadoc/index-files/index-4.html new file mode 100644 index 0000000..08c347c --- /dev/null +++ b/dist/javadoc/index-files/index-4.html @@ -0,0 +1,144 @@ + + + + + + + +H-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+H

+
+
hasParent() - +Method in class objectexplorer.Chain +
Returns whether this chain has a parent. +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-5.html b/dist/javadoc/index-files/index-5.html new file mode 100644 index 0000000..d00b903 --- /dev/null +++ b/dist/javadoc/index-files/index-5.html @@ -0,0 +1,155 @@ + + + + + + + +I-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+I

+
+
InstrumentationGrabber - Class in objectexplorer
Agent call-back that stores the Instrumentation provided by the JVM.
InstrumentationGrabber() - +Constructor for class objectexplorer.InstrumentationGrabber +
  +
isPrimitive() - +Method in class objectexplorer.Chain +
Returns whether the value of this chain represents a primitive. +
isThroughArrayIndex() - +Method in class objectexplorer.Chain +
Returns whether the connection of the parent chain and this chain is + through an array index, i.e. +
isThroughField() - +Method in class objectexplorer.Chain +
Returns whether the connection of the parent chain and this chain is + through a field (of the getParent().getValue().getClass() class). +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-6.html b/dist/javadoc/index-files/index-6.html new file mode 100644 index 0000000..ce432a7 --- /dev/null +++ b/dist/javadoc/index-files/index-6.html @@ -0,0 +1,156 @@ + + + + + + + +M-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+M

+
+
measure(Object) - +Static method in class objectexplorer.ObjectGraphMeasurer +
Measures the footprint of the specified object graph. +
measure(Object, Predicate<Object>) - +Static method in class objectexplorer.ObjectGraphMeasurer +
Measures the footprint of the specified object graph. +
measureBytes(Object) - +Static method in class objectexplorer.MemoryMeasurer +
Measures the memory footprint, in bytes, of an object graph. +
measureBytes(Object, Predicate<Object>) - +Static method in class objectexplorer.MemoryMeasurer +
Measures the memory footprint, in bytes, of an object graph. +
MemoryMeasurer - Class in objectexplorer
A utility that can be used to measure the memory footprint of an arbitrary object graph.
MemoryMeasurer() - +Constructor for class objectexplorer.MemoryMeasurer +
  +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-7.html b/dist/javadoc/index-files/index-7.html new file mode 100644 index 0000000..233443d --- /dev/null +++ b/dist/javadoc/index-files/index-7.html @@ -0,0 +1,151 @@ + + + + + + + +O-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+O

+
+
objectexplorer - package objectexplorer
 
ObjectExplorer - Class in objectexplorer
A depth-first object graph explorer.
ObjectExplorer.Feature - Enum in objectexplorer
Enumeration of features that may be optionally requested for an object traversal.
ObjectGraphMeasurer - Class in objectexplorer
A tool that can qualitatively measure the footprint + (e.g., number of objects, references, + primitives) of a graph structure.
ObjectGraphMeasurer() - +Constructor for class objectexplorer.ObjectGraphMeasurer +
  +
ObjectGraphMeasurer.Footprint - Class in objectexplorer
The footprint of an object graph.
ObjectGraphMeasurer.Footprint(int, int, Multiset<Class<?>>) - +Constructor for class objectexplorer.ObjectGraphMeasurer.Footprint +
Constructs a Footprint, by specifying the number of objects, references, + and primitives (represented as a Multiset). +
ObjectVisitor<T> - Interface in objectexplorer
A visitor that controls an object traversal.
ObjectVisitor.Traversal - Enum in objectexplorer
Constants that denote how the traversal of a given object (chain) + should continue.
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-8.html b/dist/javadoc/index-files/index-8.html new file mode 100644 index 0000000..16a1eb8 --- /dev/null +++ b/dist/javadoc/index-files/index-8.html @@ -0,0 +1,144 @@ + + + + + + + +P-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+P

+
+
premain(String, Instrumentation) - +Static method in class objectexplorer.InstrumentationGrabber +
  +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index-files/index-9.html b/dist/javadoc/index-files/index-9.html new file mode 100644 index 0000000..86249c1 --- /dev/null +++ b/dist/javadoc/index-files/index-9.html @@ -0,0 +1,145 @@ + + + + + + + +R-Index (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+

+R

+
+
result() - +Method in interface objectexplorer.ObjectVisitor +
Returns an arbitrary value (presumably constructed during the object + graph traversal). +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +C E G H I M O P R T V
+ + + diff --git a/dist/javadoc/index.html b/dist/javadoc/index.html new file mode 100644 index 0000000..052476d --- /dev/null +++ b/dist/javadoc/index.html @@ -0,0 +1,37 @@ + + + + + + + +MemoryMeasurer + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="objectexplorer/package-summary.html">Non-frame version.</A> + + + diff --git a/dist/javadoc/objectexplorer/Chain.html b/dist/javadoc/objectexplorer/Chain.html new file mode 100644 index 0000000..2c8335f --- /dev/null +++ b/dist/javadoc/objectexplorer/Chain.html @@ -0,0 +1,405 @@ + + + + + + + +Chain (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class Chain

+
+java.lang.Object
+  extended by objectexplorer.Chain
+
+
+
+
public abstract class Chain
extends Object
+ + +

+A chain of references, which starts at a root object and leads to a particular value + (either an object or a primitive). +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ChaingetParent() + +
+          Returns the parent chain, from which this chain was created.
+ ObjectgetRoot() + +
+          Returns the root object of this chain.
+ ObjectgetValue() + +
+          Returns the value that this chain leads to.
+abstract  Class<?>getValueType() + +
+           
+ booleanhasParent() + +
+          Returns whether this chain has a parent.
+ booleanisPrimitive() + +
+          Returns whether the value of this chain represents a primitive.
+ booleanisThroughArrayIndex() + +
+          Returns whether the connection of the parent chain and this chain is + through an array index, i.e.
+ booleanisThroughField() + +
+          Returns whether the connection of the parent chain and this chain is + through a field (of the getParent().getValue().getClass() class).
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+hasParent

+
+public boolean hasParent()
+
+
Returns whether this chain has a parent. This returns false only when this + chain represents the root object itself. +

+

+
+
+
+
+ +

+getParent

+
+@Nonnull
+public Chain getParent()
+
+
Returns the parent chain, from which this chain was created. +

+

+ +
Throws: +
IllegalStateException - if !hasParent(), then an
+
+
+
+ +

+getValue

+
+@Nullable
+public Object getValue()
+
+
Returns the value that this chain leads to. If the value is a primitive, a wrapper + object is returned instead. +

+

+
+
+
+
+ +

+getValueType

+
+@Nonnull
+public abstract Class<?> getValueType()
+
+
+
+
+
+
+ +

+isThroughField

+
+public boolean isThroughField()
+
+
Returns whether the connection of the parent chain and this chain is + through a field (of the getParent().getValue().getClass() class). +

+

+
+
+
+
+ +

+isThroughArrayIndex

+
+public boolean isThroughArrayIndex()
+
+
Returns whether the connection of the parent chain and this chain is + through an array index, i.e. the parent leads to an array, and this chain + leads to an element of that array. +

+

+
+
+
+
+ +

+isPrimitive

+
+public boolean isPrimitive()
+
+
Returns whether the value of this chain represents a primitive. +

+

+
+
+
+
+ +

+getRoot

+
+@Nonnull
+public Object getRoot()
+
+
Returns the root object of this chain. +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/InstrumentationGrabber.html b/dist/javadoc/objectexplorer/InstrumentationGrabber.html new file mode 100644 index 0000000..2928b92 --- /dev/null +++ b/dist/javadoc/objectexplorer/InstrumentationGrabber.html @@ -0,0 +1,259 @@ + + + + + + + +InstrumentationGrabber (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class InstrumentationGrabber

+
+java.lang.Object
+  extended by objectexplorer.InstrumentationGrabber
+
+
+
+
public class InstrumentationGrabber
extends Object
+ + +

+Agent call-back that stores the Instrumentation provided by the JVM. + +

Not to be used directly. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
InstrumentationGrabber() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidpremain(String agentArgs, + Instrumentation inst) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InstrumentationGrabber

+
+public InstrumentationGrabber()
+
+
+ + + + + + + + +
+Method Detail
+ +

+premain

+
+public static void premain(String agentArgs,
+                           Instrumentation inst)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/MemoryMeasurer.html b/dist/javadoc/objectexplorer/MemoryMeasurer.html new file mode 100644 index 0000000..db37acb --- /dev/null +++ b/dist/javadoc/objectexplorer/MemoryMeasurer.html @@ -0,0 +1,303 @@ + + + + + + + +MemoryMeasurer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class MemoryMeasurer

+
+java.lang.Object
+  extended by objectexplorer.MemoryMeasurer
+
+
+
+
public class MemoryMeasurer
extends Object
+ + +

+A utility that can be used to measure the memory footprint of an arbitrary object graph. + In a nutshell, the user gives a root object, and this class recursively and + reflectively explores the object's references. + +

This class can only be used if the containing jar has been given to the + Java VM as an agent, as follows: -javaagent:path/to/object-explorer.jar +

+ +

+

+
See Also:
measureBytes(Object), +measureBytes(Object, Predicate)
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MemoryMeasurer() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static longmeasureBytes(Object rootObject) + +
+          Measures the memory footprint, in bytes, of an object graph.
+static longmeasureBytes(Object rootObject, + Predicate<Object> objectAcceptor) + +
+          Measures the memory footprint, in bytes, of an object graph.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MemoryMeasurer

+
+public MemoryMeasurer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+measureBytes

+
+public static long measureBytes(Object rootObject)
+
+
Measures the memory footprint, in bytes, of an object graph. The object + graph is defined by a root object and whatever object can be reached + through that, excluding static fields, Class objects, and + fields defined in enums (all these are considered shared values, + which should not contribute to the cost of any single object graph). + +

Equivalent to measureBytes(rootObject, Predicates.alwaysTrue()). +

+

+
Parameters:
rootObject - the root object that defines the object graph to be measured +
Returns:
the memory footprint, in bytes, of the object graph
+
+
+
+ +

+measureBytes

+
+public static long measureBytes(Object rootObject,
+                                Predicate<Object> objectAcceptor)
+
+
Measures the memory footprint, in bytes, of an object graph. The object + graph is defined by a root object and whatever object can be reached + through that, excluding static fields, Class objects, and + fields defined in enums (all these are considered shared values, + which should not contribute to the cost of any single object graph), and + any object for which the user-provided predicate returns false. +

+

+
Parameters:
rootObject - the root object that defines the object graph to be measured
objectAcceptor - a predicate that returns true for objects to + be explored (and treated as part of the object graph), or false to + forbid the traversal to traverse the given object +
Returns:
the memory footprint, in bytes, of the object graph
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectExplorer.Feature.html b/dist/javadoc/objectexplorer/ObjectExplorer.Feature.html new file mode 100644 index 0000000..5ab3997 --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectExplorer.Feature.html @@ -0,0 +1,334 @@ + + + + + + + +ObjectExplorer.Feature (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Enum ObjectExplorer.Feature

+
+java.lang.Object
+  extended by java.lang.Enum<ObjectExplorer.Feature>
+      extended by objectexplorer.ObjectExplorer.Feature
+
+
+
All Implemented Interfaces:
Serializable, Comparable<ObjectExplorer.Feature>
+
+
+
Enclosing class:
ObjectExplorer
+
+
+
+
public static enum ObjectExplorer.Feature
extends Enum<ObjectExplorer.Feature>
+ + +

+Enumeration of features that may be optionally requested for an object traversal. +

+ +

+

+
See Also:
ObjectExplorer.exploreObject(Object, ObjectVisitor, EnumSet)
+
+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
VISIT_NULL + +
+          Null references should be visited.
VISIT_PRIMITIVES + +
+          Primitive values should be visited.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static ObjectExplorer.FeaturevalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static ObjectExplorer.Feature[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+VISIT_NULL

+
+public static final ObjectExplorer.Feature VISIT_NULL
+
+
Null references should be visited. +

+

+
+
+
+ +

+VISIT_PRIMITIVES

+
+public static final ObjectExplorer.Feature VISIT_PRIMITIVES
+
+
Primitive values should be visited. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static ObjectExplorer.Feature[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (ObjectExplorer.Feature c : ObjectExplorer.Feature.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static ObjectExplorer.Feature valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectExplorer.html b/dist/javadoc/objectexplorer/ObjectExplorer.html new file mode 100644 index 0000000..a386876 --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectExplorer.html @@ -0,0 +1,312 @@ + + + + + + + +ObjectExplorer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class ObjectExplorer

+
+java.lang.Object
+  extended by objectexplorer.ObjectExplorer
+
+
+
+
public class ObjectExplorer
extends Object
+ + +

+A depth-first object graph explorer. The traversal starts at a root (an Object) + and explores any other reachable object (recursively) or primitive value, excluding + static fields from the traversal. The traversal is controlled by a user-supplied + ObjectVisitor, which decides for each explored path whether to continue + exploration of that path, and it can also return a value at the end of the traversal. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classObjectExplorer.Feature + +
+          Enumeration of features that may be optionally requested for an object traversal.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> T
+
exploreObject(Object rootObject, + ObjectVisitor<T> visitor) + +
+          Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value.
+static + + + + +
+<T> T
+
exploreObject(Object rootObject, + ObjectVisitor<T> visitor, + EnumSet<ObjectExplorer.Feature> features) + +
+          Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+exploreObject

+
+public static <T> T exploreObject(Object rootObject,
+                                  ObjectVisitor<T> visitor)
+
+
Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value. + +

Equivalent to exploreObject(rootObject, visitor, EnumSet.noneOf(Feature.class)). +

+

+
Type Parameters:
T - the type of the value obtained (after the traversal) by the ObjectVisitor
Parameters:
rootObject - an object to be recursively explored
visitor - a visitor that is notified for each explored path and decides whether + to continue exploration of that path, and constructs a return value + at the end of the exploration +
Returns:
whatever value is returned by the visitor at the end of the traversal
See Also:
ObjectVisitor
+
+
+
+ +

+exploreObject

+
+public static <T> T exploreObject(Object rootObject,
+                                  ObjectVisitor<T> visitor,
+                                  EnumSet<ObjectExplorer.Feature> features)
+
+
Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value. + +

The features further customizes the exploration behavior. In particular: +

+ In both cases above, the return value of ObjectVisitor.visit(Chain) is ignored, + since neither primitive values or null can be further explored. +

+

+
Type Parameters:
T - the type of the value obtained (after the traversal) by the ObjectVisitor
Parameters:
rootObject - an object to be recursively explored
visitor - a visitor that is notified for each explored path and decides whether + to continue exploration of that path, and constructs a return value + at the end of the exploration
features - a set of desired features that the object exploration should have +
Returns:
whatever value is returned by the visitor at the end of the traversal
See Also:
ObjectVisitor
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectGraphMeasurer.Footprint.html b/dist/javadoc/objectexplorer/ObjectGraphMeasurer.Footprint.html new file mode 100644 index 0000000..bbcc88a --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectGraphMeasurer.Footprint.html @@ -0,0 +1,339 @@ + + + + + + + +ObjectGraphMeasurer.Footprint (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class ObjectGraphMeasurer.Footprint

+
+java.lang.Object
+  extended by objectexplorer.ObjectGraphMeasurer.Footprint
+
+
+
Enclosing class:
ObjectGraphMeasurer
+
+
+
+
public static class ObjectGraphMeasurer.Footprint
extends Object
+ + +

+The footprint of an object graph. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ObjectGraphMeasurer.Footprint(int objects, + int references, + Multiset<Class<?>> primitives) + +
+          Constructs a Footprint, by specifying the number of objects, references, + and primitives (represented as a Multiset).
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetObjects() + +
+          Returns the number of objects of this footprint.
+ ImmutableMultiset<Class<?>>getPrimitives() + +
+          Returns the number of primitives of this footprint + (represented by the respective primitive classes, + e.g. int.class etc).
+ intgetReferences() + +
+          Returns the number of references of this footprint.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectGraphMeasurer.Footprint

+
+public ObjectGraphMeasurer.Footprint(int objects,
+                                     int references,
+                                     Multiset<Class<?>> primitives)
+
+
Constructs a Footprint, by specifying the number of objects, references, + and primitives (represented as a Multiset). +

+

+
Parameters:
objects - the number of objects
references - the number of references
primitives - the number of primitives (represented by the + respective primitive classes, e.g. int.class etc)
+
+ + + + + + + + +
+Method Detail
+ +

+getObjects

+
+public int getObjects()
+
+
Returns the number of objects of this footprint. +

+

+
+
+
+
+ +

+getReferences

+
+public int getReferences()
+
+
Returns the number of references of this footprint. +

+

+
+
+
+
+ +

+getPrimitives

+
+public ImmutableMultiset<Class<?>> getPrimitives()
+
+
Returns the number of primitives of this footprint + (represented by the respective primitive classes, + e.g. int.class etc). +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectGraphMeasurer.html b/dist/javadoc/objectexplorer/ObjectGraphMeasurer.html new file mode 100644 index 0000000..93c2ad0 --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectGraphMeasurer.html @@ -0,0 +1,314 @@ + + + + + + + +ObjectGraphMeasurer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Class ObjectGraphMeasurer

+
+java.lang.Object
+  extended by objectexplorer.ObjectGraphMeasurer
+
+
+
+
public class ObjectGraphMeasurer
extends Object
+ + +

+A tool that can qualitatively measure the footprint + (e.g., number of objects, references, + primitives) of a graph structure. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classObjectGraphMeasurer.Footprint + +
+          The footprint of an object graph.
+  + + + + + + + + + + +
+Constructor Summary
ObjectGraphMeasurer() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static ObjectGraphMeasurer.Footprintmeasure(Object rootObject) + +
+          Measures the footprint of the specified object graph.
+static ObjectGraphMeasurer.Footprintmeasure(Object o, + Predicate<Object> objectAcceptor) + +
+          Measures the footprint of the specified object graph.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectGraphMeasurer

+
+public ObjectGraphMeasurer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+measure

+
+public static ObjectGraphMeasurer.Footprint measure(Object rootObject)
+
+
Measures the footprint of the specified object graph. + The object graph is defined by a root object and whatever object can be reached + through that, excluding static fields, Class objects, and + fields defined in enums (all these are considered shared values, + which should not contribute to the cost of any single object graph). + +

Equivalent to measure(rootObject, Predicates.alwaysTrue()). +

+

+
Parameters:
rootObject - the root object of the object graph +
Returns:
the footprint of the object graph
+
+
+
+ +

+measure

+
+public static ObjectGraphMeasurer.Footprint measure(Object o,
+                                                    Predicate<Object> objectAcceptor)
+
+
Measures the footprint of the specified object graph. + The object graph is defined by a root object and whatever object can be reached + through that, excluding static fields, Class objects, and + fields defined in enums (all these are considered shared values, + which should not contribute to the cost of any single object graph), and + any object for which the user-provided predicate returns false. +

+

+
Parameters:
rootObject - the root object of the object graph
objectAcceptor - a predicate that returns true for objects to + be explored (and treated as part of the footprint), or false to + forbid the traversal to traverse the given object +
Returns:
the footprint of the object graph
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectVisitor.Traversal.html b/dist/javadoc/objectexplorer/ObjectVisitor.Traversal.html new file mode 100644 index 0000000..03857de --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectVisitor.Traversal.html @@ -0,0 +1,333 @@ + + + + + + + +ObjectVisitor.Traversal (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Enum ObjectVisitor.Traversal

+
+java.lang.Object
+  extended by java.lang.Enum<ObjectVisitor.Traversal>
+      extended by objectexplorer.ObjectVisitor.Traversal
+
+
+
All Implemented Interfaces:
Serializable, Comparable<ObjectVisitor.Traversal>
+
+
+
Enclosing interface:
ObjectVisitor<T>
+
+
+
+
public static enum ObjectVisitor.Traversal
extends Enum<ObjectVisitor.Traversal>
+ + +

+Constants that denote how the traversal of a given object (chain) + should continue. +

+ +

+


+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
EXPLORE + +
+          The visited object should be further explored.
SKIP + +
+          The visited object should not be explored.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static ObjectVisitor.TraversalvalueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static ObjectVisitor.Traversal[]values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+EXPLORE

+
+public static final ObjectVisitor.Traversal EXPLORE
+
+
The visited object should be further explored. +

+

+
+
+
+ +

+SKIP

+
+public static final ObjectVisitor.Traversal SKIP
+
+
The visited object should not be explored. +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static ObjectVisitor.Traversal[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (ObjectVisitor.Traversal c : ObjectVisitor.Traversal.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static ObjectVisitor.Traversal valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/ObjectVisitor.html b/dist/javadoc/objectexplorer/ObjectVisitor.html new file mode 100644 index 0000000..0e57e5f --- /dev/null +++ b/dist/javadoc/objectexplorer/ObjectVisitor.html @@ -0,0 +1,269 @@ + + + + + + + +ObjectVisitor (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +objectexplorer +
+Interface ObjectVisitor<T>

+
+
Type Parameters:
T - the type of the result that this visitor returns + (can be defined as Void to denote no result}.
+
+
+
public interface ObjectVisitor<T>
+ + +

+A visitor that controls an object traversal. Implementations + of this interface are passed to ObjectExplorer exploration methods. +

+ +

+

+
See Also:
ObjectExplorer
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classObjectVisitor.Traversal + +
+          Constants that denote how the traversal of a given object (chain) + should continue.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ Tresult() + +
+          Returns an arbitrary value (presumably constructed during the object + graph traversal).
+ ObjectVisitor.Traversalvisit(Chain chain) + +
+          Visits an explored value (the whole chain from the root object + leading to the value is provided), and decides whether to continue + the exploration of that value.
+  +

+ + + + + + + + +
+Method Detail
+ +

+visit

+
+ObjectVisitor.Traversal visit(Chain chain)
+
+
Visits an explored value (the whole chain from the root object + leading to the value is provided), and decides whether to continue + the exploration of that value. + +

In case the explored value is either primitive or null + (e.g., if chain.isPrimitive() || chain.getValue() == null), + the return value is meaningless and is ignored. +

+

+
Parameters:
chain - the chain that leads to the explored value. +
Returns:
Traversal.EXPLORE to denote that the visited object + should be further explored, or ObjectVisitor.Traversal.SKIP to avoid + exploring it.
+
+
+
+ +

+result

+
+T result()
+
+
Returns an arbitrary value (presumably constructed during the object + graph traversal). +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/Chain.html b/dist/javadoc/objectexplorer/class-use/Chain.html new file mode 100644 index 0000000..ef672be --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/Chain.html @@ -0,0 +1,184 @@ + + + + + + + +Uses of Class objectexplorer.Chain (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.Chain

+
+ + + + + +
+Uses of Chain in objectexplorer
+  +

+ + + + + + + + + +
Methods in objectexplorer that return Chain
+ ChainChain.getParent() + +
+          Returns the parent chain, from which this chain was created.
+  +

+ + + + + + + + + +
Methods in objectexplorer with parameters of type Chain
+ ObjectVisitor.TraversalObjectVisitor.visit(Chain chain) + +
+          Visits an explored value (the whole chain from the root object + leading to the value is provided), and decides whether to continue + the exploration of that value.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/InstrumentationGrabber.html b/dist/javadoc/objectexplorer/class-use/InstrumentationGrabber.html new file mode 100644 index 0000000..3244880 --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/InstrumentationGrabber.html @@ -0,0 +1,143 @@ + + + + + + + +Uses of Class objectexplorer.InstrumentationGrabber (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.InstrumentationGrabber

+
+No usage of objectexplorer.InstrumentationGrabber +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/MemoryMeasurer.html b/dist/javadoc/objectexplorer/class-use/MemoryMeasurer.html new file mode 100644 index 0000000..95b38ff --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/MemoryMeasurer.html @@ -0,0 +1,143 @@ + + + + + + + +Uses of Class objectexplorer.MemoryMeasurer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.MemoryMeasurer

+
+No usage of objectexplorer.MemoryMeasurer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectExplorer.Feature.html b/dist/javadoc/objectexplorer/class-use/ObjectExplorer.Feature.html new file mode 100644 index 0000000..eadf842 --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectExplorer.Feature.html @@ -0,0 +1,202 @@ + + + + + + + +Uses of Class objectexplorer.ObjectExplorer.Feature (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.ObjectExplorer.Feature

+
+ + + + + +
+Uses of ObjectExplorer.Feature in objectexplorer
+  +

+ + + + + + + + + + + + + +
Methods in objectexplorer that return ObjectExplorer.Feature
+static ObjectExplorer.FeatureObjectExplorer.Feature.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static ObjectExplorer.Feature[]ObjectExplorer.Feature.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+  +

+ + + + + + + + + +
Method parameters in objectexplorer with type arguments of type ObjectExplorer.Feature
+static + + + + +
+<T> T
+
ObjectExplorer.exploreObject(Object rootObject, + ObjectVisitor<T> visitor, + EnumSet<ObjectExplorer.Feature> features) + +
+          Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectExplorer.html b/dist/javadoc/objectexplorer/class-use/ObjectExplorer.html new file mode 100644 index 0000000..5f4d939 --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectExplorer.html @@ -0,0 +1,143 @@ + + + + + + + +Uses of Class objectexplorer.ObjectExplorer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.ObjectExplorer

+
+No usage of objectexplorer.ObjectExplorer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.Footprint.html b/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.Footprint.html new file mode 100644 index 0000000..7829e36 --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.Footprint.html @@ -0,0 +1,175 @@ + + + + + + + +Uses of Class objectexplorer.ObjectGraphMeasurer.Footprint (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.ObjectGraphMeasurer.Footprint

+
+ + + + + +
+Uses of ObjectGraphMeasurer.Footprint in objectexplorer
+  +

+ + + + + + + + + + + + + +
Methods in objectexplorer that return ObjectGraphMeasurer.Footprint
+static ObjectGraphMeasurer.FootprintObjectGraphMeasurer.measure(Object rootObject) + +
+          Measures the footprint of the specified object graph.
+static ObjectGraphMeasurer.FootprintObjectGraphMeasurer.measure(Object o, + Predicate<Object> objectAcceptor) + +
+          Measures the footprint of the specified object graph.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.html b/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.html new file mode 100644 index 0000000..f85a80a --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectGraphMeasurer.html @@ -0,0 +1,143 @@ + + + + + + + +Uses of Class objectexplorer.ObjectGraphMeasurer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.ObjectGraphMeasurer

+
+No usage of objectexplorer.ObjectGraphMeasurer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectVisitor.Traversal.html b/dist/javadoc/objectexplorer/class-use/ObjectVisitor.Traversal.html new file mode 100644 index 0000000..b71c197 --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectVisitor.Traversal.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class objectexplorer.ObjectVisitor.Traversal (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
objectexplorer.ObjectVisitor.Traversal

+
+ + + + + +
+Uses of ObjectVisitor.Traversal in objectexplorer
+  +

+ + + + + + + + + + + + + + + + + +
Methods in objectexplorer that return ObjectVisitor.Traversal
+static ObjectVisitor.TraversalObjectVisitor.Traversal.valueOf(String name) + +
+          Returns the enum constant of this type with the specified name.
+static ObjectVisitor.Traversal[]ObjectVisitor.Traversal.values() + +
+          Returns an array containing the constants of this enum type, in +the order they are declared.
+ ObjectVisitor.TraversalObjectVisitor.visit(Chain chain) + +
+          Visits an explored value (the whole chain from the root object + leading to the value is provided), and decides whether to continue + the exploration of that value.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/class-use/ObjectVisitor.html b/dist/javadoc/objectexplorer/class-use/ObjectVisitor.html new file mode 100644 index 0000000..6a4a75d --- /dev/null +++ b/dist/javadoc/objectexplorer/class-use/ObjectVisitor.html @@ -0,0 +1,195 @@ + + + + + + + +Uses of Interface objectexplorer.ObjectVisitor (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
objectexplorer.ObjectVisitor

+
+ + + + + +
+Uses of ObjectVisitor in objectexplorer
+  +

+ + + + + + + + + + + + + +
Methods in objectexplorer with parameters of type ObjectVisitor
+static + + + + +
+<T> T
+
ObjectExplorer.exploreObject(Object rootObject, + ObjectVisitor<T> visitor) + +
+          Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value.
+static + + + + +
+<T> T
+
ObjectExplorer.exploreObject(Object rootObject, + ObjectVisitor<T> visitor, + EnumSet<ObjectExplorer.Feature> features) + +
+          Explores an object graph (defined by a root object and whatever is reachable + through it, following non-static fields) while using an ObjectVisitor + to both control the traversal and return a value.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/package-frame.html b/dist/javadoc/objectexplorer/package-frame.html new file mode 100644 index 0000000..6b8cb32 --- /dev/null +++ b/dist/javadoc/objectexplorer/package-frame.html @@ -0,0 +1,67 @@ + + + + + + + +objectexplorer (MemoryMeasurer) + + + + + + + + + + + +objectexplorer + + + + +
+Interfaces  + +
+ObjectVisitor
+ + + + + + +
+Classes  + +
+Chain +
+InstrumentationGrabber +
+MemoryMeasurer +
+ObjectExplorer +
+ObjectGraphMeasurer +
+ObjectGraphMeasurer.Footprint
+ + + + + + +
+Enums  + +
+ObjectExplorer.Feature +
+ObjectVisitor.Traversal
+ + + + diff --git a/dist/javadoc/objectexplorer/package-summary.html b/dist/javadoc/objectexplorer/package-summary.html new file mode 100644 index 0000000..0288658 --- /dev/null +++ b/dist/javadoc/objectexplorer/package-summary.html @@ -0,0 +1,212 @@ + + + + + + + +objectexplorer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package objectexplorer +

+ + + + + + + + + +
+Interface Summary
ObjectVisitor<T>A visitor that controls an object traversal.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ChainA chain of references, which starts at a root object and leads to a particular value + (either an object or a primitive).
InstrumentationGrabberAgent call-back that stores the Instrumentation provided by the JVM.
MemoryMeasurerA utility that can be used to measure the memory footprint of an arbitrary object graph.
ObjectExplorerA depth-first object graph explorer.
ObjectGraphMeasurerA tool that can qualitatively measure the footprint + (e.g., number of objects, references, + primitives) of a graph structure.
ObjectGraphMeasurer.FootprintThe footprint of an object graph.
+  + +

+ + + + + + + + + + + + + +
+Enum Summary
ObjectExplorer.FeatureEnumeration of features that may be optionally requested for an object traversal.
ObjectVisitor.TraversalConstants that denote how the traversal of a given object (chain) + should continue.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/package-tree.html b/dist/javadoc/objectexplorer/package-tree.html new file mode 100644 index 0000000..9e7b6bd --- /dev/null +++ b/dist/javadoc/objectexplorer/package-tree.html @@ -0,0 +1,164 @@ + + + + + + + +objectexplorer Class Hierarchy (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package objectexplorer +

+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/objectexplorer/package-use.html b/dist/javadoc/objectexplorer/package-use.html new file mode 100644 index 0000000..9488122 --- /dev/null +++ b/dist/javadoc/objectexplorer/package-use.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Package objectexplorer (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
objectexplorer

+
+ + + + + + + + + + + + + + + + + + + + +
+Classes in objectexplorer used by objectexplorer
Chain + +
+          A chain of references, which starts at a root object and leads to a particular value + (either an object or a primitive).
ObjectExplorer.Feature + +
+          Enumeration of features that may be optionally requested for an object traversal.
ObjectGraphMeasurer.Footprint + +
+          The footprint of an object graph.
ObjectVisitor + +
+          A visitor that controls an object traversal.
ObjectVisitor.Traversal + +
+          Constants that denote how the traversal of a given object (chain) + should continue.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/overview-tree.html b/dist/javadoc/overview-tree.html new file mode 100644 index 0000000..8a6fbf9 --- /dev/null +++ b/dist/javadoc/overview-tree.html @@ -0,0 +1,166 @@ + + + + + + + +Class Hierarchy (MemoryMeasurer) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
objectexplorer
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/dist/javadoc/package-list b/dist/javadoc/package-list new file mode 100644 index 0000000..bce5aa7 --- /dev/null +++ b/dist/javadoc/package-list @@ -0,0 +1 @@ +objectexplorer diff --git a/dist/javadoc/resources/inherit.gif b/dist/javadoc/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/dist/javadoc/resources/inherit.gif differ diff --git a/dist/javadoc/stylesheet.css b/dist/javadoc/stylesheet.css new file mode 100644 index 0000000..6ea9e51 --- /dev/null +++ b/dist/javadoc/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/dist/lib/guava-r8-trunk.jar b/dist/lib/guava-r8-trunk.jar new file mode 100644 index 0000000..119be21 Binary files /dev/null and b/dist/lib/guava-r8-trunk.jar differ diff --git a/dist/lib/jsr305.jar b/dist/lib/jsr305.jar new file mode 100644 index 0000000..cf5f561 Binary files /dev/null and b/dist/lib/jsr305.jar differ diff --git a/dist/object-explorer.jar b/dist/object-explorer.jar new file mode 100644 index 0000000..5fb1fc5 Binary files /dev/null and b/dist/object-explorer.jar differ