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::ProfInstruction Struct Reference

#include <profInfo.hpp>

Collaboration diagram for trap::ProfInstruction:

Public Member Functions

std::string printCsv ()
 dump these information to a string, in the command separated values (CVS) format More...
 
 ProfInstruction ()
 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 an instruction, in the command separated values (CVS) format. More...
 
static std::string printCsvSummary ()
 Prints the summary of all the executed instructions, in the command separated values (CVS) format. More...
 

Public Attributes

std::string name
 Name of the assembly instruction (MOV, ADD ...) More...
 
unsigned long long numCalls
 Number of times this instruction is called. More...
 
sc_time time
 Total time spent in executing the instruction. More...
 

Static Public Attributes

static unsigned long long numTotalCalls = 0
 Total number of instructions executed. More...
 

Detailed Description

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

Constructor & Destructor Documentation

trap::ProfInstruction::ProfInstruction ( )

Empty constructor, performs the initialization of the statistics.

References usi.systemc::time().

Here is the call graph for this function:

Member Function Documentation

std::string trap::ProfInstruction::printCsv ( )

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

References name, numCalls, numTotalCalls, and time.

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

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

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

std::string trap::ProfInstruction::printCsvSummary ( )
static

Prints the summary of all the executed instructions, in the command separated values (CVS) format.

References numTotalCalls.

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

Member Data Documentation

std::string trap::ProfInstruction::name
unsigned long long trap::ProfInstruction::numCalls

Number of times this instruction is called.

Referenced by printCsv().

unsigned long long trap::ProfInstruction::numTotalCalls = 0
static

Total number of instructions executed.

Referenced by printCsv(), and printCsvSummary().

sc_time trap::ProfInstruction::time

Total time spent in executing the instruction.

Referenced by printCsv().


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