mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
This commit is contained in:
parent
63814ffebf
commit
04b9dc2d30
328 changed files with 36 additions and 36 deletions
29
Libraries/LibCore/CProcessStatisticsReader.h
Normal file
29
Libraries/LibCore/CProcessStatisticsReader.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#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:
|
||||
CProcessStatisticsReader();
|
||||
HashMap<pid_t, CProcessStatistics> get_map();
|
||||
|
||||
private:
|
||||
void update_map(HashMap<pid_t, CProcessStatistics>& map);
|
||||
String get_username_from_uid(const uid_t uid);
|
||||
|
||||
HashMap<uid_t, String> m_usernames;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue