|
gem5 [DEVELOP-FOR-25.0]
|
#include <hdf5.hh>
Public Member Functions | |
| Hdf5 (const std::string &file, unsigned chunking, bool desc, bool formulas) | |
| ~Hdf5 () | |
| Hdf5 ()=delete | |
| Hdf5 (const Hdf5 &other)=delete | |
| void | begin () override |
| void | end () override |
| bool | valid () const override |
| void | beginGroup (const char *name) override |
| void | endGroup () override |
| void | visit (const ScalarInfo &info) override |
| void | visit (const VectorInfo &info) override |
| void | visit (const DistInfo &info) override |
| void | visit (const VectorDistInfo &info) override |
| void | visit (const Vector2dInfo &info) override |
| void | visit (const FormulaInfo &info) override |
| void | visit (const SparseHistInfo &info) override |
Public Member Functions inherited from gem5::statistics::Output | |
| virtual | ~Output () |
Protected Member Functions | |
| H5::DataSet | appendVectorInfo (const VectorInfo &info) |
| Helper function to append vector stats and set their metadata. | |
| H5::DataSet | appendStat (const Info &info, int rank, hsize_t *dims, const double *data) |
| Helper function to append an n-dimensional double stat to the file. | |
| void | addMetaData (H5::DataSet &loc, const char *name, const std::vector< const char * > &values) |
| Helper function to add a string vector attribute to a stat. | |
| void | addMetaData (H5::DataSet &loc, const char *name, const std::vector< std::string > &values) |
| Helper function to add a string vector attribute to a stat. | |
| void | addMetaData (H5::DataSet &loc, const char *name, const std::string &value) |
| Helper function to add a string attribute to a stat. | |
| void | addMetaData (H5::DataSet &loc, const char *name, double value) |
| Helper function to add a double attribute to a stat. | |
Protected Attributes | |
| const std::string | fname |
| const hsize_t | timeChunk |
| const bool | enableDescriptions |
| const bool | enableFormula |
| std::stack< H5::Group > | path |
| unsigned | dumpCount |
| H5::H5File | h5File |
| gem5::statistics::Hdf5::Hdf5 | ( | const std::string & | file, |
| unsigned | chunking, | ||
| bool | desc, | ||
| bool | formulas ) |
Definition at line 65 of file hdf5.cc.
References dumpCount, enableDescriptions, enableFormula, fname, and timeChunk.
Referenced by Hdf5().
|
delete |
|
protected |
Helper function to add a string attribute to a stat.
| loc | Parent location in the file. |
| name | Attribute name. |
| value | Attribute value. |
Definition at line 309 of file hdf5.cc.
References name(), and gem5::X86ISA::type.
|
protected |
Helper function to add a string vector attribute to a stat.
| loc | Parent location in the file. |
| name | Attribute name. |
| values | Attribute value. |
Definition at line 287 of file hdf5.cc.
References name(), and gem5::X86ISA::type.
Referenced by addMetaData(), appendStat(), appendVectorInfo(), visit(), and visit().
|
protected |
Helper function to add a string vector attribute to a stat.
| loc | Parent location in the file. |
| name | Attribute name. |
| values | Attribute value. |
Definition at line 298 of file hdf5.cc.
References addMetaData(), gem5::ArmISA::i, and name().
|
protected |
|
protected |
Helper function to append an n-dimensional double stat to the file.
This helper function assumes that all stats include a time component. I.e., a Stat::Scalar is a 1-dimensional stat.
| info | Stat info structure. |
| rank | Stat dimensionality (including time). |
| dims | Size of each of the dimensions. |
Definition at line 223 of file hdf5.cc.
References addMetaData(), data, gem5::statistics::Info::desc, DPRINTF, dumpCount, gem5::ArmISA::e, enableDescriptions, gem5::ArmISA::err, gem5::statistics::Info::name, path, and timeChunk.
Referenced by appendVectorInfo(), visit(), and visit().
|
protected |
Helper function to append vector stats and set their metadata.
Definition at line 202 of file hdf5.cc.
References addMetaData(), appendStat(), dumpCount, gem5::emptyStrings(), gem5::statistics::VectorInfo::result(), gem5::statistics::VectorInfo::subdescs, and gem5::statistics::VectorInfo::subnames.
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 107 of file hdf5.cc.
References gem5::RiscvISA::base, gem5::ArmISA::e, name(), and path.
|
overridevirtual |
Implements gem5::statistics::Output.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 184 of file hdf5.cc.
References addMetaData(), appendVectorInfo(), dumpCount, enableFormula, and gem5::statistics::FormulaInfo::str().
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 133 of file hdf5.cc.
References appendStat(), data, and gem5::statistics::ScalarInfo::result().
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 163 of file hdf5.cc.
References addMetaData(), appendStat(), gem5::statistics::Vector2dInfo::cvec, dumpCount, gem5::emptyStrings(), gem5::statistics::Vector2dInfo::subdescs, gem5::statistics::Vector2dInfo::subnames, gem5::statistics::Vector2dInfo::x, gem5::statistics::Vector2dInfo::y, and gem5::statistics::Vector2dInfo::y_subnames.
|
overridevirtual |
|
overridevirtual |
Implements gem5::statistics::Output.
Definition at line 145 of file hdf5.cc.
References appendVectorInfo().
|
protected |
Definition at line 152 of file hdf5.hh.
Referenced by appendStat(), appendVectorInfo(), begin(), end(), Hdf5(), visit(), and visit().
|
protected |
Definition at line 147 of file hdf5.hh.
Referenced by appendStat(), and Hdf5().
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 150 of file hdf5.hh.
Referenced by appendStat(), begin(), beginGroup(), and endGroup().
|
protected |
Definition at line 146 of file hdf5.hh.
Referenced by appendStat(), and Hdf5().