15 #ifndef IMPALA_UTIL_PROCESS_STATE_INFO_H
16 #define IMPALA_UTIL_PROCESS_STATE_INFO_H
21 #include <boost/cstdint.hpp>
88 int GetInt(
const string& state_key)
const;
89 int64_t
GetInt64(
const string& state_key)
const;
90 string GetString(
const string& state_key)
const;
93 int64_t
GetBytes(
const string& state_key)
const;
void ReadProcFileDescriptorInfo()
Read file descriptors belong the process from /proc/<pid>/fd.
map< string, string > ProcessStateMap
FileDescriptorMap fd_desc_
int64_t GetBytes(const string &state_key) const
Original data's unit is B or KB.
void ReadProcIO()
Read I/O info from /proc/<pid>/io.
void ReadProcCgroup()
Read cgroup info from /proc/<pid>/cgroup.
int GetInt(const string &state_key) const
string GetString(const string &state_key) const
int64_t GetInt64(const string &state_key) const
ProcessStateMap process_state_map_
void ReadProcSched()
Read schedule info from /proc/<pid>/sched.
void ReadProcStatus()
Read status from /proc/<pid>/status.
map< int, string > FileDescriptorMap
The description info for each file.
string DebugString() const