internal virtual void ToString(StringBuilder str) { str.Append(ClassName()).Append("\n"); str.Append(FileUsageStatsUtil.FormatLine("Slots", SlotUsage())); str.Append(FileUsageStatsUtil.FormatLine("Class index", ClassIndexUsage())); str.Append(FileUsageStatsUtil.FormatLine("Field indices", FieldIndexUsage())); if (MiscUsage() > 0) { str.Append(FileUsageStatsUtil.FormatLine("Misc", MiscUsage())); } str.Append(FileUsageStatsUtil.FormatLine("Total", TotalUsage())); }
public override string ToString() { StringBuilder str = new StringBuilder(); Tree.Traverse(_classUsageStats, new _IVisitor4_124(str)); str.Append("\n"); str.Append(FileUsageStatsUtil.FormatLine("File header", FileHeader())); str.Append(FileUsageStatsUtil.FormatLine("Freespace", Freespace())); str.Append(FileUsageStatsUtil.FormatLine("ID system", IdSystem())); str.Append(FileUsageStatsUtil.FormatLine("Class metadata", ClassMetadata())); str.Append(FileUsageStatsUtil.FormatLine("Freespace usage", FreespaceUsage())); str.Append(FileUsageStatsUtil.FormatLine("UUID usage", UuidUsage())); str.Append(FileUsageStatsUtil.FormatLine("Version usage", CommitTimestampUsage()) ); str.Append("\n"); long totalUsage = TotalUsage(); str.Append(FileUsageStatsUtil.FormatLine("Total", totalUsage)); str.Append(FileUsageStatsUtil.FormatLine("Unaccounted", FileSize() - totalUsage)); str.Append(FileUsageStatsUtil.FormatLine("File", FileSize())); str.Append(_slots); return(str.ToString()); }