SCOPE_CYCLE_COUNTER not showing up in Unreal Insights

Is there a way to get the stats system counters to show up in Unreal Insights? I am running a trace with “-trace=default,bookmark,stats,counter,cpu,task,gpu,loadtime”

I see in the documentation the stats system is supported and thought that the “stats” or “counter” option value would enable it, but I do not see any of my stats counters showing up in “Timers” or “Counters” in timing insights.

2 Likes

I’m facing the same issue:
CPP file:

void ACrowdPFAIControllerSample::FindPathForMoveRequest(const FAIMoveRequest& MoveRequest, FPathFindingQuery& Query, FNavPathSharedPtr& OutPath) const
{
    SCOPE_CYCLE_COUNTER(STAT_DoFlowTiles_SCOPE_CYCLE_COUNTER);
    DEC_DWORD_STAT(STAT_DoFlowTiles_DEC_DWORD_STAT);
    DECLARE_SCOPE_CYCLE_COUNTER(TEXT("STAT_DoFlowTiles_DECLARE_SCOPE_CYCLE_COUNTER"), STAT_DoFlowTiles_DECLARE_SCOPE_CYCLE_COUNTER, STATGROUP_CrowdPF);
    DECLARE_CYCLE_STAT(TEXT("STAT_DoFlowTiles_DECLARE_CYCLE_STAT"), STAT_DoFlowTiles_DECLARE_CYCLE_STAT, STATGROUP_CrowdPF);
    DECLARE_MEMORY_STAT(TEXT("DoFlowTile Total Physical"), STAT_TotalPhysical, STATGROUP_MemoryPlatform);
    DECLARE_MEMORY_STAT(TEXT("DoFlowTile Total Virtual"), STAT_TotalVirtual, STATGROUP_MemoryPlatform);
    
...
}

In the console I write:

stat CrowdPF
trace.start
(start and stop game)
trace.stop

but none of these stats show up in Unreal Insights

I have the same issue, except I’m trying to use QUICK_SCOPE_CYCLE_COUNTER. I have “Stat Named Events” checked.

you should add -statnamedevents cmd
image