可可西

使用VS2022 Performance Profiler进行CPU分析

将MyGame.exe设为Startup Project,并设置好命令行参数

 

勾选CPU Usage

image

 

点击Start按钮,开始录制

image

 

Stop Collection之后,会开始加载符号

image

 

得到CPU性能查看的主界面

image

 

在时间轴上选择一段,查看这段的时间的CPU性能

image

 

点击FRunnableThreadWin::GuardedRun函数,会弹出要求关联源代码

image

 

 D:\UnrealEngine\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp

 

点击FRHIThread::Run函数

image

 

将Current View修改为Call Tree

image

 

将Current View修改为Modules

image

 

将Current View修改为Functions

image

 

将Current View修改为Flame Graph

image

 

posted on 2026-01-18 20:44  可可西  阅读(0)  评论(0)    收藏  举报

导航