Coder Social home page Coder Social logo

systemkit's People

Contributors

alexpovh avatar beltex avatar stansidel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

systemkit's Issues

CpuUsage not updating

I'm running the example code in a swift UI app inside a 1sec timer. While I can see load and memory usage updating, the cpu usage remains constant- 7% system, 12% user and 81% idle. While the numbers are actually fluctuating, they only do so at the 5th digit.

It looks a bit as if the raw OS counters are being exported, not the actual load?

Battery API

  • Partially done
  • Missing some stats - current charge
  • Needs cleanup

Bluetooth API

  • Use for Apple wireless keyboard & mouse/trackpad
  • Add on/off & connect methods for creating command line tool to make connecting to magic mouse in clamshell mode easy

OS X sandbox

  • As a reminder to factor this in (I/O Kit)
  • It may be there's nothing we have to do. The burden is really on the client with having a privileged helper thats called through launchd
  • This is default for iOS, so nothing extra needed

PPC support?

libtop still has some PPC refs, is this really needed? See pid.c (proc type check).

iOS/ARM support

  • Everything should be the same for the most part (32-bit devices are many though - vm stats)
  • Need cert to test

System.uname() - Swift 2.0 - Regression - Runtime crash using utsname() struct

Can't see a way to get around this bug in pure Swift. Anything besides simply initing the struct seems to cause a crash at runtime. This affects the System.uname() method. Only option I can see for now is to call a C wrapper function, but I don't think its worth it. It will likely be fixed soon, as we should be getting new Xcode beta's at the usual 2 week cycle rate for the next while.

Ref: https://github.com/practicalswift/swift-compiler-crashes/pull/76

Installation issue

Carthage is giving me an error while installation as

Skipped building SystemKit due to the error: Dependency "SystemKit" has no shared framework schemes

P.S. I've tried with other projects and they are working fine.

Add debug logging

  • Use debug macros
  • Will add this at the end, don't want clutter for now

Not showing correct battery charge

I don't know if this is a bug or just me. But using the Battery method charge() doesn't seem to return the correct charge. It's about 5-6 percents lower than what it should be.

screen shot 2016-06-29 at 23 27 47 screen shot 2016-06-29 at 23 28 45

Process/Task API

  • For listing all of them
  • All ops in Activity Monitor
    • Process ID
    • User
    • % CPU
    • Threads

    • Ports

    • Real Memory
    • Real Private Memory
    • Real Shared Memory
    • Kind
    • Sudden Termination
    • Sandbox
    • Idle Wake Ups
    • Energy Impact
    • App Nap
    • Send Bytes
    • Send Packets
    • Received Bytes
    • Received Packets
    • Purgeable Memory
    • Memory
    • Bytes Written
    • Bytes Read

Result of usageCPU doesn't update

Hi there,
it looks that the result of a call to the usageCPU doesn't update the returned values.
This my my fragment of code (99% identical to the documentation):

    var sys = System()
    let cpuUsage = sys.usageCPU()

    cpuUsageSystem.stringValue =  "\(Int(cpuUsage.system))%"
    cpuUsageUser.stringValue =  "\(Int(cpuUsage.user))%"
    cpuUsageIdle.stringValue =  "\(Int(cpuUsage.idle))%"
    cpuUsageNice.stringValue = "\(Int(cpuUsage.nice))%"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.