SystemKit

0.0.5

macOS system library in Swift
beltex/SystemKit

What's New

0.0.5

2015-06-15T17:27:57Z
  • Updated to Xcode 6.3.2
  • Replace processCount() & threadCount() with processCounts()
  • This release is simply for the purpose of being a marker before the update to Swift 2.0 which will have breaking changes
Xcode 6.3.2
Build version 6D2105
Apple Swift version 1.2 (swiftlang-602.0.53.1 clang-602.0.53)
Target: x86_64-apple-darwin14.3.0

SystemKit

An OS X system library in Swift based off of libtop, from Apple's top implementation.

  • For an example usage of this library, see dshb, an OS X system monitor in Swift
  • For other system related statistics in Swift for OS X, see SMCKit

Requirements

Example

Sample ouput from example.

// MACHINE STATUS

-- CPU --
  PHYSICAL CORES:  2
  LOGICAL CORES:   2
  SYSTEM:          10%
  USER:            17%
  IDLE:            71%
  NICE:            0%

-- MEMORY --
  PHYSICAL SIZE:   7.75GB
  FREE:            1.33GB
  WIRED:           866MB
  ACTIVE:          5.04GB
  INACTIVE:        516MB
  COMPRESSED:      0MB

-- SYSTEM --
  MODEL:           MacBookPro7,1
  SYSNAME:         Darwin
  NODENAME:        beltex.local
  RELEASE:         13.4.0
  VERSION:         Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014...
  MACHINE:         x86_64
  UPTIME:          6d 21h 4m 38s
  PROCESSES:       197
  THREADS:         967
  LOAD AVERAGE:    [3.18, 3.89, 3.99]
  MACH FACTOR:     [0.436, 0.385, 0.322]

-- POWER --
  CPU SPEED LIMIT: 100.0%
  CPUs AVAILABLE:  2
  SCHEDULER LIMIT: 100.0%
  THERMAL LEVEL:   Not Published

-- BATTERY --
  AC POWERED:      true
  CHARGED:         true
  CHARGING:        false
  CHARGE:          100.0%
  CAPACITY:        1675 mAh
  MAX CAPACITY:    1675 mAh
  DESGIN CAPACITY: 5450 mAh
  CYCLES:          646
  MAX CYCLES:      1000
  TEMPERATURE:     30.0°C
  TIME REMAINING:  0:45

References

License

This project is under the MIT License.

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Dec 15 2024 08:17:06 GMT-1000 (Hawaii-Aleutian Standard Time)