gem5 v24.0.0.0
Loading...
Searching...
No Matches
statistics.cc File Reference
#include "base/statistics.hh"
#include <cassert>
#include <list>
#include <map>
#include <string>
#include <utility>
#include "base/callback.hh"
#include "base/logging.hh"
#include "sim/root.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 
namespace  gem5::statistics
 

Functions

std::list< Info * > & gem5::statistics::statsList ()
 
MapTypegem5::statistics::statsMap ()
 
void gem5::statistics::registerHandlers (Handler reset_handler, Handler dump_handler)
 
void gem5::statistics::processResetQueue ()
 Process all the callbacks in the reset callbacks queue.
 
void gem5::statistics::processDumpQueue ()
 Process all the callbacks in the dump callbacks queue.
 
void gem5::statistics::registerResetCallback (const std::function< void()> &callback)
 Register a callback that should be called whenever statistics are reset.
 
bool gem5::statistics::enabled ()
 
void gem5::statistics::enable ()
 
void gem5::statistics::dump ()
 Dump all statistics data to the registered outputs.
 
void gem5::statistics::reset ()
 
const Infogem5::statistics::resolve (const std::string &name)
 
void gem5::statistics::registerDumpCallback (const std::function< void()> &callback)
 Register a callback that should be called whenever statistics are about to be dumped.
 
void gem5::debugDumpStats ()
 

Variables

Handler gem5::statistics::resetHandler = NULL
 
Handler gem5::statistics::dumpHandler = NULL
 
CallbackQueue gem5::statistics::dumpQueue
 
CallbackQueue gem5::statistics::resetQueue
 
bool gem5::statistics::_enabled = false
 

Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0