#include "singletons/Settings.hpp" #include #include #include #include using namespace chatterino; int main(int argc, char **argv) { QApplication app(argc, argv); ::benchmark::Initialize(&argc, argv); // Ensure settings are initialized before any benchmarks are run QTemporaryDir settingsDir; settingsDir.setAutoRemove(false); // we'll remove it manually chatterino::Settings settings(settingsDir.path()); QTimer::singleShot(0, [&]() { ::benchmark::RunSpecifiedBenchmarks(); settingsDir.remove(); QApplication::exit(0); }); return QApplication::exec(); }