Navigation
API > API/Developer > API/Developer/ProfileVisualizer
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SBarVisualizer
References
| Module | ProfileVisualizer |
| Header | /Engine/Source/Developer/ProfileVisualizer/Public/SBarVisualizer.h |
| Include | #include "SBarVisualizer.h" |
Syntax
class SBarVisualizer : public SCompoundWidget
Remarks
Bars Visualizer. Contains a list of bars for each profiler category
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SListView< TSharedPtr< FVisualizerEvent > > > | BarGraphsList | A pointer to the ListView of threads graph bars | |
| bool | bSuppressBarGraphSelectionChangedDelegate | Should the OnBarGraphSelectionChangedDelegate be suppressed to avoid event loops | |
| TArray< TSharedPtr< SGraphBar > > | Graphs | List of all SGraphBar widgets in the tree | |
| FOnBarEventSelectionChanged | OnBarEventSelectionChangedDelegate | Delegate used when single event on the bar graph is selected | |
| FOnBarGraphContextMenu | OnBarGraphContextMenuDelegate | Delegate used when the user right-clicks on a bar graph | |
| FOnBarGraphExpansionChanged | OnBarGraphExpansionChangedDelegate | Delegate used when bar graph selection changes | |
| FOnBarGraphSelectionChanged | OnBarGraphSelectionChangedDelegate | Delegate used when bar graph selection changes | |
| TSharedPtr< FVisualizerEvent > | ProfileData | Original profiler data | |
| TArray< TSharedPtr< FVisualizerEvent > > | ProfileDataView | Profiler data view (filtered data) | |
| TSharedPtr< SScrollBar > | ScrollBar | A pointer to the horizontal scrollbar widget | |
| float | ScrollbarOffset | Scrollbar offset | |
| TSharedPtr< FVisualizerEvent > | SelectedBarGraph | Currently selected bar graph | |
| TSharedPtr< STimeline > | Timeline | A pointer to the horizontal scrollbar widget | |
| EVisualizerViewMode::Type | ViewMode | Bar visualizer view mode | |
| TSharedPtr< STextBlock > | ZoomLabel | A pointer to the Zoom Label widget | |
| float | ZoomSliderValue | Zoom slider value |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AdjustTimeline
(
TSharedPtr< FVisualizerEvent > InEvent |
Adjusts timeline to match the selected event's start and duration | |
| bool | CheckViewMode
(
EVisualizerViewMode::Type InMode |
Given a view mode checks if it's the currently selected one | |
| void | ClearBarSelection
(
TSharedPtr< FVisualizerEvent > GraphEvents, |
Recursively clears selection on all bar graphs | |
| void | Construct
(
const FArguments& InArgs |
Construct the widget | |
| void | Creates filtered data | ||
| void | CreateFlattenedData
(
TSharedPtr< FVisualizerEvent > InData, |
Creates flattened data view | |
| FReply | ExpandBar
(
TSharedPtr< FVisualizerEvent > BarGraphEvents |
Called when the user clicked bar graph's expand button | |
| TSharedPtr< FVisualizerEvent > | FindSelectedEventsParent
(
TArray< TSharedPtr< FVisualizerEvent > >& BarGraphs, |
||
| EVisibility | Checks if home button should be visible | ||
| float | Gets the maximum graph offset value for the graph bars | ||
| float | Gets the maximum scroll offset fraction value for the horizontal scrollbar | ||
| FText | Gets the currently displayed hierarchy node name | ||
| EVisibility | Checks if 'to parent' button should be visible | ||
| float | GetZoom () |
Gets the actual zoom level for the graph bars | |
| FText | GetZoomLabel () |
Constructs the zoom label string based on the current zoom level value. | |
| float | GetZoomValue () |
Callback used to get the current zoom slider value. | |
| void | HandleEventSelectionChanged
(
TSharedPtr< FVisualizerEvent > Selection |
Handles selection change in the events tree | |
| bool | IsExpandable
(
TSharedPtr< FVisualizerEvent > InEvent |
Checks if the selected event has children with children | |
| void | OnBarEventSelectionChanged
(
TSharedPtr< FVisualizerEvent > Selection, |
Function called when the user selects an event bar in the graph | |
| void | OnBarGeometryChanged
(
FGeometry Geometry |
Called when bar graph geometry (size) changes | |
| void | OnBarGraphSelectionChanged
(
TSharedPtr< FVisualizerEvent > Selection, |
Function called when the currently selected bar graph changes | |
| FReply | OnBarRightClicked
(
const FGeometry& BarGeometry, |
Forwards right-click event to the visualizer main frame | |
| TSharedRef< ITableRow > | OnGenerateWidgetForList
(
TSharedPtr< FVisualizerEvent > InItem, |
Generates SGraphBar widget for the threads list | |
| void | OnGetChildrenForList
(
TSharedPtr< FVisualizerEvent > InItem, |
Generates children for the specified tree view item | |
| FReply | Handles clickong on 'Home' button | ||
| void | OnSetZoomValue
(
float NewValue |
Callback used to handle zoom slider | |
| FReply | Handles clicking on 'Back to parent' button | ||
| void | ScrollBar_OnUserScrolled
(
float InScrollOffsetFraction |
Callback for scrolling the horizontal scrollbar | |
| void | SetViewMode
(
EVisualizerViewMode::Type InMode |
Sets the current view mode |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnBarEventSelectionChanged | Delegate used when a single event on the bar graph is selected |
| FOnBarGraphContextMenu | Delegate used when the user right-clicks on a bar graph |
| FOnBarGraphExpansionChanged | Delegate used when bar graph expansion changes |
| FOnBarGraphSelectionChanged | Delegate used when bar graph selection changes |