C# Class Volante.TypeMemoryUsage

Information about memory usage for one type. Instances of this class are created by IDatabase.GetMemoryUsage method. Size of internal database structures (object index,* memory allocation bitmap) is associated with Database class. Size of class descriptors - with System.Type class.
ファイルを表示 Open project: kjk/volante

Public Properties

Property Type Description
AllocatedSize long
Count int
TotalSize long
Type Type

Public Methods

Method Description
TypeMemoryUsage ( Type type ) : System

TypeMemoryUsage constructor

Method Details

TypeMemoryUsage() public method

TypeMemoryUsage constructor
public TypeMemoryUsage ( Type type ) : System
type Type
return System

Property Details

AllocatedSize public_oe property

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 db. In item associated with Database class this field contains size of all allocated space in the database (marked as used in bitmap)
public long AllocatedSize
return long

Count public_oe property

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

TotalSize public_oe property

Total size of all reachable instances
public long TotalSize
return long

Type public_oe property

Class of persistent object or Database for database internal data
public Type Type
return Type