Using UnrealInsight, you can see data at each stage of runtime, trace stack calls, and help us analyze performance. But the best way to test is the real device test, so how to get the test report of the real device?
How to get the report
There are two methods of real-time printing and obtaining logs. Since there are many tutorials for real-time printing, this article only introduces the method of obtaining logs after running.
print in real time
tracehost=IP:Port
: The performance data is transmitted to UnrealInsight of the specified IP through the port for real-time display. Port numbers range from 8000 to 8100.
As described in the official tutorial , the Android running performance of the real machine needs the help of adb. See comments for specific steps.
get log
-TraceDataFileHandle
: write performance data to a file
- Create a new
UE4CommandLine.txt
file named and write commands in it:
[相对路径\]运行项目名.uproject -TraceDataFileHandler
such as:
../../../ShadowTrackerExtra/ShadowTrackerExtra.uproject -TraceDataFileHandler
- Put the files created in the above steps into the specified project directory
- run project
- Exit the project normally,
\Saved\trace
just get the .utrace file below