[UE4] UnrealInsight obtains the real machine performance test report

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.

Install adb on PC

get log

-TraceDataFileHandle: write performance data to a file

  1. Create a new UE4CommandLine.txtfile named and write commands in it:
    [相对路径\]运行项目名.uproject -TraceDataFileHandler
    such as:
    ../../../ShadowTrackerExtra/ShadowTrackerExtra.uproject -TraceDataFileHandler
  2. Put the files created in the above steps into the specified project directory
  3. run project
  4. Exit the project normally, \Saved\tracejust get the .utrace file below

Guess you like

Origin blog.csdn.net/weixin_44559752/article/details/125551994