Apache Mesos
Classes | Namespaces | Functions
proc.hpp File Reference
#include <errno.h>
#include <signal.h>
#include <sys/types.h>
#include <fstream>
#include <list>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <stout/error.hpp>
#include <stout/foreach.hpp>
#include <stout/none.hpp>
#include <stout/numify.hpp>
#include <stout/option.hpp>
#include <stout/path.hpp>
#include <stout/strings.hpp>
#include <stout/try.hpp>
#include <stout/os/exists.hpp>
#include <stout/os/ls.hpp>
#include <stout/os/read.hpp>

Go to the source code of this file.

Classes

struct  proc::ProcessStatus
 
struct  proc::SystemStatus
 
struct  proc::CPU
 

Namespaces

 proc
 

Functions

Result< ProcessStatus > proc::status (pid_t pid)
 
Result< std::string > proc::cmdline (const Option< pid_t > &pid=None())
 
Try< std::set< pid_t > > proc::pids ()
 
Try< std::set< pid_t > > proc::threads (pid_t pid)
 
Try< SystemStatus > proc::status ()
 
bool proc::operator== (const CPU &lhs, const CPU &rhs)
 
bool proc::operator< (const CPU &lhs, const CPU &rhs)
 
std::ostream & proc::operator<< (std::ostream &stream, const CPU &cpu)
 
Try< std::list< CPU > > proc::cpus ()