SCOPE_CYCLE_COUNTER - how do I use it ?

I have

Header:



DECLARE_STATS_GROUP(TEXT("GameAttributes"), STATGROUP_GameAttributes, STATCAT_Advanced);
DECLARE_CYCLE_STAT_EXTERN(TEXT("GameAttributesPostModifyAttribute"), STAT_PostModifyAttribute, STATGROUP_GameAttributes, );


Implementation:


#include "GameAttributes.h"
#include "GAAttributesStats.h"
DEFINE_STAT(STAT_PostModifyAttribute);


And I try to use:
SCOPE_CYCLE_COUNTER(STAT_PostModifyAttribute);

And I get this:

Ok I managed to fix by declaring stat group locally for files I needed it.

But, now how do I display/get my stats ? I can’t see them in profiler.

Your stats should show up when you load a ue4stats file (recorded using “stat startfile” and “stat stopfile”) in the profiler.