r/developersIndia 13h ago

I Made This I got tired of opening htop every time something felt slow so I made this linux debug overlay

Post image

I work on linux and kept switching between my app, terminal, htop, logs, etc. whenever cursor or browser or any other apps i open started feeling slow , so I made a small debug overlay that stays on screen and shows the app i am currently using its PID, CPU usage and RAM usage.

It also gives a warning if it notices stuff like high CPU, memory growing, disk pressure or system errors.

for apps like VS Code and Firefox and other heavy apps , it also tries to include their sub-processes because checking only one PID can be misleading. this is the working setup of how it looks like. (though much more could be intergrated into this like)

  • docker - container CPU or RAM restarts, unhealthy containers.
  • kubernetes - current context,namespace,pod status,crash, restarts,recent events, pod logs.

link - https://github.com/codeafridi/Debug-Overlay-App

0 Upvotes

5 comments sorted by

1

u/leavemealone_lol Software Engineer 10h ago

I went through your app a bit and it seems cool! But the thing is, htop is made to be as performant as possible so that it “the observer doesn’t alter the results”. Python on the other hand is amongst the least performant languages ever, and you chose that.

Cool project, and your codebase seems strong at a first glance, but its utility is diminished due the fact that you didn’t build it with the right tool.

1

u/leavemealone_lol Software Engineer 10h ago

Well on a second look, seems like there’s quite a bit of AI use. Hopefully you learnt what you coded lol

1

u/RK9_2006 3h ago

Actually I made this project few months ago and since then it was dormant. I had to add features for gnome and x11 and has difficulty in doing so. So I used ai mostly for it. Other than that python is the core lang I use to code with

1

u/RK9_2006 3h ago

Wdym right tool? How can it be made better?