SOFA API  73d8bb95
Open source framework for multi-physics simuation
sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData Class Reference

#include <SofaWindowProfiler.h>

The AnimationSubStepData Internal class to store data for each step of the animation. Correspond to one AdvanceTimer::begin/end Data stored/computed will be step name, its time in ms and the corresponding % inside the whole step. the total ms and percentage it represent if this step has substeps. Buffer of AnimationSubStepData corresponding to its children substeps. More...

Detailed Description

The AnimationSubStepData Internal class to store data for each step of the animation. Correspond to one AdvanceTimer::begin/end Data stored/computed will be step name, its time in ms and the corresponding % inside the whole step. the total ms and percentage it represent if this step has substeps. Buffer of AnimationSubStepData corresponding to its children substeps.

Public Attributes

int m_level
 
std::string m_name
 
int m_nbrCall
 
ctime_t m_start
 
ctime_t m_end
 
std::string m_tag
 
SReal m_totalMs
 
SReal m_totalPercent
 
SReal m_selfMs
 
SReal m_selfPercent
 
sofa::helper::vector< AnimationSubStepData * > m_children
 

Public Member Functions

 AnimationSubStepData (int level, std::string name, ctime_t start)
 
virtual ~AnimationSubStepData ()
 
void computeTimeAndPercentage (SReal invTotalMs)
 
SReal getStepMs (const std::string &stepName, const std::string &parentName)
 

Attribute details

sofa::helper::vector<AnimationSubStepData*> sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_children
ctime_t sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_end
int sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_level
std::string sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_name
int sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_nbrCall
SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_selfMs
SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_selfPercent
ctime_t sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_start
std::string sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_tag
SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_totalMs
SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_totalPercent

Constructor details

sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::AnimationSubStepData ( int  level,
std::string  name,
ctime_t  start 
)
sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::~AnimationSubStepData ( )
virtual

Function details

void sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::computeTimeAndPercentage ( SReal  invTotalMs)
SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::getStepMs ( const std::string &  stepName,
const std::string &  parentName 
)