45 #include <sys/resource.h>
68 Rusage(
const struct rusage & rusage);
180 std::istream &
Read(std::istream & is);
185 std::ostream &
Write(std::ostream & os)
const;
225 int64_t _maxResidentSetSize;
226 int64_t _integralSharedTextMemorySize;
227 int64_t _integralUnsharedDataSize;
228 int64_t _integralUnsharedStackSize;
229 int32_t _pageReclaims;
232 int32_t _blockInputOperations;
233 int32_t _blockOutputOperations;
234 int32_t _messagesSent;
235 int32_t _messagesReceived;
236 int32_t _signalsReceived;
237 int32_t _voluntaryContextSwitches;
238 int32_t _involuntaryContextSwitches;
240 void Set(
const struct rusage & rusage);
Dwm::TimeValue class definition.
This class encapsulates struct rusage and getrusage() functionality.
Definition DwmRusage.hh:58
int32_t VoluntaryContextSwitches() const
The number of times a context switch resulted due to a process voluntarily giving up the processor be...
Rusage(const struct rusage &rusage)
Construct from a struct rusagee.
bool Get(int who)
Get the current process' rusage.
int32_t MessagesReceived() const
The number of IPC messages received.
int64_t IntegralUnsharedStackSize() const
An integral value of the amount of unshared memory residing in the stack segment of a process (expres...
int32_t InvoluntaryContextSwitches() const
The number of times a context switch resulted due to a higher priority process becoming runnable or b...
std::ostream & Write(std::ostream &os) const
Writes to an ostream. Returns the ostream.
int32_t BlockInputOperations() const
The number of times the file system had to perform input.
std::istream & Read(std::istream &is)
Reads from an istream. Returns the istream.
const TimeValue & SystemTime() const
The total amount of time spent in the system executing on behalf of the process(es).
int32_t PageReclaims() const
The number of page faults serviced without any I/O activity; here I/O activity is avoided by reclaimi...
int Write(gzFile gzf) const
Writes to a gzFile.
int64_t IntegralUnsharedDataSize() const
An integral value of the amount of unshared memory residing in the data segment of a process (express...
uint64_t StreamedLength() const
Returns the number of bytes that would be written if we called one of the Write() members.
ssize_t Read(int fd)
Reads from a file descriptor.
bool operator==(const Rusage &rusage) const
operator ==
int32_t Swaps() const
The number of times a process was `‘swapped’' out of main memory.
int32_t PageFaults() const
The number of page faults serviced that required I/O activity.
int64_t MaxResidentSetSize() const
The maximum resident set size utilized (in bytes).
friend std::ostream & operator<<(std::ostream &os, const Rusage &r)
Prints to an ostream.
int32_t MessagesSent() const
The number of IPC messages sent.
int32_t SignalsReceived() const
The number of signals delivered.
int32_t BlockOutputOperations() const
The number of times the file system had to perform output.
ssize_t Write(int fd) const
Writes to a file descriptor.
const TimeValue & UserTime() const
The total amount of time spent executing in user mode.
int Read(gzFile gzf)
Reads from a gzFile.
int64_t IntegralSharedTextMemorySize() const
An integral value indicating the amount of memory used by the text segment that was also shared among...
This class encapsulates a time value beyond the UNIX epoch, with microsecond granularity.
Definition DwmTimeValue.hh:68