mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
01216f3c3f
Also tweaked CProcessStatisticsReader a bit to simplify the API.
27 lines
500 B
C++
27 lines
500 B
C++
#pragma once
|
|
|
|
#include <AK/AKString.h>
|
|
#include <AK/HashMap.h>
|
|
|
|
struct CProcessStatistics {
|
|
pid_t pid;
|
|
unsigned nsched;
|
|
String name;
|
|
String state;
|
|
String username;
|
|
uid_t uid;
|
|
String priority;
|
|
size_t virtual_size;
|
|
size_t physical_size;
|
|
unsigned syscalls;
|
|
};
|
|
|
|
class CProcessStatisticsReader {
|
|
public:
|
|
static HashMap<pid_t, CProcessStatistics> get_all();
|
|
|
|
private:
|
|
static String username_from_uid(uid_t);
|
|
static HashMap<uid_t, String> s_usernames;
|
|
};
|