VerySleepy

参见

Please see the sampling profiler instructions for more information.

  • Start the Godot editor or your project first. If you start the Project Manager, make sure to edit or run a project first. Otherwise, the profiler will not track the child process since the Project Manager will spawn a child process for every project edited or run.

  • Open VerySleepy and select the Godot executable in the list of processes on the left:

../../../_images/cpp_profiler_verysleepy_select_process.png
  • 点击右侧的 Profile All 按钮开始性能分析。

  • 在编辑器或者项目中执行你想分析性能的操作,完成后点击 Stop(注意不是 Abort)。

  • 等待出现结果窗口。

  • 结果窗口出现后,在视图中筛选掉外部模块(例如图形驱动)。筛选模块的方法是,首先找到 Module 和 Godot 可执行文件名称一致的行,在那一行上单击右键,然后在下拉菜单中选择 Filter Module to <Godot 可执行文件名>

  • 结果窗口现在应该类似这样:

../../../_images/cpp_profiler_verysleepy_results_filtered.png