Can I use the 'stat StartFile' command in a test build?

I would like to perform profiling using stat StartFile during a game in a test build.

Can it be used by changing Build.h settings?

sadly, no, we can’t use it so for (UE4.23)
Stats not enabled in Test build, docs say they should be - Documentation Feedback - Unreal Engine Forums