BloombergLP::balb::PerformanceMonitor_LinuxProcStatistics::readProcStatString

For the specified process id pid, load the contents of the file /proc/<pid>/stat into the specified buffer. Return 0 on success and a non-zero value otherwise.

Synopsis

Declared in <balb_performancemonitor.h>

static
int
readProcStatString(
    bsl::string* buffer,
    int pid);