public static void Log() { System.Text.StringBuilder output = new System.Text.StringBuilder(); output.Append("============================\n\t\t\t\tSize Profile results:\n============================\n"); //foreach(KeyValuePair<string, ProfilePoint> pair in profiles) foreach (KeyValuePair <string, ProfileSizePoint> pair in profiles) { output.Append(pair.Key); output.Append(" used "); output.Append(AstarMath.FormatBytes((int)pair.Value.totalSize)); output.Append("\n"); } Debug.Log(output.ToString()); }