#include <perfstats.hpp>
|
| enum | Type {
BOOL,
COORDINATES,
COUNT,
CURRENT,
DISTANCE,
DOUBLE,
DURATION,
ENERGY,
FRAME,
FREQUENCY,
INT,
ITERATION,
MEMORY,
ORIENTATION,
PERCENTAGE,
POSITION,
POWER,
TIME,
UNDEFINED,
VOLTAGE
} |
| |
◆ Type
| Enumerator |
|---|
| BOOL | |
| COORDINATES | |
| COUNT | |
| CURRENT | |
| DISTANCE | |
| DOUBLE | |
| DURATION | |
| ENERGY | |
| FRAME | |
| FREQUENCY | |
| INT | |
| ITERATION | |
| MEMORY | |
| ORIENTATION | |
| PERCENTAGE | |
| POSITION | |
| POWER | |
| TIME | |
| UNDEFINED | |
| VOLTAGE | |
◆ PerfStats() [1/2]
◆ PerfStats() [2/2]
| PerfStats::PerfStats |
( |
const bool |
include_detailed | ) |
|
◆ createHeaderString()
| std::string PerfStats::createHeaderString |
( |
| ) |
|
- Returns
- The tab separated stats names with units.
◆ createDataIterString() [1/2]
| std::string PerfStats::createDataIterString |
( |
| ) |
|
◆ createDataIterString() [2/2]
| std::string PerfStats::createDataIterString |
( |
const size_t |
iter | ) |
|
◆ createDataString()
| std::string PerfStats::createDataString |
( |
| ) |
|
◆ debug()
| void PerfStats::debug |
( |
| ) |
|
◆ get()
| const Stats& PerfStats::get |
( |
const std::string & |
key | ) |
const |
|
inline |
- Parameters
-
| [in] | key | The key to the requested stats. |
- Returns
- The stats cooresponding
◆ getLastData()
| std::vector<double> PerfStats::getLastData |
( |
const std::string & |
key | ) |
|
◆ getLastDataMerged()
| double PerfStats::getLastDataMerged |
( |
const std::string & |
key | ) |
|
◆ getSampleTime()
| double PerfStats::getSampleTime |
( |
const std::string & |
key | ) |
|
◆ getTime()
| static double PerfStats::getTime |
( |
| ) |
|
|
static |
◆ getType()
| Type PerfStats::getType |
( |
const std::string & |
key | ) |
|
◆ reset() [1/2]
| void PerfStats::reset |
( |
| ) |
|
◆ reset() [2/2]
| void PerfStats::reset |
( |
const std::string & |
key | ) |
|
◆ sample()
| double PerfStats::sample |
( |
const std::string & |
key, |
|
|
const double |
value, |
|
|
const Type |
type = COUNT, |
|
|
const bool |
detailed = false |
|
) |
| |
- Parameters
-
| [in] | key | |
| [in] | value | |
| [in] | type | |
| [in] | detailed | |
- Returns
◆ sampleT_WB()
| double PerfStats::sampleT_WB |
( |
const Eigen::Matrix4f & |
T_WB, |
|
|
const bool |
detailed = false |
|
) |
| |
◆ sampleDurationStart()
| double PerfStats::sampleDurationStart |
( |
const std::string & |
key, |
|
|
const bool |
detailed = false |
|
) |
| |
◆ sampleDurationEnd()
| double PerfStats::sampleDurationEnd |
( |
const std::string & |
key | ) |
|
◆ setFilestream()
| void PerfStats::setFilestream |
( |
std::ofstream * |
filestream | ) |
|
◆ includeDetailed()
| void PerfStats::includeDetailed |
( |
const bool |
include_detailed | ) |
|
|
inline |
Set flag to include detailed stats to std::string output.
- Parameters
-
◆ setIter()
| void PerfStats::setIter |
( |
const size_t |
iter | ) |
|
|
inline |
Set the current iteration and add it to the stats.
- Parameters
-
◆ writeToFilestream()
| void PerfStats::writeToFilestream |
( |
| ) |
|
Write performance stats to filestream.
The first time the function is called the header will be added. If the
◆ writeToOStream()
| void PerfStats::writeToOStream |
( |
std::ostream & |
ostream | ) |
|
◆ writeSummaryToOStream()
| void PerfStats::writeSummaryToOStream |
( |
std::ostream & |
ostream, |
|
|
const bool |
include_iter_data = true |
|
) |
| |
- Parameters
-
| [in] | ostream | |
| [in] | include_iter_data | |
◆ header_order_
Initial value:
The order the different types are added to the output.
◆ include_detailed_
| bool PerfStats::include_detailed_ |
Flag to add stats marked as detailed to the output.
◆ insertion_idx_
| int PerfStats::insertion_idx_ |
The index of the next stat to be inserted to performance stats.
◆ iter_
◆ order_
| std::map<int, std::string> PerfStats::order_ |
The order the stats are added to the stats_ map | map idx -> stat name.
◆ stats_
| std::map<std::string, Stats> PerfStats::stats_ |
The map stat name -> stat.
◆ filestream_
| std::ofstream* PerfStats::filestream_ |
◆ filestream_aligned_
| bool PerfStats::filestream_aligned_ |
◆ filestream_last_iter_
| size_t PerfStats::filestream_last_iter_ |
◆ filestream_pos_
| std::streampos PerfStats::filestream_pos_ |
◆ ostream_aligned_
| bool PerfStats::ostream_aligned_ |
◆ ostream_last_iter_
| size_t PerfStats::ostream_last_iter_ |
The documentation for this struct was generated from the following file: