C# Class UnityHeapEx.HeapDump

ファイルを表示 Open project: Cotoff/UnityHeapEx Class Usage Examples

Public Properties

Property Type Description
SkipEmptyTypes bool

Public Methods

Method Description
DumpToXml ( ) : void

Collect all roots, i.e. static fields in all classes and all scripts; then dump all object hierarchy reachable from these roots to file

GatherFromRootRecursively ( object root, string depth ) : int

Works through all fields of an object, dumpoing them into xml

Private Methods

Method Description
DoStuff ( ) : void
GetTotalLength ( Array val ) : int
ReportField ( object root, string depth, FieldInfo fieldInfo ) : int

Dumps info on the field in xml. Provides some rough estimate on size taken by its contents, and recursively enumerates fields if this one contains an object reference.

WriteUnityObjectData ( string depth, Object uo, bool seen ) : void

Method Details

DumpToXml() public method

Collect all roots, i.e. static fields in all classes and all scripts; then dump all object hierarchy reachable from these roots to file
public DumpToXml ( ) : void
return void

GatherFromRootRecursively() public method

Works through all fields of an object, dumpoing them into xml
public GatherFromRootRecursively ( object root, string depth ) : int
root object
depth string
return int

Property Details

SkipEmptyTypes public_oe static_oe property

public static bool SkipEmptyTypes
return bool