Measuring the Size of a Java Object Graph at Runtime
Original Publication Date: 2004-Apr-02
Included in the Prior Art Database: 2004-Apr-02
Determining the size of a Java object is not a straightforward process as it involves traversing the object graph. Many applications do require information about object sizes such as profilers, compilers, and other programs in which memory management is a consideration. We describe in this article a method for computing the size of a runtime Java object. This method has been implemented and is available as a Java package.