@@ -76,6 +76,8 @@ public static void viewBuildInfo()
76
76
clearScreen ();
77
77
//print the branding string.
78
78
IOStreams .println (_Branding + "\n Version " + _BuildInfo [1 ]);
79
+
80
+ debug ();
79
81
}
80
82
81
83
/**
@@ -121,20 +123,22 @@ private static void debug()
121
123
{
122
124
//int mb = 1024 * 1024;
123
125
// get Runtime instance
126
+
127
+ System .out .println ("! DEBUG INFORMATION SPEW START !" );
128
+
124
129
Runtime instance = Runtime .getRuntime ();
125
- System .out .println ("\n *********************************************" );
126
- System .out .println (" --- DEBUG INFORMATION --- " );
127
- System .out .println ("*********************************************" );
128
- System .out .println ("\n - Heap utilization statistics [Bytes] - \n " );
129
- System .out .println (" [*] Process ID : " +ProcessHandle .current ().pid ());
130
- // available memory
131
- System .out .println (" [*] Total Memory : " + instance .totalMemory () + " Bytes" );
132
- // free memory
133
- System .out .println (" [*] Free Memory : " + instance .freeMemory () + " Bytes" );
134
- // used memory
135
- System .out .println (" [*] Used Memory : " + (instance .totalMemory () - instance .freeMemory ()) + " Bytes" );
136
- // Maximum available memory
137
- System .out .println (" [*] Max Memory : " + instance .maxMemory () + " Bytes" );
138
- System .out .println ("\n *********************************************\n \n " );
130
+
131
+ long memoryUsed = instance .totalMemory () - instance .freeMemory ();
132
+
133
+ System .out .println ("\n 000000000000000000000000000000" );
134
+ System .out .println ("! DEBUG - MEMORY INFORMATION !" );
135
+ System .out .println ("000000000000000000000000000000" );
136
+ System .out .println ("> Process ID : " + ProcessHandle .current ().pid ());
137
+ System .out .println ("> Total Memory : " + instance .totalMemory () + " Bytes" );
138
+ System .out .println ("> Free Memory : " + instance .freeMemory () + " Bytes" );
139
+ System .out .println ("> Used Memory : " + memoryUsed + " Bytes" );
140
+ System .out .println ("000000000000000000000000000000\n " );
141
+
142
+ System .out .println ("! DEBUG INFORMATION SPEW END !" );
139
143
}
140
144
}
0 commit comments