Exemple #1
0
        private void OpenHeapshot(string fileName)
        {
            this.heapshotReader = new HeapshotReader();
            string text = this.HeapshotPath + "/" + fileName;

            if (this.heapshotReader.Open(text))
            {
                this.lastOpenedHeapshotFile = fileName;
                this.RefreshHeapshotUIObjects();
            }
            else
            {
                Debug.LogError("Failed to read " + text);
            }
        }
 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 ObjectInfo(HeapshotReader.TypeInfo typeInfo, uint size, HeapshotReader.ObjectType type)
			{
				this.typeInfo = typeInfo;
				this.size = size;
				this.type = type;
			}
			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.references = new List<HeapshotReader.ReferenceInfo>();
     this.inverseReferences = new List<HeapshotReader.BackReferenceInfo>();
     this.typeInfo = typeInfo;
     this.size = size;
     this.type = type;
 }