Examples of CPUInfo


Examples of freenet.support.CPUInformation.CPUInfo

      {
        System.out.println("Detected PowerPC!");
        return JBIGI_OPTIMIZATION_PPC;
       
      } else {
        CPUInfo c = CPUID.getInfo();
        if(c instanceof AMDCPUInfo) {
          AMDCPUInfo amdcpu = (AMDCPUInfo) c;
          if(amdcpu.IsAthlon64Compatible())
            return JBIGI_OPTIMIZATION_X86_64_32;
          if(amdcpu.IsAthlonCompatible())
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

    return status;
  }

  public static void getServerCpuInfo(Sigar sigar, ServerStatus status) {
    try {
      CpuInfo infos[] = sigar.getCpuInfoList();
      CpuPerc cpuList[] = sigar.getCpuPercList();
      double totalUse = 0L;
      for (int i = 0; i < infos.length; i++) {
        CpuPerc perc = cpuList[i];
        CpuInfoVo cpuInfo = new CpuInfoVo();
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

        if (cpuInformation != null) {
            cpuInformation.refresh();

            Cpu cpu = null;
            CpuEntry currentCpu = null;
            CpuInfo cpuInfo = null; // this is probably gonna be used for traits only

            for (MeasurementScheduleRequest request : metrics) {
                String property = request.getName();

                if (property.startsWith("Cpu.")) {
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

    }

    public CpuInfo getCpuInfo() {
        return null != _info
                ? _info
                : new CpuInfo();
    }
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

        Sigar sigar = getSigar();

        CpuInfo[] infos = sigar.getCpuInfoList();

        for (int i=0; i<infos.length; i++) {
            CpuInfo info = infos[i];

            traceln("num=" + i);
            traceln("vendor=" + info.getVendor());
            traceln("model=" + info.getModel());
            traceln("mhz=" + info.getMhz());
            traceln("cache size=" + info.getCacheSize());
            assertGtZeroTrace("totalSockets", info.getTotalSockets());
            assertGtZeroTrace("totalCores", info.getTotalCores());
            assertTrue(info.getTotalSockets() <= info.getTotalCores());
        }

        int mhz = infos[0].getMhz();
        int current = sigar.getCpuInfoList()[0].getMhz();
        assertEquals("Mhz=" + current + "/" + mhz, current, mhz);
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

        Sigar sigar = getSigar();

        CpuInfo[] infos = sigar.getCpuInfoList();

        for (int i=0; i<infos.length; i++) {
            CpuInfo info = infos[i];

            traceln("num=" + i);
            traceln("vendor=" + info.getVendor());
            traceln("model=" + info.getModel());
            traceln("mhz=" + info.getMhz());
            traceln("cache size=" + info.getCacheSize());
            assertGtZeroTrace("totalSockets", info.getTotalSockets());
            assertGtZeroTrace("totalCores", info.getTotalCores());
            assertTrue(info.getTotalSockets() <= info.getTotalCores());
        }

        int mhz = infos[0].getMhz();
        int current = sigar.getCpuInfoList()[0].getMhz();
        assertEquals("Mhz=" + current + "/" + mhz, current, mhz);
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

    }


    public static Map<String, String> getAllInfo(Sigar sigar) throws SigarException {
        Map<String, String> map = new TreeMap<String, String>();
        CpuInfo cpu = sigar.getCpuInfoList()[0];
        map.put("CPU Vendor", cpu.getVendor());
        map.put("CPU Model", cpu.getModel());
        map.put("CPU Mhz", String.valueOf(cpu.getMhz()));
        map.put("Java Vendor", System.getProperty("java.vendor"));
        map.put("Java Version", System.getProperty("java.version"));
        map.put("Java Arch DM", System.getProperty("sun.arch.data.model"));
        map.put("OS Name", System.getProperty("os.name"));
        map.put("OS Version", System.getProperty("os.version"));
View Full Code Here

Examples of org.hyperic.sigar.CpuInfo

        Sigar sigar = getSigar();

        CpuInfo[] infos = sigar.getCpuInfoList();

        for (int i=0; i<infos.length; i++) {
            CpuInfo info = infos[i];

            traceln("num=" + i);
            traceln("vendor=" + info.getVendor());
            traceln("model=" + info.getModel());
            traceln("mhz=" + info.getMhz());
            traceln("cache size=" + info.getCacheSize());
        }

        int mhz = infos[0].getMhz();
        int current = sigar.getCpuInfoList()[0].getMhz();
        assertEquals("Mhz=" + current + "/" + mhz, current, mhz);
View Full Code Here

Examples of org.netbeans.server.uihandler.statistics.CPUInfo

        }
        return null;
    }

    public Integer getUserCPUCount(EntityManager em) {
        CPUInfo info = new CPUInfo();
        Preferences pref = DbPreferences.root(this, info, em);
        try {
            Map<Integer, Integer> result = info.read(pref).getCounts();
            if (!result.isEmpty()){
                return result.keySet().iterator().next();
            }
            Logfile previous = getPreviousFromThisUser(em);
            if (previous != null) {
View Full Code Here

Examples of xbird.util.lang.SystemUtils.CPUInfo

        private CPUInfo prevCpuInfo;

        public PerfmonTask() {
            super();
            this.prevCpuInfo = new CPUInfo();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.