Transaction-Level Modeling Framework for Space Applications
#include <profInfo.hpp>
Public Member Functions | |
std::string | printCsv () |
dump these information to a string, in the command separated values (CVS) format More... | |
ProfFunction () | |
Empty constructor, performs the initialization of the statistics. More... | |
Static Public Member Functions | |
static std::string | printCsvHeader () |
Prints the description of the informations which describe a function, in the command separated values (CVS) format. More... | |
Public Attributes | |
unsigned int | address |
Address of the function. More... | |
std::string | name |
Name of the function. More... | |
unsigned long long | numCalls |
Number of times this function is called. More... | |
unsigned long long | totalNumInstr |
The number of assembly instructions executed in total inside the function. More... | |
unsigned long long | exclNumInstr |
The number of assembly instructions executed exclusively inside the function. More... | |
sc_time | totalTime |
Total time spent in the function. More... | |
sc_time | exclTime |
Time spent exclusively in the function. More... | |
bool | alreadyExamined |
Static Public Attributes | |
static unsigned long long | numTotalCalls = 0 |
Total number of function calls. More... | |
Represents all the profiling data which can be associated with a single function
trap::ProfFunction::ProfFunction | ( | ) |
Empty constructor, performs the initialization of the statistics.
std::string trap::ProfFunction::printCsv | ( | ) |
dump these information to a string, in the command separated values (CVS) format
References setup::name, and numTotalCalls.
|
static |
Prints the description of the informations which describe a function, in the command separated values (CVS) format.
Referenced by trap::Profiler< issueWidth >::printCsvStats().
unsigned int trap::ProfFunction::address |
Address of the function.
bool trap::ProfFunction::alreadyExamined |
Used to coorectly keep track of the increment of the time, instruction count, etc. in recursive functions
unsigned long long trap::ProfFunction::exclNumInstr |
The number of assembly instructions executed exclusively inside the function.
sc_time trap::ProfFunction::exclTime |
Time spent exclusively in the function.
std::string trap::ProfFunction::name |
Name of the function.
Referenced by usi.SCCallback::call(), core.tools.generator.item.item.Item::data(), core.tools.generator.item.item.Item::getName(), core.tools.generator.item.enum.IntegerItem::load(), usi.SCCallback::register(), usi.SCCommand::register(), and core.tools.generator.item.item.Item::setName().
unsigned long long trap::ProfFunction::numCalls |
Number of times this function is called.
|
static |
Total number of function calls.
Referenced by printCsv().
unsigned long long trap::ProfFunction::totalNumInstr |
The number of assembly instructions executed in total inside the function.
sc_time trap::ProfFunction::totalTime |
Total time spent in the function.