gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
hostinfo.cc File Reference
#include "base/hostinfo.hh"
#include <cstdio>
#include "base/logging.hh"
#include "base/str.hh"

Go to the source code of this file.

Functions

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

Function Documentation

◆ memUsage()

uint64_t memUsage ( )

Determine the simulator process' total virtual memory usage.

Returns
Virtual memory usage in kilobytes

Definition at line 73 of file hostinfo.cc.

References procInfo().

Referenced by Root::RootStats::RootStats().

◆ procInfo()

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

Definition at line 44 of file hostinfo.cc.

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

Referenced by memUsage().


Generated on Tue Jun 22 2021 15:28:33 for gem5 by doxygen 1.8.17