unreal.AutomationPerformaceHelper
¶
- class unreal.AutomationPerformaceHelper(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
Class for use with functional tests which provides various performance measuring features. Recording of basic, unintrusive performance stats. Automatic captures using external CPU and GPU profilers. Triggering and ending of writing full stats to a file.
C++ Source:
Module: FunctionalTesting
File: FunctionalTest.h
- begin_recording(record_name, gpu_budget, render_thread_budget, game_thread_budget) None ¶
Begins recording a new named performance stats record. We start by recording the baseline.
- begin_recording_baseline(record_name) None ¶
Begins recording a new named performance stats record. We start by recording the baseline
- Parameters:
record_name (str) –
- begin_stats_file(record_name) None ¶
Begins recording stats to a file.
- Parameters:
record_name (str) –
- is_current_record_within_game_thread_budget() bool ¶
Is Current Record Within Game Thread Budget
- Return type:
- is_current_record_within_render_thread_budget() bool ¶
Is Current Record Within Render Thread Budget
- Return type:
- is_recording() bool ¶
Returns true if this stats tracker is currently recording performance stats.
- Return type:
- sample(delta_seconds) None ¶
Adds a sample to the stats counters for the current performance stats record.
- Parameters:
delta_seconds (float) –