summaryrefslogtreecommitdiff
path: root/Userland/Utilities/ps.cpp
AgeCommit message (Collapse)Author
2022-12-10LibCore: Use `Core::Stream` for `ProcessStatisticsReader`Tim Schumacher
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-10-25Utilities: Use new global variables at /sys/kernel/ directoryLiav A
2022-04-02Userland: Fix crash when inputting non-tty device into psThomas Symalla
This PR aims to fix #13299 by avoiding assertion failure while trying to determine the pseudo tty when inputting any non-tty device device into ps.
2022-03-26Utilities/ps: Don't assume the kernel can provide real TTY pathsLiav A
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-23ps: Port to LibMain :^)Andreas Kling
2021-10-17Utilities: Show PGID and SID in ps -fPeter Elliott
2021-08-28ps: Sort using input order in case of `-q`Mahmoud Mandour
Now the output of `ps -q <list>` is sorted according to the order the user specified.
2021-08-28ps: Select specific processes by their PIDsMahmoud Mandour
This adds a `-q` option, which expects a comma-separated list of PIDs as a value. On using it, only the processes associated with the supplied PIDs are output.
2021-07-18Everywhere: Improve CPU usage calculationTom
As threads come and go, we can't simply account for how many time slices the threads at any given point may have been using. We need to also account for threads that have since disappeared. This means we also need to track how many time slices we have expired globally. However, because this doesn't account for context switches outside of the system timer tick values may still be under-reported. To solve this we will need to track more accurate time information on each context switch. This also fixes top's cpu usage calculation which was still based on the number of context switches. Fixes #6473
2021-06-03Utilities: Make sure columns for ps are properly alignedGunnar Beutner
This updates ps so that it calculates the ideal column width instead of relying on hard-coded values. Previously the STATE column was too small to fit the state for "FinalizerTask".
2021-06-01Userland: Replace most printf-style APIs with AK::Format APIs :^)Linus Groh
2021-05-31Userland: Remove a bunch of unused includesLinus Groh
As reported by CLion.
2021-05-23ps: Sort output by PID :^)Andreas Kling
2021-05-23LibCore: Make ProcessStatisticsReader return results in a VectorAndreas Kling
The HashMap API was overkill and made using this less ergonomic than it should be.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling