Skip to content

lutischan-ferenc/resource-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU and Memory Monitor

This repository contains two system tray applications written in Go:

  • CPU Monitor: Displays CPU usage per core and updates a bar chart icon in the system tray.

    CPU monitor systray icon with CPU usage:

    CPU tooltip

    CPU monitor systray icon with menu:

CPU menu

  • Memory Monitor: Displays memory usage statistics and updates a pie chart icon in the system tray.

    Mem monitor systray icon with Mem usage:

    Memory tooltip

    Mem monitor systray icon with details menu:

    Mem menu

Prerequisites

Before compiling and running the applications, install the required dependencies:

# Install Go modules
go mod tidy

Build and Run

macOS

To build and run the applications on macOS:

# Build CPU Monitor
go build -o cpu-monitor ./cmd/cpu-monitor
./cpu-monitor

# Build Memory Monitor
go build -o mem-monitor ./cmd/mem-monitor
./mem-monitor

Windows

To build and run the applications on Windows:

# Build CPU Monitor
go build -ldflags "-s -w -H windowsgui" -o cpu-monitor.exe ./cmd/cpu-monitor
cpu-monitor.exe

# Build Memory Monitor
go build -ldflags "-s -w -H windowsgui" -o mem-monitor.exe ./cmd/mem-monitor
mem-monitor.exe

Dependencies

The following Go modules are used:

  • github.com/Kodeworks/golang-image-ico: ICO image encoding for system tray icons.
  • github.com/getlantern/systray: System tray interface for cross-platform support.
  • github.com/shirou/gopsutil: Fetch system statistics such as CPU and memory usage.

Features

  • Displays live CPU core usage in the system tray.
  • Displays memory usage statistics in the system tray.
  • Updates system tray icons dynamically to reflect real-time usage.
  • Provides an exit option to close the application.

License

This project is open-source and available under the MIT License.

About

Multi platform actual CPU per cores and MEM monitor on systray (Windows, MacOS, Linux)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages