org.garret.perst
Class MemoryUsage

java.lang.Object
  extended byorg.garret.perst.MemoryUsage

public class MemoryUsage
extends java.lang.Object

Information about memory usage for the correspondent class. Instances of this class are created by Storage.getMemoryDump method. Size of internal database structures (object index, memory allocation bitmap) is associated with Storage class. Size of class descriptors - with java.lang.Class class.


Field Summary
 long allocatedSize
          Real allocated size of all instances.
 java.lang.Class cls
          Class of persistent object or Storage for database internal data
 int nInstances
          Number of reachable instance of the particular class in the database.
 long totalSize
          Total size of all reachable instances
 
Constructor Summary
MemoryUsage(java.lang.Class cls)
          MemoryUsage constructor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allocatedSize

public long allocatedSize
Real allocated size of all instances. Database allocates space for th objects using quantums, for example object wilth size 25 bytes will use 32 bytes in the storage. In item associated with Storage class this field contains size of all allocated space in the database (marked as used in bitmap)


cls

public java.lang.Class cls
Class of persistent object or Storage for database internal data


nInstances

public int nInstances
Number of reachable instance of the particular class in the database.


totalSize

public long totalSize
Total size of all reachable instances

Constructor Detail

MemoryUsage

public MemoryUsage(java.lang.Class cls)
MemoryUsage constructor