|
HLCC Documentation 2.2.0
|
#include <executionStatistics.hpp>
Classes | |
| struct | StatisticsCollection |
| struct | StatisticsData |
Public Member Functions | |
| ExecTimeStats (std::string p_name, uint16_t p_buf_size) | |
| void | TimerStart () |
| void | TimerStop () |
| std::string | GetName () |
| StatisticsData | GetStatsData () |
| std::string | PrintStats () |
Static Public Member Functions | |
| static std::string | PrintCollection (const std::vector< StatisticsCollection > &collection) |
| static std::string | DurationAsString (uint64_t time_ns) |
Class used to help measure program execution time, it ca acquire the results of multiple execution iterations and produce statistics about the results and format data to be printed.
| hlcc::lsvsim::ExecTimeStats::ExecTimeStats | ( | std::string | p_name, |
| uint16_t | p_buf_size ) |
Constructor
| p_name | string, with the name of current instance |
| p_buf_size | uint16_t with the buffer size. Once the buffer is full older data will be overwritten with new data. |
|
static |
Convert a time in ns given as a uint64_t to the best string representation.
|
inline |
Returns the name given to the current instance
| ExecTimeStats::StatisticsData hlcc::lsvsim::ExecTimeStats::GetStatsData | ( | ) |
Compute statistics from the data in the buffer and return results
|
static |
Print statistics data for multiple timers in a table. It prints data from timers in the c++ and python side for easy comparison.
| std::string hlcc::lsvsim::ExecTimeStats::PrintStats | ( | ) |
Print the statistics of the current instance.
| void hlcc::lsvsim::ExecTimeStats::TimerStart | ( | ) |
A call to this method should be placed in the beginning of the code we want to monitor. There should only be one call to this method per instance.
| void hlcc::lsvsim::ExecTimeStats::TimerStop | ( | ) |
A call to this method should be placed in the end of the code we want to monitor. There should only be one call to this method per instance.