Commit Graph

178 Commits (59c1f43d3ed2a5c648ecdc83c2313c5f46d04809)

Author SHA1 Message Date
Shirou WAKAYAMA 0d7ff2eb40 cpu[darwin]: convert cpu frequency to Mhz.
Chris Bednarski d5fa4f880f Read Darwin CPU frequency from sysctl hw.cpufrequency
mayowa 7889ce3e03 changed ProccessorId type to *string, cause wmi sometimes returns nil for it
mayowa 6a2bc5afe8 removed l2CacheSize as its not present in all wmi databases
Shirou WAKAYAMA cbe10d6761 cpu[darwin]: move helper path to under the HOME dir.
Shirou WAKAYAMA c195d77ce3 cpu[darwin]: enable cpu helper only the environemnetal variable set.
Shirou WAKAYAMA 755d3a4119 cpu[darwin]: change default tick to 100.
Shirou WAKAYAMA 12843632ca cpu[darwin]: experimental implemtation to get CPU times on darwin.
Shirou WAKAYAMA 5854011870 cpu: Steal, Guest, and GuestNice are not divided by CPU_TICK.
WAKAYAMA shirou 4bc631921f cpu: fix command output trim problem.
Shirou WAKAYAMA 8c17a750c6 get CLOCK TICK by using getconf.
gwind a750762737 Fix interpretation error about /proc/stat
WAKAYAMA shirou 64357f04e7 use StackExchange/wmi instead of invoking wmic process.
Note: This may not work on some old Windows XP.
WAKAYAMA Shirou 5f8b99aa65 windows: GetWmic returns [][]string where string split by ","
Shirou WAKAYAMA 170390c0df cpu: fix build option on unix.
WAKAYAMA Shirou ead8393137 cpu: use wmic to get CPU usage on Windows.
WAKAYAMA Shirou ec2b509dda cpu: skip percpu percent test if windows. Windows can only get one CPU info currently.
WAKAYAMA Shirou 4694ce0e4d cpu: use wmic to get CPUInfo on Windows
WAKAYAMA shirou b8dc51929a forget to change float32 to float64
Shirou WAKAYAMA 753ea1bb48 fix when converting CPUTimes to JSON, sometimes idel have exponent
Shirou WAKAYAMA 4b5bf22b88 change CPUTimes type from float32 to float64 to resolve precision issue.
Shirou WAKAYAMA 18ab22b6fc cpu: should be divided by CPU_TICK
codeskyblue 3b43a3f496 change cpu_linux.go: on some android, runtime.NumCPU() will not return right number of cpu cores
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA 16de570414 merge 039b9defab
WAKAYAMA Shirou 9f2c985a28 fix windows build.
WAKAYAMA shirou d11680c773 fix bugs on FreeBSD.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24