gem5 v24.0.0.0
Loading...
Searching...
No Matches
units.hh File Reference
#include <type_traits>
#include "base/compiler.hh"
#include "base/cprintf.hh"

Go to the source code of this file.

Classes

class  gem5::statistics::units::Base
 The Base class is the parent class of all unit classes. More...
 
class  gem5::statistics::units::Cycle
 
class  gem5::statistics::units::Tick
 
class  gem5::statistics::units::Second
 
class  gem5::statistics::units::Bit
 
class  gem5::statistics::units::Byte
 
class  gem5::statistics::units::Watt
 
class  gem5::statistics::units::Joule
 
class  gem5::statistics::units::Volt
 
class  gem5::statistics::units::DegreeCelsius
 
class  gem5::statistics::units::Count
 
class  gem5::statistics::units::Ratio
 
class  gem5::statistics::units::Unspecified
 
class  gem5::statistics::units::Rate< T1, T2 >
 

Namespaces

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

Macros

#define UNIT_CYCLE
 Convenience macros to declare the unit of a stat.
 
#define UNIT_TICK
 
#define UNIT_SECOND
 
#define UNIT_BIT
 
#define UNIT_BYTE
 
#define UNIT_JOULE
 
#define UNIT_VOLT
 
#define UNIT_CELSIUS
 
#define UNIT_RATE(T1, T2)
 
#define UNIT_RATIO
 
#define UNIT_COUNT
 
#define UNIT_WATT
 
#define UNIT_UNSPECIFIED
 

Macro Definition Documentation

◆ UNIT_BIT

#define UNIT_BIT
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_BIT, statistics::units::Bit::get(), "Use statistics::units::Bit::get()")
#define UNIT_BIT
Definition units.hh:51

Definition at line 51 of file units.hh.

◆ UNIT_BYTE

#define UNIT_BYTE
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_BYTE, statistics::units::Byte::get(), "Use statistics::units::Byte::get()")
#define UNIT_BYTE
Definition units.hh:53

Definition at line 53 of file units.hh.

◆ UNIT_CELSIUS

#define UNIT_CELSIUS
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_CELSIUS, statistics::units::DegreeCelsius::get(), \
"Use statistics::units::DegreeCelsius::get()")
#define UNIT_CELSIUS
Definition units.hh:60

Definition at line 60 of file units.hh.

◆ UNIT_COUNT

#define UNIT_COUNT
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_COUNT, statistics::units::Count::get(), \
"Use statistics::units::Count::get()")
#define UNIT_COUNT
Definition units.hh:69

Definition at line 69 of file units.hh.

◆ UNIT_CYCLE

#define UNIT_CYCLE
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_CYCLE, statistics::units::Cycle::get(), \
"Use statistics::units::Cycle::get()")
#define UNIT_CYCLE
Convenience macros to declare the unit of a stat.
Definition units.hh:43

Convenience macros to declare the unit of a stat.

Definition at line 43 of file units.hh.

◆ UNIT_JOULE

#define UNIT_JOULE
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_JOULE, statistics::units::Joule::get(), \
"Use statistics::units::Joule::get()")
#define UNIT_JOULE
Definition units.hh:55

Definition at line 55 of file units.hh.

◆ UNIT_RATE

#define UNIT_RATE ( T1,
T2 )
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_RATE, (statistics::units::Rate<T1, T2>::get()), \
"Use statistics::units::Rate<T1, T2>::get()")
#define UNIT_RATE(T1, T2)
Definition units.hh:63

Definition at line 63 of file units.hh.

◆ UNIT_RATIO

#define UNIT_RATIO
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_RATIO, statistics::units::Ratio::get(), \
"Use statistics::units::Ratio::get()")
#define UNIT_RATIO
Definition units.hh:66

Definition at line 66 of file units.hh.

◆ UNIT_SECOND

#define UNIT_SECOND
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_SECOND, statistics::units::Second::get(), \
"Use statistics::units::Second::get()")
#define UNIT_SECOND
Definition units.hh:48

Definition at line 48 of file units.hh.

◆ UNIT_TICK

#define UNIT_TICK
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_TICK, statistics::units::Tick::get(), "Use statistics::units::Tick::get()")
#define UNIT_TICK
Definition units.hh:46

Definition at line 46 of file units.hh.

◆ UNIT_UNSPECIFIED

#define UNIT_UNSPECIFIED
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_UNSPECIFIED, statistics::units::Unspecified::get(), \
"Use statistics::units::Unspecified::get()")
#define UNIT_UNSPECIFIED
Definition units.hh:74

Definition at line 74 of file units.hh.

◆ UNIT_VOLT

#define UNIT_VOLT
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_VOLD, statistics::units::Volt::get(), "Use statistics::units::Volt::get()")

Definition at line 58 of file units.hh.

◆ UNIT_WATT

#define UNIT_WATT
Value:
GEM5_DEPRECATED_MACRO( \
UNIT_WATT, statistics::units::Watt::get(), "Use statistics::units::Watt::get()")
#define UNIT_WATT
Definition units.hh:72

Definition at line 72 of file units.hh.


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