gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
hostinfo.cc File Reference
#include <unistd.h>
#include "base/hostinfo.hh"
#include <cctype>
#include <cerrno>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include "base/misc.hh"
#include "base/str.hh"
#include "base/types.hh"

Go to the source code of this file.

Functions

string __get_hostname ()
 
string & hostname ()
 
uint64_t procInfo (const char *filename, const char *target)
 
uint64_t memUsage ()
 Determine the simulator process' total virtual memory usage. More...
 

Function Documentation

string __get_hostname ( )

Definition at line 57 of file hostinfo.cc.

References warn.

Referenced by hostname().

string& hostname ( )

Definition at line 66 of file hostinfo.cc.

References __get_hostname(), and hostname().

Referenced by hostname().

uint64_t memUsage ( )

Determine the simulator process' total virtual memory usage.

Returns
virtual memory usage in kilobytes

Definition at line 101 of file hostinfo.cc.

References procInfo().

Referenced by Stats::Global::Global(), and ExitLogger::printEpilogue().

uint64_t procInfo ( const char *  filename,
const char *  target 
)

Definition at line 73 of file hostinfo.cc.

References ArmISA::format, MipsISA::fp, startswith(), and usage().

Referenced by memUsage().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6