#include <hdf5.hh>
|
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.
|
|
Definition at line 59 of file hdf5.hh.
◆ Hdf5() [1/3]
gem5::statistics::Hdf5::Hdf5 |
( |
const std::string & | file, |
|
|
unsigned | chunking, |
|
|
bool | desc, |
|
|
bool | formulas ) |
◆ ~Hdf5()
gem5::statistics::Hdf5::~Hdf5 |
( |
| ) |
|
◆ Hdf5() [2/3]
gem5::statistics::Hdf5::Hdf5 |
( |
| ) |
|
|
delete |
◆ Hdf5() [3/3]
gem5::statistics::Hdf5::Hdf5 |
( |
const Hdf5 & | other | ) |
|
|
delete |
◆ addMetaData() [1/4]
void gem5::statistics::Hdf5::addMetaData |
( |
H5::DataSet & | loc, |
|
|
const char * | name, |
|
|
const std::string & | value ) |
|
protected |
Helper function to add a string attribute to a stat.
- Parameters
-
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.
◆ addMetaData() [2/4]
void gem5::statistics::Hdf5::addMetaData |
( |
H5::DataSet & | loc, |
|
|
const char * | name, |
|
|
const std::vector< const char * > & | values ) |
|
protected |
◆ addMetaData() [3/4]
void gem5::statistics::Hdf5::addMetaData |
( |
H5::DataSet & | loc, |
|
|
const char * | name, |
|
|
const std::vector< std::string > & | values ) |
|
protected |
Helper function to add a string vector attribute to a stat.
- Parameters
-
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().
◆ addMetaData() [4/4]
void gem5::statistics::Hdf5::addMetaData |
( |
H5::DataSet & | loc, |
|
|
const char * | name, |
|
|
double | value ) |
|
protected |
Helper function to add a double attribute to a stat.
- Parameters
-
loc | Parent location in the file. |
name | Attribute name. |
value | Attribute value. |
Definition at line 320 of file hdf5.cc.
References name().
◆ appendStat()
H5::DataSet gem5::statistics::Hdf5::appendStat |
( |
const Info & | info, |
|
|
int | rank, |
|
|
hsize_t * | dims, |
|
|
const double * | data ) |
|
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.
- Parameters
-
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().
◆ appendVectorInfo()
H5::DataSet gem5::statistics::Hdf5::appendVectorInfo |
( |
const VectorInfo & | info | ) |
|
|
protected |
◆ begin()
void gem5::statistics::Hdf5::begin |
( |
| ) |
|
|
overridevirtual |
◆ beginGroup()
void gem5::statistics::Hdf5::beginGroup |
( |
const char * | name | ) |
|
|
overridevirtual |
◆ end()
void gem5::statistics::Hdf5::end |
( |
| ) |
|
|
overridevirtual |
◆ endGroup()
void gem5::statistics::Hdf5::endGroup |
( |
| ) |
|
|
overridevirtual |
◆ valid()
bool gem5::statistics::Hdf5::valid |
( |
| ) |
const |
|
overridevirtual |
◆ visit() [1/7]
void gem5::statistics::Hdf5::visit |
( |
const DistInfo & | info | ) |
|
|
overridevirtual |
◆ visit() [2/7]
void gem5::statistics::Hdf5::visit |
( |
const FormulaInfo & | info | ) |
|
|
overridevirtual |
◆ visit() [3/7]
void gem5::statistics::Hdf5::visit |
( |
const ScalarInfo & | info | ) |
|
|
overridevirtual |
◆ visit() [4/7]
◆ visit() [5/7]
void gem5::statistics::Hdf5::visit |
( |
const Vector2dInfo & | info | ) |
|
|
overridevirtual |
◆ visit() [6/7]
◆ visit() [7/7]
void gem5::statistics::Hdf5::visit |
( |
const VectorInfo & | info | ) |
|
|
overridevirtual |
◆ dumpCount
unsigned gem5::statistics::Hdf5::dumpCount |
|
protected |
◆ enableDescriptions
const bool gem5::statistics::Hdf5::enableDescriptions |
|
protected |
◆ enableFormula
const bool gem5::statistics::Hdf5::enableFormula |
|
protected |
◆ fname
const std::string gem5::statistics::Hdf5::fname |
|
protected |
◆ h5File
H5::H5File gem5::statistics::Hdf5::h5File |
|
protected |
◆ path
std::stack<H5::Group> gem5::statistics::Hdf5::path |
|
protected |
◆ timeChunk
const hsize_t gem5::statistics::Hdf5::timeChunk |
|
protected |
The documentation for this class was generated from the following files: