public void PrintDatabase() { using (var util = new TagIndexDumpUtil(this.engine, directory)) { util.Setup(TagIndexDumpUtil.DumpFormat.Xml, TagIndexDumpUtil.DumpType.Dependencies); util.TagInstancesBegin(); foreach (TagManager tm in Array) { util.TagInstanceBegin(tm.TagIndex, refManager[tm.ReferenceName], tm.GroupTag); util.TagInstanceDependentsBegin(); foreach (Blam.DatumIndex di in tm.References) { TagManager dep = Array[di]; util.TagInstanceDependentAdd(dep.Name, dep.GroupTag); } util.TagInstanceDependentsEnd(); util.TagInstanceEnd(); } util.TagInstancesEnd(); } }
public void DumpSharedReferences(TagIndex other) { List<Blam.DatumIndex> tag_indices = FindSharedReferences(other); if (tag_indices == null) return; using (var util = new TagIndexDumpUtil(this.engine, directory)) { util.Setup(TagIndexDumpUtil.DumpFormat.Xml, TagIndexDumpUtil.DumpType.SharedReferences); //util.SharedReferencesAddLeftIndex(); //util.SharedReferencesAddRightIndex(); util.SharedReferencesBegin(); foreach (Blam.DatumIndex di in tag_indices) { TagManager tm = Array[di]; util.TagInstanceBegin(tm.TagIndex, refManager[tm.ReferenceName], tm.GroupTag); util.TagInstanceEnd(); } util.SharedReferencesEnd(); } }
public void DumpToXml() { using (var util = new TagIndexDumpUtil(this.engine, directory)) { util.Setup(TagIndexDumpUtil.DumpFormat.Xml, TagIndexDumpUtil.DumpType.Memory); util.TagInstancesBegin(); foreach (TagManager tm in Array) { util.TagInstanceBegin(tm.TagIndex, refManager[tm.ReferenceName], tm.GroupTag); util.TagInstanceMemoryUsageAdd(tm.CalculateRuntimeSize(engine, false), tm.CalculateRuntimeSize(engine, true)); util.TagInstanceEnd(); } util.TagInstancesEnd(); } }