Skip to content

beltex/dshb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dshb

An OS X system monitor in Swift, inspired by top & htop.

alt text

Why?

  • Exploration of Swift. In particular, systems programming and interfacing with low-level C APIs
  • Improved top
  • Improved htop (for OS X). htop was originally written for Linux. It was forked at some point and ported over to OS X. However, the port is now using what is a 5 year old fork. Work is being done to address this

Of course, the last two are far from being true! :) dshb is still early in development.

Requirements

Clone

Make sure to use the recursive option on clone to auto init all submodules.

git clone --recursive https://github.com/beltex/dshb

Incase you have already cloned the repository.

# Inside the project directory
git submodule update --init --recursive

Build

Besides building from inside of Xcode, you can compile dshb from the command line like so

make

The resulting binary will be found inside the bin/ directory. If you copy it to either /usr/bin/ (requires sudo) or /usr/local/bin/ (assuming it's in your PATH - Homebrew would have done this for you), you can then run dshb from anywhere.

Stack

All Git submodules are built part of the project as simply source files, not frameworks (which are essentially dynamic libraries). This is because currently, the Swift runtime dynamic libraries must be packaged with the application in question. In the case of dshb, a single binary is generated which has the runtime statically linked. Thus, frameworks, which expect to find the libraries inside the application bundle (.app), cannot "see" them.

For more see:

References

License

This project is under the MIT License.

P.S.

Working on this always brought a smile to my face. I hope it brings a smile to yours too. Enjoy :)