示例#1
0
 private void OpenHeapshot(string fileName)
 {
     this.heapshotReader = new HeapshotReader();
     string str = this.HeapshotPath + "/" + fileName;
     if (this.heapshotReader.Open(str))
     {
         this.lastOpenedHeapshotFile = fileName;
         this.RefreshHeapshotUIObjects();
     }
     else
     {
         Debug.LogError("Failed to read " + str);
     }
 }
			public HeapshotUIObject(string name, HeapshotReader.ObjectInfo refObject, bool inverseReference)
			{
				this.name = name;
				this.obj = refObject;
				this.inverseReference = inverseReference;
			}
			public ReferenceInfo(HeapshotReader.ObjectInfo refObj, HeapshotReader.FieldInfo field)
			{
				this.referencedObject = refObj;
				this.fieldInfo = field;
			}
			public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size, HeapshotReader.ObjectType type)
			{
				this.typeInfo = typeInfo;
				this.size = size;
				this.type = type;
			}
示例#5
0
 public ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size, HeapshotReader.ObjectType type)
 {
     this.references = new List<HeapshotReader.ReferenceInfo>();
     this.inverseReferences = new List<HeapshotReader.BackReferenceInfo>();
     this.typeInfo = typeInfo;
     this.size = size;
     this.type = type;
 }