Unreal Insights is a profiling system that collects, analyzes, and visualizes data from Unreal Engine. The profiling system can help you find optimization bottlenecks and areas where you apps performance could use a boost. Normally, you enable Unreal Insights right from the editor, but for HoloLens 2 you’ll need to use the command line.
Unreal lets you to create and configure a “Custom Profile” in the HoloLens launcher with the command line parameters that enable Unreal Insights.
[!IMPORTANT] If you’re behind a VPN, you may need to provide the IP address provided via the VPN instead.
[!NOTE] “IP_OF_YOUR_PC” is the IP address we found in step 1. This is the IP address of the computer running Unreal Insights, NOT the IP address of the HoloLens.
[!IMPORTANT] Traces can get large very quickly. Enable only those channels you need to keep trace size low.
Watch as your project is built, and then deploy the appxbundle (in the package path from step 5) to your HoloLens through the device portal
Launch Unreal Insights. The Unreal Insights executable is stored in the binaries engine folder, usually as follows: “C:\Program Files\Epic Games\UE_4.26\Engine\Binaries\Win64\UnrealInsights.exe”
Back in Unreal Insights, select the Live connection to your device to start profiling
The custom profile is shared between projects. From here on out, you can use the custom profile you created instead of having to do this every time. You only need to recreate the connection to the device every time you start Unreal with steps 3 to 6 in the setup section.