42#ifndef __BASE_DEBUG_HH__
43#define __BASE_DEBUG_HH__
45#include <initializer_list>
85 operator bool()
const {
return tracing(); }
122 template<
typename... Args>
124 std::initializer_list<Flag *>
flags)
171#define DTRACE(x) GEM5_DEPRECATED_MACRO(DTRACE, debug::x, \
172 "Replace DTRACE(x) with debug::x.")
static AllFlagsFlag & instance()
void add(SimpleFlag *flag)
std::vector< Flag * > _kids
CompoundFlag(const char *name, const char *desc, std::initializer_list< Flag * > flags)
const std::vector< Flag * > & kids() const
static void globalEnable()
static bool _globalEnable
static void globalDisable()
Flag(const char *name, const char *desc)
bool isFormat() const
Checks whether this flag is a conventional debug flag, or a flag that modifies the way debug informat...
SimpleFlag(const char *name, const char *desc, bool is_format=false)
const bool _isFormat
Whether this flag changes debug formatting.
std::map< std::string, Flag * > FlagsMap
bool changeFlag(const char *s, bool value)
Flag * findFlag(const std::string &name)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
void setDebugFlag(const char *string)
void clearDebugFlag(const char *string)
void dumpDebugFlags(std::ostream &os)
const std::string & name()