* @brief Parses the status of a process given its PID. * * @param pid The PID of the process to parse. * @param out A pointer to the ProcStatus object where the parsed data will be stored. * @return True if parsing was successful, false otherwise. */
| 164 | * @return True if parsing was successful, false otherwise. |
| 165 | */ |
| 166 | inline static bool parse(pid_t pid, ProcStatus *out) |
| 167 | { |
| 168 | if (pid <= 0 || !out) |
| 169 | return false; |
| 170 | |
| 171 | out->_pid = pid; |
| 172 | return parse("/proc/" + std::to_string(pid) + "/status", out); |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * @brief Parses the status of a process given its PID and thread ID. |
nothing calls this directly
no outgoing calls
no test coverage detected