diff options
Diffstat (limited to 'src/python/pybind11')
-rw-r--r-- | src/python/pybind11/stats.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/python/pybind11/stats.cc b/src/python/pybind11/stats.cc index 1302c7cc5..190c78d52 100644 --- a/src/python/pybind11/stats.cc +++ b/src/python/pybind11/stats.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019 ARM Limited + * Copyright (c) 2017-2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -41,14 +41,20 @@ * Andreas Sandberg */ +#include "config/use_hdf5.hh" + #include "pybind11/pybind11.h" #include "pybind11/stl.h" #include "base/statistics.hh" #include "base/stats/text.hh" +#if USE_HDF5 +#include "base/stats/hdf5.hh" +#endif #include "sim/stat_control.hh" #include "sim/stat_register.hh" + namespace py = pybind11; namespace Stats { @@ -77,6 +83,9 @@ pybind_init_stats(py::module &m_native) m .def("initSimStats", &Stats::initSimStats) .def("initText", &Stats::initText, py::return_value_policy::reference) +#if USE_HDF5 + .def("initHDF5", &Stats::initHDF5) +#endif .def("registerPythonStatsHandlers", &Stats::registerPythonStatsHandlers) .def("schedStatEvent", &Stats::schedStatEvent) |