Reading engine stats

Hi,

following problem: we have a bunch of dedicated game servers running somewhere. We would like to observe their key performance stats by e.g. pumping world tick time (along with a few others) to our graphite server every N sec. Now, we could of course write our own stats to track this, but the engine already measures everything we need to know plus we have added our own stats (DECLARE_CYCLE_STAT). So all the needed data is already collected by the stats thread.

However I can’t find an easy way to extract certain stats from the game thread. All the manipulations with stats seems to happen from within the stats thread and accessing them from other threads does not look thread safe. Is that correct?

Any hints on how to access individual stats values (or all of them, and then to filter) from the game thread?

Thank you

Hi.

I was trying to do the same thing and come with such function: Saving stats to file - Programming & Scripting - Unreal Engine Forums

Hope it will help :slight_smile: