Exemplo n.º 1
0
		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();
			}
		}
Exemplo n.º 2
0
		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();
			}
		}