#include <SofaWindowProfiler.h>
The SofaWindowProfiler class This class is a QDialog widget to display information recorded by AdvancedTimer mechanism At each step, info will be gathered from the AdvancedTimer using class sofa::helper::StepData Info will be displayed by:
More...
The SofaWindowProfiler class This class is a QDialog widget to display information recorded by AdvancedTimer mechanism At each step, info will be gathered from the AdvancedTimer using class sofa::helper::StepData Info will be displayed by:
- plotting the step duration into a graph
- Showing information duration/step number
- Showing all substep of an animation step with their own duration in ms and the corresponding percentage over the whole step.
◆ m_axisY
QValueAxis* sofa::gui::qt::SofaWindowProfiler::m_axisY |
|
protected |
◆ m_bufferSize
unsigned int sofa::gui::qt::SofaWindowProfiler::m_bufferSize |
|
protected |
Size of the buffer data stored. (i.e number of stepData info stored)
◆ m_chart
QChart* sofa::gui::qt::SofaWindowProfiler::m_chart |
|
protected |
Pointer to the chart Data.
◆ m_chartView
◆ m_checkedSeries
std::unordered_map<std::string, CheckedSeries> sofa::gui::qt::SofaWindowProfiler::m_checkedSeries |
|
protected |
◆ m_fpsMaxAxis
SReal sofa::gui::qt::SofaWindowProfiler::m_fpsMaxAxis |
|
protected |
Current Y max value of the graph (max ms encountered x1.1)
◆ m_maxFps
SReal sofa::gui::qt::SofaWindowProfiler::m_maxFps |
|
protected |
Bigger step encountered in ms.
◆ m_profilingData
◆ m_selectedParentStep
std::string sofa::gui::qt::SofaWindowProfiler::m_selectedParentStep |
|
protected |
Name of the parent of the substep selected in the Tree.
◆ m_selectedStep
std::string sofa::gui::qt::SofaWindowProfiler::m_selectedStep |
|
protected |
Name of the substep selected in the Tree.
◆ m_selectionSeries
QLineSeries* sofa::gui::qt::SofaWindowProfiler::m_selectionSeries |
|
protected |
Series of selection substep duration in ms to be plot on the graph. size =.
- See also
- m_bufferSize
◆ m_series
QLineSeries* sofa::gui::qt::SofaWindowProfiler::m_series |
|
protected |
Series of step duration in ms to be plot on the graph. size =.
- See also
- m_bufferSize
◆ m_step
int sofa::gui::qt::SofaWindowProfiler::m_step |
|
protected |
Current animation step internally recorded.
◆ SofaWindowProfiler()
sofa::gui::qt::SofaWindowProfiler::SofaWindowProfiler |
( |
QWidget * |
parent | ) |
|
◆ activateATimer()
void sofa::gui::qt::SofaWindowProfiler::activateATimer |
( |
bool |
activate | ) |
|
method called when window is shown to activate AdvancedTimer recording.
◆ addTreeItem() [1/2]
◆ addTreeItem() [2/2]
QTreeWidgetItem * sofa::gui::qt::SofaWindowProfiler::addTreeItem |
( |
const AnimationStepData * |
step | ) |
|
|
protected |
◆ closeEvent
void sofa::gui::qt::SofaWindowProfiler::closeEvent |
( |
QCloseEvent * |
| ) |
|
|
inlineoverrideslot |
◆ closeWindow
void sofa::gui::qt::SofaWindowProfiler::closeWindow |
( |
bool |
| ) |
|
|
signal |
◆ createChart()
void sofa::gui::qt::SofaWindowProfiler::createChart |
( |
| ) |
|
|
protected |
Method called at creation to init the chart.
◆ createTreeView()
void sofa::gui::qt::SofaWindowProfiler::createTreeView |
( |
| ) |
|
|
protected |
◆ expandRootNodeOnly
void sofa::gui::qt::SofaWindowProfiler::expandRootNodeOnly |
( |
| ) |
const |
|
slot |
◆ onStepSelected
void sofa::gui::qt::SofaWindowProfiler::onStepSelected |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
slot |
Method called when a QTreeWidgetItem is selected in the Tree view.
◆ pushStepData()
void sofa::gui::qt::SofaWindowProfiler::pushStepData |
( |
| ) |
|
main method to iterate on the AdvancedTimer Data and update the info in the widgets
◆ resetGraph()
void sofa::gui::qt::SofaWindowProfiler::resetGraph |
( |
| ) |
|
Method to clear all Data and reset graph.
◆ updateChart()
void sofa::gui::qt::SofaWindowProfiler::updateChart |
( |
| ) |
|
|
protected |
Method called at each iteration to update the chart.
◆ updateFromSelectedStep
void sofa::gui::qt::SofaWindowProfiler::updateFromSelectedStep |
( |
int |
step | ) |
|
|
slot |
Method to update all widgets from select absisse on the graph.
◆ updateSummaryLabels
void sofa::gui::qt::SofaWindowProfiler::updateSummaryLabels |
( |
int |
step | ) |
|
|
slot |
Method called when a given.
- Parameters
-
step | is triggered to update summary information |
◆ updateTree
void sofa::gui::qt::SofaWindowProfiler::updateTree |
( |
int |
step | ) |
|
|
slot |
Method called when a given.
- Parameters
-
step | is triggered to update the QTreeView |