tests: parallelize offline-test execution (#1974)

The offline-tests are going to end up taking too long for jak 2, I did
some rough math and by the end of it we'll be spending almost 2 minutes
for a full offline test on my machine.

These changes allow us to throw hardware at the problem

Still some work to do to make the output nicer, but seems to be fairly
reliable. By default it still uses 1 thread, use `num_threads` to change
this.
This commit is contained in:
Tyler Wilding
2022-10-16 17:20:44 -04:00
committed by GitHub
parent 0712e6d4db
commit d402ad8918
9 changed files with 250 additions and 146 deletions
+6
View File
@@ -172,6 +172,12 @@ class ObjectFileDB {
bool disassemble_code,
bool print_hex);
void process_object_file_data(
ObjectFileData& data,
const fs::path& output_dir,
const Config& config,
const std::unordered_set<std::string>& skip_functions,
const std::unordered_map<std::string, std::unordered_set<std::string>>& skip_states);
void analyze_functions_ir2(
const fs::path& output_dir,
const Config& config,