Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
trap::ProfFunction Struct Reference

#include <profInfo.hpp>

Collaboration diagram for trap::ProfFunction:

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...
 

Detailed Description

Represents all the profiling data which can be associated with a single function

Constructor & Destructor Documentation

trap::ProfFunction::ProfFunction ( )

Empty constructor, performs the initialization of the statistics.

Member Function Documentation

std::string trap::ProfFunction::printCsv ( )

dump these information to a string, in the command separated values (CVS) format

References setup::name, and numTotalCalls.

std::string trap::ProfFunction::printCsvHeader ( )
static

Prints the description of the informations which describe a function, in the command separated values (CVS) format.

Referenced by trap::Profiler< issueWidth >::printCsvStats().

Member Data Documentation

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
unsigned long long trap::ProfFunction::numCalls

Number of times this function is called.

unsigned long long trap::ProfFunction::numTotalCalls = 0
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.


The documentation for this struct was generated from the following files: