Go to the documentation of this file.
42 #include "params/MemFootprintProbe.hh"
48 totalCacheLinesInMem(
p->
system->memSize() /
p->
system->cacheLineSize()),
49 totalPagesInMem(
p->
system->memSize() /
p->page_size),
57 "MemFootprintProbe expects cache line size is power of 2.");
59 "MemFootprintProbe expects page size parameter is power of 2");
67 using namespace Stats;
70 .
desc(
"Memory footprint at cache line granularity")
73 .
desc(
"Total memory footprint at cache line granularity since "
77 .
desc(
"Memory footprint at page granularity")
80 .
desc(
"Total memory footprint at page granularity since simulation "
92 assert(set->size() <=
limit);
125 MemFootprintProbeParams::create()
virtual void regStats()
Callback to set stat parameters.
std::enable_if< std::is_integral< T >::value, int >::type floorLog2(T x)
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
void registerResetCallback(const std::function< void()> &callback)
Register a callback that should be called whenever statistics are reset.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
const FlagsType nozero
Don't print if this is zero.
virtual const std::string name() const
BitfieldType< SegDescriptorLimit > limit
unsigned int cacheLineSize() const
Get the cache line size of the system.
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
bool isPowerOf2(const T &n)
A struct to hold on to the essential fields from a packet, so that the packet and underlying request ...
bool isMemAddr(Addr addr) const
Check if a physical address is within a range of a memory that is part of the global address map.
const FlagsType nonan
Don't print if this is NAN.
Base class for memory system probes accepting Packet instances.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17