gem5 v24.1.0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions
stats.cc File Reference
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "base/statistics.hh"
#include "base/stats/text.hh"
#include "config/have_hdf5.hh"
#include "sim/stat_control.hh"
#include "sim/stat_register.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 Arm Limited All rights reserved.
 
namespace  gem5::statistics
 

Macros

#define TRY_CAST(T)
 

Functions

static const py::object gem5::cast_stat_info (const statistics::Info *info)
 
void gem5::statistics::pythonDump ()
 
void gem5::statistics::pythonReset ()
 
void gem5::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)

Generated on Mon Jan 13 2025 04:28:46 for gem5 by doxygen 1.9.8