Giter VIP home page Giter VIP logo

Comments (8)

elvetemedve avatar elvetemedve commented on August 17, 2024

I changed the code which produces the process list to use GlibTop and I also added an option to filter out system processes. I expected kernel module processes to disappear, but it might be removed other processes too. I'll look into this.

Actually the extension has an error in the design. You will see the statistics for the previous refresh. That's because statistics has to be re-calculated asynchronously in the background, otherwise you will experience a lag in Gnome Shell at each refresh period (e.g. mouse pointer stops every 2 seconds). Unfortunately there is no way to create threads from an extension, so I had to use the glib.idle_add() function to schedule statistics calculation in the background. Sometimes I still see the lag, but I don't understand why.
I'll think about other solutions.

from gnome-shell-extension-system-monitor.

bagage avatar bagage commented on August 17, 2024

I don't think the delay is much of an issue, because I don't expect the extension to be real-time. I would just expect it to give me a rough idea of what is going on - which it does well (except the missing processes).

It looks to me that processes started from the terminal (eg not from .desktop entries) are not listed? It might be the issue I see since I'm starting geary from the commandline.

from gnome-shell-extension-system-monitor.

elvetemedve avatar elvetemedve commented on August 17, 2024

Alright. But if someone changes the refresh period to 10 seconds, it would mean a 10 seconds delay which is not so good.

Thanks for the info, I'll check it.

from gnome-shell-extension-system-monitor.

elvetemedve avatar elvetemedve commented on August 17, 2024

@bagage I've found and fixed the problem with the process list.

Could you test it for me, please?
Here is the fixed version: [email protected]

from gnome-shell-extension-system-monitor.

bagage avatar bagage commented on August 17, 2024

Yes, it works great. Again, thanks for the quick fix :).

from gnome-shell-extension-system-monitor.

elvetemedve avatar elvetemedve commented on August 17, 2024

I'm glad to see that. :)
New release is on the way.

from gnome-shell-extension-system-monitor.

bagage avatar bagage commented on August 17, 2024

Just on a side note: what does 1% of CPU usage means for the extension? It seems that htop and top have "100%" available for each CPU core. So in my case I can have up to 400% for a single process.
I believe the extension 100% is the equivalent of the above 400%, right? If not, I am seeing odd values:

http://webm.land/media/1q7r.webm

from gnome-shell-extension-system-monitor.

elvetemedve avatar elvetemedve commented on August 17, 2024

@bagage Yes, 100% means all available CPU cores are utilised (equivalent to htop's 400%).
The percentage is computed using the time values from the first line of /proc/stat.

from gnome-shell-extension-system-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.