org.openjdk.jmh.util

Class Utils



  • public class Utilsextends Object
    • Method Detail

      • sum

        public static int sum(int[] arr)
      • roundUp

        public static int roundUp(int v,          int quant)
      • unmarshalIntArray

        public static int[] unmarshalIntArray(String src)
      • marshalIntArray

        public static String marshalIntArray(int[] arr)
      • figureOutHotCPUs

        public static int figureOutHotCPUs()
        Warm up the CPU schedulers, bring all the CPUs online to get the reasonable estimate of the system capacity. Some systems, notably embedded Linuxes, power down the idle CPUs and so availableProcessors() may report lower CPU count than would be present after the load-up.
        Returns:
        max CPU count
      • guessConsoleEncoding

        public static Charset guessConsoleEncoding()
      • check

        public static void check(Class<?> klass,         String... fieldNames)
      • check

        public static void check(Class<?> klass,         String fieldName)
      • getOffset

        public static long getOffset(Class<?> klass,             String fieldName)
      • isWindows

        public static boolean isWindows()
      • getCurrentJvm

        public static String getCurrentJvm()
      • getPid

        public static long getPid()
        Gets PID of the current JVM.
        Returns:
        PID.

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14