Navigation
API > API/Developer > API/Developer/ProfileVisualizer
Inheritance Hierarchy
References
| Module | ProfileVisualizer |
| Header | /Engine/Source/Developer/ProfileVisualizer/Public/SEventsTree.h |
| Include | #include "SEventsTree.h" |
Syntax
class SEventsTree : public SCompoundWidget
Remarks
Profiler events tree. Contains a tree of profiler event for the selected graph bar.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSuppressSelectionChangedEvent | Suppresses SelectionChanged delegate to avoid event loops between graph visualizer and events tree | |
| EVisualizerTimeUnits::Type | DurationUnits | Currently selected time units | |
| TSharedPtr< STreeView< TSharedPtr< FVisualizerEvent > > > | EventsListView | A pointer to the ListView of profiler events | |
| FString | FilterText | Events filter text | |
| FOnEventSelectionChanged | OnEventSelectionChangedDelegate | Delegate used to notify when event selection changes | |
| TSharedPtr< FVisualizerEvent > | ProfileData | Original profiler data | |
| TArray< TSharedPtr< FVisualizerEvent > > | SelectedEvents | List of events for the currently selected thread | |
| TArray< TSharedPtr< FVisualizerEvent > > | SelectedEventsView | List of events for the currently selected thread | |
| TSharedPtr< FVisualizerEvent > | SelectedThread | Currently selected events for this tree | |
| FName | SortByColumn | Specify which column to sort with | |
| EColumnSortMode::Type | SortMode | Currently selected sorting mode | |
| EVisualizerViewMode::Type | ViewMode | Currently selected view mode | |
| TMap< TSharedPtr< FVisualizerEvent >, TSharedPtr< FVisualizerEvent > > | ViewToEventsMap | Maps the events generated using currently selected view and sorting modes to the source events tree |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CheckDurationUnits
(
EVisualizerTimeUnits::Type InUnits |
Gets the currently selected time units | |
| bool | CheckViewMode
(
EVisualizerViewMode::Type InMode |
Given a view mode checks if it's the currently selected one | |
| void | Construct
(
const FArguments& InArgs |
Construct the widget | |
| int32 | CountEvents
(
TArray< TSharedPtr< FVisualizerEvent > >& Events |
Recursively counts all events in the tree | |
| void | Given the selected events from the bar graph creates a copy of the selection applying the current view and sorting mode | ||
| TSharedPtr< FVisualizerEvent > | CreateSelectedEventsViewRecursively
(
TSharedPtr< FVisualizerEvent > SourceEvent |
Helper function for creating a copy of the selected events in a hierarchy | |
| void | CreateSelectedEventsViewRecursivelyAndFlatten
(
TSharedPtr< FVisualizerEvent > SourceEvent |
Helper function for creating a copy of the selected events and flattening the hierarchy | |
| void | CreateSelectedEventsViewRecursivelyCoalesced
(
TArray< TSharedPtr< FVisualizerEvent > >& SourceEvents, |
Helper function for creating a copy of the selected events combining leaves with the same name | |
| void | CreateSelectedEventsViewRecursivelyFlatCoalesced
(
TArray< TSharedPtr< FVisualizerEvent > >& SourceEvents |
Helper function for creating a copy of the selected events combining leaves with the same name and flattening the hierarchy | |
| bool | FilterEvent
(
TSharedPtr< FVisualizerEvent > InEvent |
Checks if event name passes current filter | |
| EColumnSortMode::Type | GetColumnSortMode
(
const FName ColumnId |
||
| FText | Gets the currently selected time units text | ||
| double | GetEventDuration
(
double InDurationMs |
Converts ms to currently selected time units. | |
| FString | GetTabTitle () |
Gets a label for this events tree tab | |
| void | HandleBarEventSelectionChanged
(
int32 Thread, |
Function called when the user selects an event bar in the graph | |
| void | HandleBarGraphExpansionChanged
(
TSharedPtr< FVisualizerEvent > Selection |
Function called when the currently expanded bar graph changes | |
| void | HandleBarGraphSelectionChanged
(
TSharedPtr< FVisualizerEvent > Selection |
Function called when the currently selected bar graph changes | |
| void | OnColumnSortModeChanged
(
const EColumnSortPriority::Type SortPriority, |
Handles column sorting mode change | |
| void | OnEventSelectionChanged
(
TSharedPtr< FVisualizerEvent > Selection, |
Function called when the currently selected event in the list of thread events changes | |
| void | OnFilterTextChanged
(
const FText& InFilterText |
Called by the editable text control when the filter text is changed by the user | |
| void | OnFilterTextCommitted
(
const FText& InFilterText, |
Called by the editable text control when a user presses enter or commits their text change | |
| TSharedRef< ITableRow > | OnGenerateWidgetForEventsList
(
TSharedPtr< FVisualizerEvent > InItem, |
Generates SEventItem widgets for the events tree | |
| void | OnGetChildrenForEventsList
(
TSharedPtr< FVisualizerEvent > InItem, |
Given a profiler event, generates children for it | |
| bool | RestoreEventSelection
(
TArray< TSharedPtr< FVisualizerEvent > >& Events |
Restores event selection after changes to the tree | |
| void | SetDurationUnits
(
EVisualizerTimeUnits::Type InUnits |
Sets 'Duration' column time units | |
| void | SetViewMode
(
EVisualizerViewMode::Type InMode |
Sets the current view mode | |
| void | Sorts the selected events tree | ||
| void | SortEventsList
(
TArray< TSharedPtr< FVisualizerEvent > >& Events |
Recursively sorts the selected events tree |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnEventSelectionChanged | Delegate used when the selection changes |
Constants
| Name | Description |
|---|---|
| NAME_DurationColumn | Name of 'Duration' column |
| NAME_NameColumn | Name of 'Name' column |