Java Memory displayMemory(String label, long bytes)

Here you can find the source of displayMemory(String label, long bytes)

Description

display Memory

License

Open Source License

Declaration

public static void displayMemory(String label, long bytes) 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

public class Main {
    public static void displayMemory(String label, long bytes) {
        long memoryKBytes = bytes / 1024;
        long memoryMBytes = memoryKBytes / 1024;
        System.out.println(label + " = " + bytes + " bytes, " + memoryKBytes + "KB, " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                + memoryMBytes + "MB"); //$NON-NLS-1$

    }/*  w w  w  . j a  v  a2 s  .  c  o  m*/
}

Related

  1. checkLowMemory()
  2. checkMemory()
  3. checkMinMemory(long min)
  4. compactMemory()
  5. correctMemoryValue(int memory)
  6. dumpMemory()
  7. dumpMemoryInfo(String msg)
  8. fillMemory()
  9. isDefaultMemoryCardDrive(String aRoot)