SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::helper::TimerData Class Reference

Classes

class  ValData
 

Public Attributes

AdvancedTimer::IdTimer id
 
type::vector< Recordrecords
 
int nbIter
 
int interval
 
int defaultInterval
 
AdvancedTimer::outputType timerOutputType
 
std::map< AdvancedTimer::IdStep, StepDatastepData
 
type::vector< AdvancedTimer::IdStepsteps
 
std::map< AdvancedTimer::IdVal, ValDatavalData
 
type::vector< AdvancedTimer::IdValvals
 

Public Member Functions

 TimerData ()
 
void init (AdvancedTimer::IdTimer id)
 
void clear ()
 
void process ()
 
void print ()
 
void print (std::ostream &result)
 
json getJson (std::string stepNumber)
 
json getLightJson (std::string stepNumber)
 
json createJSONArray (int s, json jsonObject, StepData &data)
 

Attribute details

◆ defaultInterval

int sofa::helper::TimerData::defaultInterval

◆ id

AdvancedTimer::IdTimer sofa::helper::TimerData::id

◆ interval

int sofa::helper::TimerData::interval

◆ nbIter

int sofa::helper::TimerData::nbIter

◆ records

type::vector<Record> sofa::helper::TimerData::records

◆ stepData

std::map<AdvancedTimer::IdStep, StepData> sofa::helper::TimerData::stepData

◆ steps

type::vector<AdvancedTimer::IdStep> sofa::helper::TimerData::steps

◆ timerOutputType

AdvancedTimer::outputType sofa::helper::TimerData::timerOutputType

◆ valData

std::map<AdvancedTimer::IdVal, ValData> sofa::helper::TimerData::valData

◆ vals

type::vector<AdvancedTimer::IdVal> sofa::helper::TimerData::vals

Constructor details

◆ TimerData()

sofa::helper::TimerData::TimerData ( )
inline

Function details

◆ clear()

void sofa::helper::TimerData::clear ( )

◆ createJSONArray()

json sofa::helper::TimerData::createJSONArray ( int  s,
json  jsonObject,
StepData data 
)

◆ getJson()

json sofa::helper::TimerData::getJson ( std::string  stepNumber)

◆ getLightJson()

json sofa::helper::TimerData::getLightJson ( std::string  stepNumber)

◆ init()

void sofa::helper::TimerData::init ( AdvancedTimer::IdTimer  id)
inline

◆ print() [1/2]

void sofa::helper::TimerData::print ( )

◆ print() [2/2]

void sofa::helper::TimerData::print ( std::ostream &  result)

◆ process()

void sofa::helper::TimerData::process ( )