shawn::SystemResources Class Reference

#include <sys_resources.h>

Collaboration diagram for shawn::SystemResources:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int memory_usage_mbytes (void) const throw ()
int user_time_seconds (void) const throw ()
int system_time_seconds (void) const throw ()
int time_seconds (void) const throw ()
int wc_time_seconds (void) const throw ()

Static Public Member Functions

static const SystemResourcesinstance (void) throw ()


Member Function Documentation

static const SystemResources& shawn::SystemResources::instance ( void   )  throw () [static]

int shawn::SystemResources::memory_usage_mbytes ( void   )  const throw ()

Returns:
estimates memory footprint in megabytes, or -1 if unknown

int shawn::SystemResources::user_time_seconds ( void   )  const throw ()

Returns:
user time since application start, in seconds, or -1 if unknown

int shawn::SystemResources::system_time_seconds ( void   )  const throw ()

Returns:
kernel/system time since application start, in seconds, or -1 if unknown

int shawn::SystemResources::time_seconds ( void   )  const throw ()

int shawn::SystemResources::wc_time_seconds ( void   )  const throw ()

wall clock time since application start, in seconds, or -1 if unknown


The documentation for this class was generated from the following file:

Generated on Sun May 20 00:01:01 2012 for Shawn by  doxygen 1.5.6