Commit Graph

42 Commits

Author SHA1 Message Date
catalin dragoiu
bc5e1840af Automation in Unreal Insights Frontend
#rb ionut.matasaru

[CL 36386425 by catalin dragoiu in 5.5 branch]
2024-09-18 07:58:52 -04:00
ionut matasaru
93f666ee28 [Insights]
- Added new TraceInsightsFrontend module. Moved all functionality of Unreal Insights Frontend (i.e. Session Browser) from TraceInsights module to this new module.
  - Split the functional tests between TraceInsightsFrontend and TraceInsights. Also updated some of the tests to reduce dependency to InsightsManager. Tests moved to TraceInsightsFrontend module:
        * "System.Insights.Hub.MemoryInsights" (MemoryInsightsTests.cpp)
        * "System.Insights.Hub.SessionBrowser" (TraceStoreWindowTests.cpp)
        * "System.Insights.Hub.UnrealTraceServer.Starting" (UnrealTraceServerTests.cpp)
  - TraceInsights: Updated InsightsStyle to inherit the InsightsCoreStyle (from TraceInsightsCore module). Moved more resources to FInsightsCoreStyle. Removed duplicates between TraceInsights and TraceInsightsCore modules. Removed "WhiteBrush" from FInsightsStyle (can be used the one from FAppStyle / FCoreStyle instead).
  - Moved and renamed FTraceServerControl from "Insights/Widgets/STraceServerControl.h" to "InsightsFrontend/StoreService/TraceServerControl.h". TraceUtilities now depends on TraceInsightsFrontend module (instead of TraceInsights module).
  - Added FStoreConnection in TraceAnalysis module. It manages a connection to a trace server (FStoreClient + critical section). This removes duplicated code between FInsightsManager (TraceInsights module) and in STraceStoreWindows (TraceInsightsFrontend module).
  - Moved MessageDialogUtils.h/.cpp from TraceInsights to TraceInsightsCore module (InsightsCore/Common/MessageDialogUtils.h).
  - Moved OpenUnrealInsights() into a utility static class FMiscUtils in TraceInsightsCore module. This removes some of the dependencies to InsightsManager.
  - Moved/renamed Insights::FEventNameFilterValueConverter to UE::Insights::TimingProfiler::FTimerNameFilterValueConverter (currently unused).
  - Moved "Version.h" to TraceInsightsCore module ("InsightsCore/Version.h").
  - Moved more types into UE::Insights namespace, in TraceInsights module.
  - Changed UnrealInsights program to either load the TraceInsights module or the TraceInsightsFrontend module depending on the required mode to run (based on command line arguments).
  - Updated UnrealInsights program to detect "single instance" of Unreal Insights Frontend window/process much sooner during initialization.
  - Temporary disabled "Import Table ..." and "Diff Tables ..." functionality in Unreal Insights Frontend / Trace Store window (code switched off by UE_INSIGHTS_TABLE_IMPORT_TOOL_ENABLED in STraceStoreWindow.cpp).

#rb Catalin.Dragoiu

[CL 35243915 by ionut matasaru in ue5-main branch]
2024-08-01 10:28:39 -04:00
alex perez
1ceb0661a7 [Insights] Added DisableFrameThrottle flag
#rb ionut.matasaru

[CL 33822400 by alex perez in ue5-main branch]
2024-05-22 04:06:05 -04:00
catalin dragoiu
a8878bd1dd [Insights] Enable Session Frontend in Insights Session Browser
#rb ionut.matasaru

[CL 32735461 by catalin dragoiu in ue5-main branch]
2024-04-04 14:01:37 -04:00
catalin dragoiu
36583085d6 [Insights] Add a new persistent setting "Auto Connect" to the Session Browser page that controls if the Editor and Game should auto connect and start tracing if Insights Session Browser is open.
#jira UE-194404
#rb Ionut.Matasaru

[CL 27801419 by catalin dragoiu in ue5-main branch]
2023-09-12 14:32:03 -04:00
david harvey
bdb4199eeb Remove unnecessary WindowsHWrapper.h & MinWindows.h include - both files will be automatically included by AllowWindowsPlatformTypes.h
#jira UE-152863
#rnx
#rb Josh.Adams

[CL 26912096 by david harvey in ue5-main branch]
2023-08-08 05:50:53 -04:00
ionut matasaru
6d4bfd7939 [Insights] Fixed parsing for -Store=<address/ip>:<port> cmd line parameter.
#rb Catalin.Dragoiu

[CL 26544196 by ionut matasaru in ue5-main branch]
2023-07-24 11:40:19 -04:00
Mikita Hauruk
9e33785b5b [Insights] Added Automation tab to Session Browser + Automated C28843555 "Automate Test Case: Unreal Insights - Automatic renaming and deleting of symbol cache files"
#jira UEENGQA-96516
#rb ionut.matasaru

[CL 26480358 by Mikita Hauruk in ue5-main branch]
2023-07-20 05:22:57 -04:00
ionut matasaru
8185e3d824 [Insights] Fixed opening a trace from a remote trace store. The new UnrealInsights process is launched now specifying also the store address in addition to store port. Also, the trace id can now be specified as hex number (prefixed by 0x).
#rb none
#fyi Johan.Berg
#preflight skip

[CL 25170479 by ionut matasaru in ue5-main branch]
2023-04-24 16:21:46 -04:00
ionut matasaru
b64815adc2 [Insights] Fixed unsafe type cast warnings in TraceInsights module.
#rb none
#preflight 633581b1691c0168b73d75d1

