+ @Override
+ public String headerRow() {
+ return "RSS [MB]\tPeak RSS [MB]";
+ }
+
+ @Override
+ public String dataRow() {
+ return Util.toMb(currentRSS) + "\t" + Util.toMb(peakRSS);
+ }
+
+ public static void main(String[] args) {
+ System.out.println(new CMemoryInfo().toHumanReadableString());
+ System.out.println(new CMemoryInfo().headerRow());
+ System.out.println(new CMemoryInfo().dataRow());
+ }
+