gem5  v20.1.0.0
Namespaces | Macros | Functions
stats.cc File Reference
#include "config/use_hdf5.hh"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "base/statistics.hh"
#include "base/stats/text.hh"
#include "sim/stat_control.hh"
#include "sim/stat_register.hh"

Go to the source code of this file.

Namespaces

 Stats
 

Macros

#define TRY_CAST(T)
 

Functions

static const py::object cast_stat_info (const Stats::Info *info)
 
void Stats::pythonDump ()
 
void Stats::pythonReset ()
 
void pybind_init_stats (py::module &m_native)
 

Macro Definition Documentation

◆ TRY_CAST

#define TRY_CAST (   T)
Value:
do { \
auto _stat = dynamic_cast<const T *>(info); \
if (_stat) \
return py::cast(_stat); \
} while (0)

Function Documentation

◆ cast_stat_info()

static const py::object cast_stat_info ( const Stats::Info info)
static

Definition at line 58 of file stats.cc.

References TRY_CAST.

Referenced by pybind_init_stats().

◆ pybind_init_stats()

void pybind_init_stats ( py::module &  m_native)

Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17