/Engine/Source/Runtime/Core/Public/Stats/Stats2.h
true, if the command line has the LoadTimeStatsForCommandlet or LoadTimeFileForCommandlet token which enables stats in the commandlets. !!!CAUTION!!! You need to manually advance stats frame in order to maintain the data integrity and not to leak the memory.
static bool EnabledForCommandlet()