gem5 v25.0.0.1
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 Arm Limited 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 Sat Oct 18 2025 08:06:47 for gem5 by doxygen 1.14.0