This is a simple system activity monitor written in c++.
This project aims to :
- Build a system monitor for Linux like htop using C++ with ncurses library.
- Bonus: OS, Kernel, Total Processes and Uptime, Unit Testing with gtest framework.
This project needs the following dependencies:
- Linux based OS with Linux >= 2.6
- cmake >= 3.11.3
- make >= 4.1
- gcc/g++ >= 7.4.0
- ncurses
- (https://ostechnix.com/how-to-install-ncurses-library-in-linux/) is a library that facilitates text-based graphical output in the terminal.
- Use
sudo apt install libncurses5-dev libncursesw5-dev
to install ncurses (For Ubuntu or Debian-based systems)
- gtest framework is Google's C++ testing and mocking framework.
- sudo apt-get install libgtest-dev (For Ubuntu or Debian-based systems)
- Visit the Google Test GitHub repository (https://github.com/google/googletest) and download the source code either by cloning the repository or downloading a release tarball
- Clone this repository.
- Install dependencies.
- To run the tests, delete the file CMakeCache.txt in "System-Activity-Monitor/Test/build".
- At System-Activity-Monitor/Test/build, run the command
cmake ..
, thenmake
, then./test
- At System-Activity-Monitor/Test/build, run the command
- To run the system monitor, delete the file CMakeCache.txt in "System-Activity-Monitor/".
- At System-Activity-Monitor/, run the command
cmake .
, thenmake
, then./monitor
- At System-Activity-Monitor/, run the command