[CL 22260791 by ionut matasaru in ue5-main branch]
2022-09-29 20:32:42 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
ionut matasaru
9c022068d3 [Insights]
- Added Exec() API to IUnrealInsightsModule and to IInsightsComponent (i.e. each component can now expose custom commands).
  - Extended "-ExecOnAnalysisCompleteCmd" command line argument to be used also without AutomationTesting, to run custom commands exposed by Insights components.
  - Added custom response file support for "-ExecOnAnalysisCompleteCmd" command line argument (using @=file syntax).
  - Fixed -AutoQuit command line argument to work also without AutomationTesting.

#rb Catalin.Dragoiu
#preflight 62260251e543538b3e2ea3f8

[CL 19284189 by ionut matasaru in ue5-main branch]
2022-03-07 08:10:36 -05:00
ionut matasaru
dda435206d [Insights] Fixed Unreal Insights (Session Browser) app to re-focus if it was already running.
#jira UE-136108
#rb none

#ROBOMERGE-AUTHOR: ionut.matasaru
#ROBOMERGE-SOURCE: CL 18430329 in //UE5/Release-5.0/... via CL 18435294
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18435523 by ionut matasaru in ue5-release-engine-test branch]
2021-12-10 17:46:06 -05:00
andriy tylychko
6bf3101dcd deprecated FTicker and family and replaced by thread-safe FTSTicker
#jira UE-120090
#rb francis.hurteau


#ROBOMERGE-SOURCE: CL 17176325 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17176374 by andriy tylychko in ue5-release-engine-test branch]
2021-08-16 11:09:22 -04:00
ionut matasaru
df61063a5e [Insights]
- Added "-NoUI" command line argument to be able to run analysis for a session without the UI to be created (useful when used together with -AutoQuit).
  - Added a log message (emitted when analysis completes) with session duration, analysis duration and analysis speed.

#rb Catalin.Dragoiu

#ROBOMERGE-SOURCE: CL 16994511 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16994515 by ionut matasaru in ue5-release-engine-test branch]
2021-07-29 08:37:01 -04:00
ionut matasaru
d652fca555 [Insights]
- Enabled "HighDPI" support for Unreal Insights app.
  - Fixed size and location of app windows (for both browser and viewer modes) when high dpi is enabled and DPIScaleFactor is not 1.
  - Added name of trace in the application's title.

#rb Catalin.Dragoiu

#ROBOMERGE-SOURCE: CL 16882805 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16882816 by ionut matasaru in ue5-release-engine-test branch]
2021-07-19 08:55:22 -04:00
ionut matasaru
a51bcbd384 [Insights]
Updated the name of the Windows event used to force single instance of UnrealInsights.exe (Browser Mode) and to control when to try to auto-connect. This change allows UnrealInsights.exe from UE5 to coexists with a running instance from UE4.
  Also updated the comments to better explain how the Windows event is used.
  Trace auto-connect behavior remains the same: a game runtime (editor excluded) will try to auto-connect with a local trace store (now hosted by the UnrealTraceServer.exe) if UnrealInsights (Browser Mode) is running.

#rb Martin.Ridgers

#ROBOMERGE-SOURCE: CL 16726078 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16726101 by ionut matasaru in ue5-release-engine-test branch]
2021-06-21 06:29:41 -04:00
Steve Robb
9309254836 Removal of incorrect or unnecessary ESPMode::Fast usage.
#rb robert.manuszewski
#jira none

[CL 16095118 by Steve Robb in ue5-main branch]
2021-04-22 13:07:08 -04:00
danny couture
4e2385ea0a Throttle Insights rendering when application is idle to reduce GPU usage especially when multiple instance are running
- From 8% GPU to 0.2% per background instance on my 3070

#rb Ionut.Matasaru

[CL 16004391 by danny couture in ue5-main branch]
2021-04-14 09:17:09 -04:00
Matt Kuhlenschmidt
cf8bbcede7 deprecate Slates EnableMenuAnimations api. This feature has been disabled and has not worked since 4.0. Turning it on by accient causes massive issues with menus.
[CL 14844960 by Matt Kuhlenschmidt in ue5-main branch]
2020-12-03 13:16:18 -04:00
Catalin Dragoiu
9b9f72c074 [Insights] Forward -stompmalloc cmd line paramater to the session viewer
Remove option to run Session Viewer in the same process as the SessionBrowser
rb Ionut.Matasaru

[CL 14786651 by Catalin Dragoiu in ue5-main branch]
2020-11-19 10:43:57 -04:00
daren cheng
4ec48c9820 Edigrate 14629275.
Capture callstack in widget invalidation for leaf widgets.

#jira UE-101687
#rb Patrick.Boutot Phillip.Kavan

[CL 14631340 by daren cheng in ue5-main branch]
2020-11-02 14:48:49 -04:00
Catalin Dragoiu
b545dd9077 [Insights] Forward -InsightsTest and -DebugTools arguments from the Session Browser to the Session Viewer. Add options to enable Debug Tools and InsightsTest from the Session Browser UI.
#rb Ionut.Matasaru

[CL 14444838 by Catalin Dragoiu in ue5-main branch]
2020-10-08 06:37:09 -04:00
Catalin Dragoiu
800a92817d [Insights] Fix menu check boxes by incrementing GFrameCounter in the Insights main loop #rb none
[CL 14444628 by Catalin Dragoiu in ue5-main branch]
2020-10-08 05:07:59 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00