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),
58 "MemFootprintProbe expects cache line size is power of 2.");
60 "MemFootprintProbe expects page size parameter is power of 2");
65 :
Stats::Group(parent),
67 "Memory footprint at cache line granularity"),
69 "Total memory footprint at cache line granularity since "
73 "Total memory footprint at page granularity since simulation "
76 using namespace Stats;
90 assert(set->size() <=
limit);
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
void registerResetCallback(const std::function< void()> &callback)
Register a callback that should be called whenever statistics are reset.
std::vector< Info * > stats
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const FlagsType nozero
Don't print if this is zero.
std::enable_if_t< std::is_integral< T >::value, int > floorLog2(T x)
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...
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 Tue Jun 22 2021 15:28:29 for gem5 by doxygen 1.8.17