Commit Graph

109 Commits

Author SHA1 Message Date
c6b8c9c905 patch for macbook compatibility issues. 2025-08-15 19:21:34 -07:00
f980b6ace9
Update README.md 2025-08-13 20:17:36 -07:00
6a27280f8d Merge branch 'master' of https://github.com/jasonwitty/socktop
Some checks failed
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
2025-08-12 17:12:38 -07:00
38b0cdcf0e update screenshot 2025-08-12 17:12:27 -07:00
268627ed63
Update README.md 2025-08-12 17:10:12 -07:00
55a663cf7a
Update README.md 2025-08-12 17:09:31 -07:00
8b76ccb742 Merge branch 'master' of https://github.com/jasonwitty/socktop 2025-08-12 17:07:36 -07:00
d0f6cb0e70 fix screenshot 2025-08-12 17:07:25 -07:00
56ebe6bbab
Rename tmux_4_rpis_v2jpg to tmux_4_rpis_v2.jpg 2025-08-12 17:05:40 -07:00
dc90de7ff1 update readme and add new screenshots 2025-08-12 17:02:01 -07:00
319f47eb73 Update README.md 2025-08-12 16:48:35 -07:00
fd2889ccca Update cargo versions in prep for publish. 2025-08-12 16:12:08 -07:00
0859f50897 multiple feature and performance improvements (see description)
Here are concise release notes you can paste into your GitHub release.

Release notes — 2025-08-12

Highlights

Agent back to near-zero CPU when idle (request-driven, no background samplers).
Accurate per-process CPU% via /proc deltas; only top-level processes (threads hidden).
TUI: processes pane gets scrollbar, click-to-sort (CPU% or Mem) with indicator, stable total count.
Network panes made taller; disks slightly reduced.
README revamped: rustup prereqs, crates.io install, update/systemd instructions.
Clippy cleanups across agent and client.
Agent

Reverted precompressed caches and background samplers; WebSocket path is request-driven again.
Ensured on-demand gzip for larger replies; no per-request overhead when small.
Processes: switched to refresh_processes_specifics with ProcessRefreshKind::everything().without_tasks() to exclude threads.
Per-process CPU% now computed from /proc jiffies deltas using a small ProcCpuTracker (fixes “always 0%”/scaling issues).
Optional metrics and light caching:
CPU temp and GPU metrics gated by env (SOCKTOP_AGENT_TEMP=0, SOCKTOP_AGENT_GPU=0).
Tiny TTL caches via once_cell to avoid rescanning sensors every tick.
Dependencies: added once_cell = "1.19".
No API changes to WS endpoints.
Client (TUI)

Processes pane:
Scrollbar (mouse wheel, drag; keyboard arrows/PageUp/PageDown/Home/End).
Click header to sort by CPU% or Mem; dot indicator on active column.
Preserves process_count across fast metrics updates to avoid flicker.
UI/theme:
Shared scrollbar colors moved to ui/theme.rs; both CPU and Processes reuse them.
Cached pane rect to fix input handling; removed unused vars.
Layout: network download/upload get more vertical space; disks shrink slightly.
Clippy fixes: derive Default for ProcSortBy; style/import cleanups.
Docs

README: added rustup install steps (with proper shell reload), install via cargo install socktop and cargo install socktop_agent, and a clear Updating section (systemd service steps included).
Features list updated; roadmap marks independent cadences as done.
Upgrade notes

Agent: cargo install socktop_agent --force, then restart your systemd service; if unit changed, systemctl daemon-reload.
TUI: cargo install socktop --force.
Optional envs to trim overhead: SOCKTOP_AGENT_GPU=0, SOCKTOP_AGENT_TEMP=0.
No config or API breaking changes.
2025-08-12 15:52:46 -07:00
5c002f0b2b Update README.md 2025-08-12 00:01:21 -07:00
5a824c2098 only run apt command if build box is linux 2025-08-11 23:49:45 -07:00
ffb381e40e install deps libdrm-dev libdrm-amdgpu1 on build box 2025-08-11 23:46:08 -07:00
0a70d7fd39 rustfmt 2025-08-11 23:41:23 -07:00
8d81ee1f7e clippy clean ups 2025-08-11 23:37:50 -07:00
1e248306a6 clippy clean up multiple files 2025-08-11 23:27:18 -07:00
7cd6a6e0a1 gpu clippy cleanup 2025-08-11 23:08:35 -07:00
8f58feffbe clippy clean up app.rs 2025-08-11 22:59:36 -07:00
5790ef753b clippy cleanup 2025-08-11 22:56:35 -07:00
9a49fd6b24 clippy cleanup main 2025-08-11 22:50:15 -07:00
b35e431200 clippy clean up 2025-08-11 22:46:58 -07:00
4b52382326 another clippy cleanup 2025-08-11 22:45:24 -07:00
11506699e3 clippy clean up 2025-08-11 22:44:43 -07:00
4c6c707dd0 struct cleanup 2025-08-11 22:41:12 -07:00
d69a4104fc performance improvements and formatting cleanup 2025-08-11 22:37:46 -07:00
c3f81eef25 clippy code clean up
clippy code clean up
2025-08-11 20:47:21 -07:00
05276f9eea fix clippy issues causing workflow failure. 2025-08-11 14:39:19 -07:00
0105b29bfc fix additional clippy warnings. 2025-08-11 14:34:45 -07:00
0cbba6b290 fix clippy format warnings 2025-08-11 14:30:41 -07:00
250f7bf93a remove unused vendor field. 2025-08-11 14:25:58 -07:00
4efeb3b60f update screenshots 2025-08-11 14:17:04 -07:00
d20061614c update default screenshot 2025-08-11 13:47:23 -07:00
289c9f7ebe add cargo install documentation and enable release artifacts in actions
add cargo install documentation and enable release artifacts in actions
2025-08-11 13:38:26 -07:00
bdfa74be54 add license for socktop_agent 2025-08-11 12:10:40 -07:00
6efdc35b19 add license so we can publish to cargo 2025-08-11 12:09:14 -07:00
20278d67f1 new feature: gpu support 2025-08-11 12:04:55 -07:00
a4f69a5f7d Add scrollbar to CPU per core area. 2025-08-10 23:32:44 -07:00
9b1643afac add screenshot and information abotu running as service. 2025-08-09 22:40:44 -07:00
a9086eac84 Create 14900KS_arch_alacritty.jpg 2025-08-08 21:27:27 -07:00
4bd6744df4 fix clippy command 2025-08-08 17:33:30 -07:00
274a485f8d fmt: apply rustfmt 2025-08-08 17:25:15 -07:00
747aef0005 Merge branch 'master' of https://github.com/jasonwitty/socktop 2025-08-08 16:51:22 -07:00
a0e17c6e22 fix build warning and add ghostty screenshot 2025-08-08 16:46:46 -07:00
19973c24d8
Update README.md 2025-08-08 14:15:28 -07:00
9a4c8b703e
Update README.md 2025-08-08 13:24:32 -07:00
968a25eaf1
Update README.md 2025-08-08 13:22:57 -07:00
13fb22c7ee add rustup installer line for lazy people 2025-08-08 13:14:33 -07:00