mirror of
https://github.com/open-goal/jak-project
synced 2026-09-09 04:10:23 -04:00
offline-test: Partition by DGO and colorize/condense output (#2045)
This solves two main problems: - the looming threat of running out of memory since every thread would consume duplicate (and probably not needed) resources - though I will point out, jak 2's offline tests seem to hardly use any memory even with 400+ files, duplicated across many threads. Where as jak 1 does indeed use tons more memory. So I think there is something going on besides just the source files - condense the output so it's much easier to see what is happening / how close the test is to completing. - one annoying thing about the multiple thread change was errors were typically buried far in the middle of the output, this fixes that - refactors the offline test code in general to be a lot more modular The pretty printing is not enabled by default, run with `-p` or `--pretty-print` if you want to use it https://user-images.githubusercontent.com/13153231/205513212-a65c20d4-ce36-44f6-826a-cd475505dbf9.mp4
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@
|
||||
#include "common/util/Assert.h"
|
||||
|
||||
#include "third-party/fmt/core.h"
|
||||
#include "third-party/fmt/format.h"
|
||||
|
||||
GameVersion game_name_to_version(const std::string& name) {
|
||||
if (name == "jak1") {
|
||||
@@ -25,6 +26,6 @@ std::string version_to_game_name(GameVersion v) {
|
||||
case GameVersion::Jak2:
|
||||
return "jak2";
|
||||
default:
|
||||
ASSERT_MSG(false, fmt::format("no game_name for version: {} found", v));
|
||||
ASSERT_MSG(false, fmt::format("no game_name for version: {} found", fmt::underlying(v)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user