Unless I’m using the wrong terms in my search it really seems like there’s no tool for Linux that can tell me what processes used the most CPU (typically this has a high correlation with energy usage) in the last hour or 24 hours.

Basically I want something like the Android battery usage app but for Linux.

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    ·
    8 days ago

    i must be missing something about your question because this has been a thing for a while in the linux world.

    the most recent version i can recall is using prometheus’ node-exporter and a graphite based web user interface that can show power usage graph similar to the android battery usage ap.

      • eldavi@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        nice find; it’s not exactly the way i’ve done it in the past; but the part of prometheus seems solid. and in case you didn’t know, you don’t have to use prometheus, any sort of monitoring system will work. zabbix is more all-in-one including a dashboard and also capable of doing this and you can use a nagios/icinga w grafana combo if prometheus is too odd for you.

        in your shoes and i wanted a per process based graph; i would modify node-exporter to pick up additional data from something like a text file and along with custom persistent shell script can write the process names & data to that file.

        then i would configure graphite/grafana, to render each graph based on each process. (i only have experience doing this on grafana; so i don’t know if better stack it’s capable of doing this, but i would be surprised if it can’t).

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    The top command will tell you what each process is using in terms of CPU and memory. You can log this to a database and analyse it as required.

    I’d be surprised if the Android battery application was anything different.

  • ZeroHora@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 days ago

    The new KDE 6.3.0 info center have this as a feature or I understand it wrong? Couldn’t test it yet.

  • TxTechnician@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    I know that the system monitor app that’s included in KDE has a pretty extensive custom page tracking option.

    You can open it up and then put in a whole bunch of like settings in a new page and track pretty much every metric that your computer has.

  • penquin@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    8 days ago

    Any system monitor app (and basically every DE has one) will show you the cpu usage. Check out Mission Center . It’s almost a carbon copy of windows’ task manager.