#pragma once #include #include struct CProcessStatistics { pid_t pid; unsigned nsched; String name; String state; String username; uid_t uid; String priority; size_t linear; size_t physical; unsigned syscalls; }; class CProcessStatisticsReader { public: CProcessStatisticsReader(); HashMap get_map(); private: void update_map(HashMap& map); String get_username_from_uid(const uid_t uid); HashMap m_usernames; };