资源简介
hyperic-sigar-1.6.4,获取系统cpu使用情况、内存使用情况、进程使用情况等。
代码片段和文件信息
/*
* Copyright (c) 2004 Hyperic Inc.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using Hyperic.Sigar;
public class CpuInfo {
public static void Main() {
Sigar sigar = new Sigar();
Hyperic.Sigar.CpuInfo[] infos =
sigar.CpuInfoList();
System.Console.WriteLine(infos.Length + “ total CPUs..“);
foreach (Hyperic.Sigar.CpuInfo info in infos) {
System.Console.WriteLine(“Vendor........“ + info.Vendor);
System.Console.WriteLine(“Model.........“ + info.Model);
System.Console.WriteLine(“Mhz...........“ + info.Mhz);
System.Console.WriteLine(““);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\dotnet\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\dotnet\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\dotnet\src\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\java\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\java\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\perl\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\perl\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\php\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\php\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\python\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\python\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\ruby\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\bindings\ruby\examples\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\cmd\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\ptql\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\shell\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\util\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\vmware\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\org\hyperic\sigar\win32\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\docs\javadoc\resources\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\sigar-bin\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\sigar-bin\include\
目录 0 2010-04-28 17:00 hyperic-sigar-1.6.4\sigar-bin\lib\
文件 478 2010-04-28 17:00 hyperic-sigar-1.6.4\AUTHORS
............此处省略297个文件信息
评论
共有 条评论