MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / parse

Method parse

KittyMemoryEx/KittyMemoryEx.hpp:166–173  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected