mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
CProcessStatisticsReader: Be consistent about terminology from the kernel down
This commit is contained in:
committed by
Andreas Kling
parent
9724d540b6
commit
a9d1a86e6e
Notes:
sideshowbarker
2024-07-19 13:11:53 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/a9d1a86e6ed Pull-request: https://github.com/SerenityOS/serenity/pull/331 Reviewed-by: https://github.com/awesomekling ✅
@@ -4,16 +4,28 @@
|
||||
#include <AK/HashMap.h>
|
||||
|
||||
struct CProcessStatistics {
|
||||
// Keep this in sync with /proc/all.
|
||||
// From the kernel side:
|
||||
pid_t pid;
|
||||
unsigned nsched;
|
||||
String name;
|
||||
String state;
|
||||
String username;
|
||||
unsigned times_scheduled;
|
||||
unsigned pgid;
|
||||
unsigned sid;
|
||||
uid_t uid;
|
||||
gid_t gid;
|
||||
String state;
|
||||
pid_t ppid;
|
||||
unsigned nfds;
|
||||
String name;
|
||||
String tty;
|
||||
size_t amount_virtual;
|
||||
size_t amount_resident;
|
||||
size_t amount_shared;
|
||||
unsigned ticks;
|
||||
String priority;
|
||||
size_t virtual_size;
|
||||
size_t physical_size;
|
||||
unsigned syscalls;
|
||||
unsigned syscall_count;
|
||||
|
||||
// synthetic
|
||||
String username;
|
||||
};
|
||||
|
||||
class CProcessStatisticsReader {
|
||||
|
||||
Reference in New Issue
Block a user