beltex / dshb Goto Github PK
View Code? Open in Web Editor NEWmacOS system monitor
Home Page: https://beltex.github.io/dshb
License: MIT License
macOS system monitor
Home Page: https://beltex.github.io/dshb
License: MIT License
kinfo_proc
Additional Refs
Apple Swift version 2.0 (swiftlang-700.0.57.3 clang-700.0.72)
Apple Swift version 2.0 (swiftlang-700.0.59 clang-700.0.72)
This update will require breaking changes.
String.extends()
with String.appendContentsOf()
. However, there is the new try?
functionality that should be useful, will exploreThis is not a dshb issue per se, but it does affect it, and so opening this up as a means to track things. Quoting 273c6a1 commit message.
git-archive(1) unfortunately does not currently support including submodules in the archive it creates. This seems to be why both the "Download Zip" option on GitHub and the "Source code" tar and zip that comes with a release are missing submodules, as there using git-archive(1) underneath it seems [1]. There was a discussion a few months back on the Git mailing list about adding this functionality [2]. In the mean time we need a work around. Not only to have a real archive (the current ones won't work at all as there not real Git repos, so you can't even init the submodules), but also for folks who don't have Git or don't want to use it, they can just curl/Wget the archive and be able to build. There are various scripts out there to address this. However, they do a lot more than what we need and add yet another dependency. Thus, came up with a small shell script to do this. Added two methods of doing this to the Makefile for now.
The key problem in doing this is ignoring files in the .gitignore (which git-archive(1) does automatically). The first approach does everything locally, archiving the main repo and all the submodules individually and then putting all that together. The second approach which is simpler, but relies on remote, does a fresh clone, init's the submodules and zip's all that. This works because the repo being new is free of any files in the .gitignore (except for .git/ but thats easy to exclude via zip).
There is another option, even simpler, in which we just zip the current directory and feed in .gitignore into zip's exclude option. However, zip's exclude is a bit strange, had trouble with this approach.
[1] https://blogs.law.harvard.edu/acts/2012/10/18/github-zip-doesnt-include-submodules/#comment-975
[2] http://www.mail-archive.com/git%40vger.kernel.org/msg68665.html
Hi there!
So, is very strange for me coming from Windows environment deal with no info about transferring time or speeds. At Windows We have the indicator like "90MB/s" but in Mac Os is totaly blindness. oO
I tryout use some "free apps" but none of then really do what Windows does. And one called "Speed" (blue icon) do some trick with bash commands but with large files stay "quiet". He does Zipping before transfering. And Makes me nervous.
I wanted something like the "Task manager". Who says the use of the HDD/SDD, says about IO use, speeds and so on. But there's nothing close to this on AppStore.
So, there is. Best Regards.
Love this project, but would like to see disk utilisation and maybe network details (Local and Global IPs, upload/download speed, etc.)
.dshb
shasum -a384 dshb
I like dshb - works fine but is there any concern re the warning?
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
dshb
➜ ~ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
dshb
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
➜ ~
Means to measure the following:
Would allow us to benchmark against top & htop. Also, to catch regressions in performance. Related (possibly add performance tests via XCTest):
I had a look at getUsername and saw that it could be a little cleaner - in fact I suspect the current version has a small memory leak. My version below for what its worth.
`
func getUsername(_ uid: uid_t) -> String
{
let username: String
var passwdInfo = passwd()
var result: UnsafeMutablePointer? = nil
let bufferSize = sysconf(_SC_GETPW_R_SIZE_MAX)
var buffer = [Int8](repeating: 0, count: bufferSize)
if getpwuid_r(uid, &passwdInfo, &buffer, bufferSize, &result) == 0,
result != nil {
username = String(cString: passwdInfo.pw_name)
} else {
username = String(Int(uid))
}
return username
}`
latest commit: ee48c78
** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
make: *** [build] Error 65
With Swift now being open-source, this is possible, especially with the inclusion of GCD and Foundation as part of the core libs (though they are still in development). It would certainly be an interesting exercise, but would likely depend on how much interest their would be. Collecting stats for each of these platforms can be quite varied and thus a fair amount of work. Probably would want OS X support to get to a "stable" level before diving into this.
when i do the "make install" everything goes as plans and the build succeeded but there's something at then end that i don't understand;
> Check dependencies
>
> ** BUILD SUCCEEDED **
>
> mkdir -p bin
> cp build/Release/dshb bin
> strip bin/dshb
> cp bin/dshb /usr/local/bin
> cp doc/dshb.1 /usr/local/share/man/man1
> cp: /usr/local/share/man/man1: No such file or directory
> make: *** [install] Error 1
fatal error: subscript: subRange extends past String end
Illegal instruction: 4
This has happened a couple times while I've had a terminal open in the background with dshb running.
In both cases the cursor has been located at the point where fan speeds are displayed, if that helps narrow it down. Screenshot:
A continuation of #19.
It's still early, but it would be great to add it. Implies support for the open-source version of Swift. Dependencies will each need a Package.swift
file added to them. CommandLine has already done so.
SIGWINCH
[~] $ brew install dshb Warning: No available formula with the name "dshb". Did you mean dsh
Hi, There will be a version for iOS?
import Darwin.ncurses
in Xcode 7 Beta 1 no longer automatically links ncurses for you, has to be done manually. This does not seem to be intended behaviour. Apple has changed some stuff related to frameworks in Xcode 7 that has caused a known issue, which seems to be the culprit [1]. They have introduced .tbd
files, "'text-based stub libraries', that provide a much more compact version of the stub libraries for use in the SDK, and help to significantly reduce its download size." This is the format that libncurses
is listed as now, not as a .dylib
.
One workaround is to manually add libncurses.dylib
to the build phases setting in Xcode (see 5baea59).
@beltex We're having to resort to hacks in Homebrew to continue to keep the dshb
formula. Some of the other maintainers would simply like to remove it at this point. See Homebrew/homebrew-core#17493. Any chance we could get #37 merged soon?
cam$ git clone --recursive https://github.com/beltex/dshb
Cloning into 'dshb'...
remote: Counting objects: 810, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 810 (delta 106), reused 82 (delta 82), pack-reused 679
Receiving objects: 100% (810/810), 259.62 KiB | 0 bytes/s, done.
Resolving deltas: 100% (545/545), done.
Checking connectivity... done.
Submodule 'libs/CommandLine' ([email protected]:jatoben/CommandLine.git) registered for path 'libs/CommandLine'
Submodule 'libs/SMCKit' ([email protected]:beltex/SMCKit.git) registered for path 'libs/SMCKit'
Submodule 'libs/SystemKit' ([email protected]:beltex/SystemKit.git) registered for path 'libs/SystemKit'
Cloning into 'libs/CommandLine'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:jatoben/CommandLine.git' into submodule path 'libs/CommandLine' failed
Hi, Homebrew maintainer here.
El Capitan and Sierra folks are on Xcode 8 (with Swift 3 or 2.3) already so dshb
no longer builds:
==> make release
xcodebuild -configuration Release build
=== BUILD TARGET dshb OF PROJECT dshb WITH CONFIGURATION Release ===
Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
make: *** [build] Error 65
Could you please update to Swift 2.3 or 3 and cut a new release? Otherwise we'll have to move the formula to boneyard. Thanks.
top(1)
or Activity Monitor without it eitherxcodebuild
tools and the like?.dshb
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.