gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 - Pranith Kumar Copyright (c) 2020 Inria 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)

Referenced by gem5::cast_stat_info().


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