Unreal – Common performance analysis commands and C++ macros

  • Start logging status to file
stat startfile
  • Stop logging status to file
stat stopfile
  • Convenience scope timers can be used directly
QUICK_SCOPE_CYCLE_COUNTER(STAT_ClassName_FunctionName);
  • declare status group
DECLARE_STATS_GROUP(TEXT("Group Name"), STATGROUP_GroupName, STATCAT_Advanced);
  • Declare counter
DECLARE_DWORD_ACCUMULATOR_STAT(TEXT("Counter Name"), STAT_CounterName, STATGROUP_GroupName);
  • declare timer
DECLARE_CYCLE_STAT(TEXT("Timer Name"), STAT_TimerName, STATGROUP_GroupName);
  • Counter count
INC_DWORD_STAT(STAT_CounterName);
  • Timer scope timing
SCOPE_CYCLE_COUNTER(STAT_TimerName);

Post Reply