In case anyone else has isssues with GPU stats not working any more after transitioning from 4.18 to 4.19, here’s a fix.
I got the following compiler errors after upgrading to 4.19:
I fixed this by changing my stat declaration macros from
DECLARE_FLOAT_COUNTER_STAT(TEXT("MyFunctionToProfile"), Stat_GPU_MyFunctionToProfile, STATGROUP_GPU);
to
DECLARE_FLOAT_COUNTER_STAT(Stat_GPU_MyFunctionToProfile, TEXT("MyFunctionToProfile"));
Best regards!
GPU, stat gpu, profiling, DECLARE_FLOAT_COUNTER_STAT, DECLARE_FLOAT_COUNTER_STAT, SCOPED_GPU_STAT, GPU visualizer, stat startfile, stat stopfile, session frontend