SOFA API  1a4bb3e7
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 AdvancedTimer::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 AdvancedTimer::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::type::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

◆ m_children

sofa::type::vector<AnimationSubStepData*> sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_children

◆ m_end

ctime_t sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_end

◆ m_level

int sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_level

◆ m_name

std::string sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_name

◆ m_nbrCall

int sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_nbrCall

◆ m_selfMs

SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_selfMs

◆ m_selfPercent

SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_selfPercent

◆ m_start

ctime_t sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_start

◆ m_tag

std::string sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_tag

◆ m_totalMs

SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_totalMs

◆ m_totalPercent

SReal sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::m_totalPercent

Constructor details

◆ AnimationSubStepData()

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

◆ ~AnimationSubStepData()

sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::~AnimationSubStepData ( )
virtual

Function details

◆ computeTimeAndPercentage()

void sofa::gui::qt::SofaWindowProfiler::AnimationSubStepData::computeTimeAndPercentage ( SReal  invTotalMs)

◆ getStepMs()

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