How to check hardware performance like the way Paragon doing?

I find that there is a button named “autodetect” in the gamesetting in Paragon. Its usage is checking user PC hardware performance and auto set the config. How could I do the same thing in my UE4 game?

Editor has it too, there seems to be some banchmark based auto quality system, here you have editor implementation of it, sould work in game too but you need to set up thate yourself as code here is part of editor, since you got C++ tag i assume this wont be much problem: